-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test suite: after running a test set, throw an error if Base.DEPOT_PATH
, Base.LOAD_PATH
, or ENV
have been modified and not restored to their original values
#46602
Conversation
Base.DEPOT_PATH
, make sure to restore the original Base.DEPOT_PATH
at the end of the test setBase.DEPOT_PATH
before running a test set, and restore it after running the test set
Base.DEPOT_PATH
before running a test set, and restore it after running the test setBase.DEPOT_PATH
and Base.LOAD_PATH
before running a test set, and restore them after running the test set
547fbb8
to
f83b476
Compare
LGTM, whitespace check aside. |
0845591
to
c0daaa5
Compare
Hm, why though? This feels kind of arbitrary. What about the eg the ENV or other global state. |
There is currently a known non-deterministic test failure in the So this PR only deals with the depot path and load path because those are the ones relevant to this specific An alternative would be to always kill the worker process after each test set, so each test set gets a brand new worker process. (But I'm not sure if that would work for the "only run on node 1" test sets. |
Base.DEPOT_PATH
and Base.LOAD_PATH
before running a test set, and restore them after running the test setBase.DEPOT_PATH
, Base.LOAD_PATH
, or ENV
have been modified and not restored to their original values
I've added |
Depot path fix for |
Depot path fixes for |
The |
d179839
to
d493711
Compare
The |
36f9ce3
to
d00ef70
Compare
I think leaving the ENV checks there is fine and hopefully this stops naught tests again. LGTM |
d00ef70
to
5a0eb48
Compare
…ATH`, `Base.LOAD_PATH`, or `ENV` have been modified and not restored to their original values
5a0eb48
to
15a39da
Compare
No description provided.