]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GHA: Display output when a sanitizer test fails (#151268)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2026 17:07:51 +0000 (19:07 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 17:07:51 +0000 (19:07 +0200)
Modify GitHub Action "Reusable Sanitizer" to display output when a
test fails: pass -W option.

.github/workflows/reusable-san.yml

index 33f6f0ef455fe0209c06b1417bcb3f6bb6f3b0f8..d1e9cb9636698b9cc4f344e936e6d5aeaec8221a 100644 (file)
@@ -89,12 +89,12 @@ jobs:
         ./python -m test
         ${{ inputs.sanitizer == 'TSan' && '--tsan' || '' }}
         ${{ inputs.sanitizer == 'UBSan' && '-x test_capi -x test_faulthandler' || '' }}
-        -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