2121 strategy :
2222 matrix :
2323 python-version : [ '3.10', '3.11', '3.12' ]
24- env :
25- PYTEST_ADDOPTS : >-
26- --log-dir=/tmp/ci-logs
27- --log-file=/tmp/ci-logs/pytest.log
28- --showlocals
2924 steps :
3025 - uses : actions/checkout@v4
3126 # Need fetch-depth 0 to fetch tags, see https://github.com/actions/checkout/issues/701
7671 RUNNER_UID : ${{ env.RUNNER_UID }}
7772 RUNNER_GID : ${{ env.RUNNER_GID }}
7873 COVERAGE_FILE : " /opt/karapace/coverage/.coverage.${{ matrix.python-version }}"
79- PYTEST_ARGS : " --cov=karapace --cov-append --numprocesses 4"
74+ PYTEST_ARGS : " --cov=karapace --cov-append --numprocesses 4 --log-file=/opt/test-tmp/test-logs/unit-tests-pytest.${{ matrix.python-version }}.log --showlocals "
8075
8176 - run : make e2e-tests-in-docker
8277 env :
8580 RUNNER_UID : ${{ env.RUNNER_UID }}
8681 RUNNER_GID : ${{ env.RUNNER_GID }}
8782 COVERAGE_FILE : " /opt/karapace/coverage/.coverage.${{ matrix.python-version }}"
88- PYTEST_ARGS : " --cov=karapace --cov-append --numprocesses 4"
83+ PYTEST_ARGS : " --cov=karapace --cov-append --numprocesses 4 --basetemp /opt/test-tmp/e2e-test-logs --log-file=/opt/test-tmp/test-logs/e2e-tests-pytest.${{ matrix.python-version }}.log --showlocals "
8984
9085 - run : make integration-tests-in-docker
9186 env :
@@ -94,15 +89,19 @@ jobs:
9489 RUNNER_UID : ${{ env.RUNNER_UID }}
9590 RUNNER_GID : ${{ env.RUNNER_GID }}
9691 COVERAGE_FILE : " /opt/karapace/coverage/.coverage.${{ matrix.python-version }}"
97- PYTEST_ARGS : " --cov=karapace --cov-append --random-order --numprocesses 4"
92+ PYTEST_ARGS : " --cov=karapace --cov-append --random-order --numprocesses 4 --basetemp /opt/test-tmp/integration-test-logs --log-file=/opt/test-tmp/test-logs/integration-tests-pytest.${{ matrix.python-version }}.log --showlocals"
93+
94+ - name : Allow reading of test temporary directory
95+ run : sudo chmod -R a+rX test-tmp.${{ matrix.python-version }}
9896
9997 - name : Archive logs
10098 uses : actions/upload-artifact@v4
10199 if : ${{ always() }}
102100 with :
103- name : karapace-integration-test-logs-${{ matrix.python-version }}
104- path : /tmp/ci-logs
105-
101+ name : karapace-test-logs-${{ matrix.python-version }}
102+ path : |
103+ test-tmp.${{ matrix.python-version }}
104+ !**/popen-*/**
106105 - name : Archive coverage file
107106 uses : actions/upload-artifact@v4
108107 with :
0 commit comments