Repository navigation
MNT Add CI job that tests for thread-safety bugs by enabling threaded parallelism by default - #35314
Conversation
|
Previous slowest job was 22 minutes, new one is 28 minute, so not ideal... |
Is it the only reason why you closed this? I think 6 more minutes may be OKish, it could also be the case that free-threaded CI is slow because of things like #35101. You can try to change the Python version |
|
No, I closed it just so it doesn't do unnecessary builds, I'm continuing working on this (but will likely split off the fixes to the problems I found). Will eventually re-open, either once the fixes are in, or maybe will mark everything as xfail and then remove it in fix PRs... |
|
OK sounds good! |
|
3.14.6 didn't help, alas. Will try something else. |
…'t seem to help This reverts commit 1a5d664.
|
I was hoping to reduce the number of threads so it's not (deliberately) oversubscribed, but at least one of the bugs I'm hitting only happen when the number threads is significantly higher than the number of cores... |
E.g. when [free-threaded] is in the commit message.
|
I switched to only run with scheduled or manually selected with Failures are often inconsistent so will have to see what CI says, and will continue trying to reproduce problems locally. |
|
The stalled CI job is one that shouldn't be affected by this PR, I think? EDIT it finished, eventually, maybe it's just always that slow. |
|
@lesteve ready for review |
|
I've started working on fixing these (in separate branches). So far I've found one real bug, and two cases where it's probably just floating point numerical instability and tweaking the test is all it took to fix it (but I could be wrong and perhaps one or both are real bugs). |
|
I also switched job to always run based on feedback from someone at our meeting earlier today (@lesteve if I'm not misremembering). |
I would leave it to only run on |
|
Ah, OK, I restored it. |
lesteve
left a comment
There was a problem hiding this comment.
A few comments, but otherwise looks good!
|
I addressed review comments. |
|
And addressed that last one too. |
|
In it goes, thanks! |
Part 1 of #35313
Add a new testing mode where threading backend + parallelism catches bugs not caught by normal CI. Failing tests are skipped in this mode, so that CI will be green.
Follow-up PRs will then fix the issues, one by one, removing the relevant skips.