Skip to content

report server data on error #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 23, 2024
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
- run:
name: Integration Tests
command: mvn integration-test
- run:
name: zip and retrieve test data
command: ./docker/stop_db.sh
when: on_fail
- store_artifacts:
path: result.tar.gz
- report
- store_cache

Expand Down Expand Up @@ -126,6 +132,12 @@ jobs:
- run:
name: Integration Tests
command: mvn integration-test -Ddistributed -Darango.topology=$STARTER_MODE
- run:
name: zip and retrieve test data
command: ./docker/stop_db.sh
when: on_fail
- store_artifacts:
path: result.tar.gz
- report
- store_cache

Expand Down Expand Up @@ -153,6 +165,12 @@ jobs:
- run:
name: Integration Tests
command: mvn integration-test -Ddistributed -DSslTest=true -Dit.test=com.arangodb.kafka.SslIT
- run:
name: zip and retrieve test data
command: ./docker/stop_db.sh
when: on_fail
- store_artifacts:
path: result.tar.gz
- report
- store_cache

Expand Down Expand Up @@ -181,6 +199,12 @@ jobs:
- run:
name: Integration Tests
command: mvn integration-test -DresilienceTests -Darango.topology=$STARTER_MODE -Dit.test=com.arangodb.kafka.resilience.**
- run:
name: zip and retrieve test data
command: ./docker/stop_db.sh
when: on_fail
- store_artifacts:
path: result.tar.gz
- report
- store_cache

Expand Down
6 changes: 6 additions & 0 deletions docker/stop_db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -x

docker stop adb

docker cp adb-data:/data - > result.tar
gzip result.tar