Repository navigation
Don't share regression data across tests and test runs - #34131
Conversation
[free-threaded]
|
Theory is clearly wrong, closing until I come up with next theory. |
|
Thanks for looking into this.
That has been the main source of failure in the past. However all checks yielded by Looking at the failures summary, it only happens for the But if that's the only source of failure, I wonder why others checks that use this dataset pass. Maybe their assertion don't depend on it being modified. In |
|
Trying copying X and y, as an experiment. Update: First run passed! Update 2: Second run passed! |
|
@jeremiedbb Maybe... it's working now? |
jeremiedbb
left a comment
There was a problem hiding this comment.
I restarted the CI a few times and they're all green. Almost 10 runs in a row were green. Previously it used to fail I'd say between a quarter and half of the time. So it looks good now (until we find another thread safety issue that is even harder to trigger :) ). Thanks
|
Thank you very much @itamarst! |
[free-threaded]
For now the goal is to do a series of CI runs and see if the failures recur or if this fixes them; I can't reproduce CI failures locally, unfortunately.
Reference Issues/PRs
Fixes #33470
Or that's the hope.
What does this implement/fix? Explain your changes.
Prevent the same regression data being used by multiple tests (sequentially across tests, or in the case of
free-threadingCI run, in parallel of the same test), since some tests may mutate it.(Originally, as referred to in some commits below, this was trying to ensure estimators weren't being shared, but that was a dead end.)
AI usage disclosure
No AI.