Avoid Clang bug in UBSan CI - #157958
Avoid Clang bug in UBSan CI#157958
Conversation
|
Ah, 2 tests failed on Sanitizers / TSan (free-threading): |
|
Do you have timings before/after this change on Clang jobs? |
Before this patch, looking at CI runs building takes around 8-10 minutes, with the patch it takes around 1 minute. However, this also slows down running the tests so much that we hit the 60 minute timeout. I can't reproduce that locally, so I'm not sure what's going on. |
|
Can you try |
Co-authored-by: Victor Stinner <vstinner@python.org>
|
That worked, build is now around 3 minutes, and the tests seem to be running slightly faster than currently (down to 15 minutes from an average of 18). |
Co-authored-by: Victor Stinner <vstinner@python.org>
|
Ah, you add |
|
Which branches are affected? |
|
If I check a recent GitHub Action job, I see:
On this PR, I see:
So I see that the UBSan job is way faster: 37m 42s => 20m. The change works as expected. |
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Sorry, @StanFromIreland, I could not cleanly backport this to |
|
GH-158505 is a backport of this pull request to the 3.14 branch. |
|
GH-158506 is a backport of this pull request to the 3.15 branch. |
|
GH-158508 is a backport of this pull request to the 3.13 branch. |
Since 4c79929 upgraded Clang, we've been hit by llvm/llvm-project#179695. For example, in https://github.com/python/cpython/actions/runs/35756221220/job/106842645848 which took 10 minutes to compile.
Other jobs that compile with Clang aren't affected, as they are all tail-calling, and the LLVM fix was backported to 21 for Darwin.
CC @lucascolley (since this may affect your builds as well?)