Skip to content

Commit 04829ab

Browse files
committed
ci: upload integration logs on failure
Upload preserved integration logs and remaining ccm log/config files as a failure-only artifact for each integration test matrix job.
1 parent aa03870 commit 04829ab

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,33 @@ jobs:
9393
- name: Test with pytest
9494
env:
9595
EVENT_LOOP_MANAGER: ${{ matrix.event_loop_manager }}
96+
INTEGRATION_LOG_ARTIFACT_DIR: integration-test-logs
9697
PROTOCOL_VERSION: 4
9798
run: |
9899
if [[ "${{ matrix.python-version }}" =~ t$ ]]; then
99100
export PYTHON_GIL=0
100101
fi
101102
uv run pytest -v tests/integration/standard/ tests/integration/cqlengine/
103+
104+
- name: Upload ccm logs on failure
105+
if: failure()
106+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
107+
with:
108+
name: integration-logs-${{ matrix.event_loop_manager }}-${{ matrix.python-version }}
109+
path: |
110+
integration-test-logs/**
111+
tests/integration/ccm/**/*.conf
112+
tests/integration/ccm/**/*.log
113+
tests/integration/ccm/**/*.yaml
114+
tests/integration/ccm/**/*.yml
115+
tests/integration/ccm/**/conf/**
116+
tests/integration/ccm/**/logs/**
117+
/home/runner/.ccm/**/*.conf
118+
/home/runner/.ccm/**/*.log
119+
/home/runner/.ccm/**/*.yaml
120+
/home/runner/.ccm/**/*.yml
121+
/home/runner/.ccm/**/conf/**
122+
/home/runner/.ccm/**/logs/**
123+
if-no-files-found: ignore
124+
include-hidden-files: true
125+
retention-days: 14

0 commit comments

Comments
 (0)