]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-151593: Use timeout on GitHub Action TSan jobs (#151594) main
authorVictor Stinner <vstinner@python.org>
Wed, 17 Jun 2026 11:02:22 +0000 (13:02 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Jun 2026 11:02:22 +0000 (13:02 +0200)
Use a timeout of 15 minutes for --tsan command and a timeout of 10
minutes for --tsan-parallel command. Display also the slowest tests
to help adjusting these timeouts later if needed.

.github/workflows/reusable-san.yml

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