gh-117657: Enable TSAN check on macOS with free-threads build by aisk · Pull Request #120502 · python/cpython · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
16 changes: 14 additions & 2 deletions .github/workflows/reusable-tsan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ on:
description: 'Name of the TSAN logs artifact. Must be unique for each job.'
required: true
type: string
os-matrix:
required: false
type: string
default: '["ubuntu-22.04"]'

jobs:
build_tsan_reusable:
name: 'Thread sanitizer'
runs-on: ubuntu-22.04
name: 'Thread sanitizer (${{ matrix.os }})'
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: ${{fromJson(inputs.os-matrix)}}
steps:
- uses: actions/checkout@v4
- name: Runner image version
Expand All @@ -31,6 +38,7 @@ jobs:
path: config.cache
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
- name: Install Dependencies
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo ./.github/workflows/posix-deps-apt.sh
# Install clang-18
Expand Down Expand Up @@ -64,6 +72,10 @@ jobs:
run: make pythoninfo
- name: Tests
run: ./python -m test --tsan -j4
if: ${{ startsWith(matrix.os, 'ubuntu') }}
- name: Tests
run: ./python.exe -m test --tsan -j4
if: ${{ startsWith(matrix.os, 'macos') }}
- name: Display TSAN logs
if: always()
run: find ${GITHUB_WORKSPACE} -name 'tsan_log.*' | xargs head -n 1000
Expand Down
10 changes: 9 additions & 1 deletion Lib/test/test_capi/test_mem.py