Skip to content

Commit 378e6bf

Browse files
Dump container logs on functional test failure (#9347)
## What changed? - We now dump container logs for failing GHA runs (including for cassandra and elasticsearch). ## Why? - Debugging some flakiness in ES8 on ARM, right now the logs for dependencies aren't available since the cluster is torn down at the end of the test. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
1 parent ddb59e2 commit 378e6bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,10 @@ jobs:
537537
TEST_SHARD_INDEX: ${{ matrix.total_shards && matrix.shard_index }} # guard with total_shards to avoid falsy eval of shard_index=0
538538
TEST_ARGS: "${{ matrix.test_args }}"
539539

540+
- name: Dump container logs
541+
if: ${{ failure() && toJson(matrix.containers) != '[]' }}
542+
run: docker compose -f ${{ env.DOCKER_COMPOSE_FILE }} logs --no-color
543+
540544
- name: Print memory snapshot
541545
if: always()
542546
run: if [ -f /tmp/memory_snapshot.txt ]; then cat /tmp/memory_snapshot.txt; fi

0 commit comments

Comments
 (0)