]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] GHA: Display output when a sanitizer test fails (#151268) (#151273)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2026 18:45:59 +0000 (20:45 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 18:45:59 +0000 (20:45 +0200)
GHA: Display output when a sanitizer test fails (#151268)

Modify GitHub Action "Reusable Sanitizer" to display output when a
test fails: pass -W option.

(cherry picked from commit 3a8bebd86f36be05442fa2f3adcc83c2a4b00ef2)

.github/workflows/reusable-san.yml

index 56cda9bf223e5cd8179312a0e38bb3b8dec6b1df..d58dddc91878c2799ab5fafcdc3cfd5412fc4a28 100644 (file)
@@ -86,12 +86,12 @@ jobs:
       run: >-
         ./python -m test
         ${{ inputs.sanitizer == 'TSan' && '--tsan' || '' }}
-        -j4
+        -j4 -W
     - name: Parallel tests
       if: >-
         inputs.sanitizer == 'TSan'
         && fromJSON(inputs.free-threading)
-      run: ./python -m test --tsan-parallel --parallel-threads=4 -j4
+      run: ./python -m test --tsan-parallel --parallel-threads=4 -j4 -W
     - name: Display logs
       if: always()
       run: find "${GITHUB_WORKSPACE}" -name 'san_log.*' | xargs head -n 1000