GHA: Display output when a sanitizer test fails (#151268) · python/cpython@3a8bebd

GitHub

GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources

Original file line numberDiff line numberDiff line change@@ -89,12 +89,12 @@ jobs:

8989 ./python -m test

9090 ${{ inputs.sanitizer == 'TSan' && '--tsan' || '' }}

9191 ${{ inputs.sanitizer == 'UBSan' && '-x test_capi -x test_faulthandler' || '' }}

92- -j4

92+ -j4 -W

9393 - name: Parallel tests

9494if: >-

9595 inputs.sanitizer == 'TSan'

9696 && fromJSON(inputs.free-threading)

97-run: ./python -m test --tsan-parallel --parallel-threads=4 -j4

97+run: ./python -m test --tsan-parallel --parallel-threads=4 -j4 -W

9898 - name: Display logs

9999if: always()

100100run: find "${GITHUB_WORKSPACE}" -name 'san_log.*' | xargs head -n 1000