Skip to content

Commit

Permalink
Store debug logs in gh artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dkropachev committed Aug 5, 2024
1 parent 2739b29 commit 18dffc5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,37 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: setup pyenv ${{ matrix.python-version }}
uses: "gabrielfalcao/pyenv-action@v16"
with:
default: 2.7.14
versions: ${{ matrix.python-version }}
- name: Test with pytest

- name: Integration tests
id: integration-tests
run: |
export EVENT_LOOP_MANAGER=${{ matrix.event_loop_manager }}
export SCYLLA_VERSION='release:5.1'
./ci/run_integration_test.sh tests/integration/standard/ tests/integration/cqlengine/
- name: Test tablets
DEBUG_LOG_FILE=integration-tests.log ./ci/run_integration_test.sh tests/integration/standard/ tests/integration/cqlengine/
- name: Store debug logs for integration tests
if: failure() && steps.integration-tests.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: integration-tests
path: integration-tests.log

- name: Integration tablets tests
id: integration-tablets-tests
run: |
export EVENT_LOOP_MANAGER=${{ matrix.event_loop_manager }}
export SCYLLA_VERSION='unstable/master:2024-01-17T17:56:00Z'
./ci/run_integration_test.sh tests/integration/experiments/
export SCYLLA_VERSION='release:6.0.2'
DEBUG_LOG_FILE=integration-tablets-tests.log ./ci/run_integration_test.sh tests/integration/experiments/
- name: Store debug logs for integration tablets tests
if: failure() && steps.integration-tablets-tests.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: integration-tablets-tests
path: integration-tablets-tests.log
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ tests/unit/cython/bytesio_testhelper.c

#iPython
*.ipynb

debug.log
5 changes: 4 additions & 1 deletion ci/run_integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ ccm remove
# run test

export MAPPED_SCYLLA_VERSION=3.11.4
PROTOCOL_VERSION=4 pytest -rf --import-mode append $*

DEBUG_LOG_FILE=""
[[ -n "${LOG_FILE}" ]] && DEBUG_LOG_FILE="--log-file-level=debug --log-file=${LOG_FILE}"
PROTOCOL_VERSION=4 pytest -vv -s ${DEBUG_LOG_FILE} --log-cli-level=info -rf --import-mode append $*

0 comments on commit 18dffc5

Please sign in to comment.