https://github.com/python/cpython/commit/040cee94aa356a128ceca4967f16e570fbed3c14
commit: 040cee94aa356a128ceca4967f16e570fbed3c14
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: vstinner <[email protected]>
date: 2026-06-10T17:37:52Z
summary:

[3.15] GHA: Display output when a sanitizer test fails (GH-151268) (#151272)

GHA: Display output when a sanitizer test fails (GH-151268)

Modify GitHub Action "Reusable Sanitizer" to display output when a
test fails: pass -W option.
(cherry picked from commit 3a8bebd86f36be05442fa2f3adcc83c2a4b00ef2)

Co-authored-by: Victor Stinner <[email protected]>

files:
M .github/workflows/reusable-san.yml

diff --git a/.github/workflows/reusable-san.yml 
b/.github/workflows/reusable-san.yml
index 33f6f0ef455fe0..d1e9cb9636698b 100644
--- a/.github/workflows/reusable-san.yml
+++ b/.github/workflows/reusable-san.yml
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to