-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix issue with running test on windows w/no-parallel #8676
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
Conversation
@swift-ci test |
@swift-ci test windows |
e10bdbc
to
eac75b3
Compare
@swift-ci test |
2652bd7
to
54a7a40
Compare
@swift-ci test |
@swift-ci test windows |
@swift-ci test windows self hosted |
@swift-ci test windows |
54a7a40
to
808eaae
Compare
@swift-ci test windows |
808eaae
to
5ccaeb6
Compare
@swift-ci test windows |
@swift-ci test |
1 similar comment
@swift-ci test |
5ccaeb6
to
d999e35
Compare
@swift-ci test |
@swift-ci test windows |
1 similar comment
@swift-ci test windows |
d999e35
to
d087c3f
Compare
@swift-ci test |
261a9fd
to
039e842
Compare
@swift-ci test |
The AsyncProcess Tests were using a TSCTestSupport method to temporarly change the PATH env but seems to have a bug where it removes the variable instead of restoring resulting in any future test needing PATH to fail. This switch it to using the same method that is in SwiftPM Environment.swft
039e842
to
4979efe
Compare
@swift-ci test |
@swift-ci test windows |
Awesome. Thanks @daveinglis! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Also, the way I solved similar cases for the tests in SwiftBuild was to use @TaskLocal (see SWBUtil/UserDefault.swift), which is like a Swift Concurrency version of thread local storage.
I suggest taking a look at adopting that in Environment next, for a more permanent fix. That'll allow us to just make withCustomEnv
/ Environment.makeCustom
completely thread safe.
@swift-ci please test windows |
The AsyncProcess Tests were using a TSCTestSupport method to temporarily change the PATH env but seems to have a bug where it removes the variable instead of restoring resulting in any future test needing PATH to fail. This switches it to using the similar method that is in SwiftPM Environment.swift