mirror of
https://github.com/python/cpython.git
synced 2026-06-28 03:41:13 +00:00
[3.15] gh-151593: Use timeout on GitHub Action TSan jobs (GH-151594) (#151597)
gh-151593: Use timeout on GitHub Action TSan jobs (GH-151594)
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.
(cherry picked from commit 460dec2651)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
d7e7d85609
commit
2a5ed22923
1 changed files with 2 additions and 2 deletions
4
.github/workflows/reusable-san.yml
vendored
4
.github/workflows/reusable-san.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue