Skip to content

Remove more environment variables when launching inferior swift-test binaries from Xcode to prevent a timeout #121

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

Merged

Conversation

abertelrud
Copy link
Contributor

These environment variables are intended for the superior xctest invocation, and we need to make sure we're not passing them on so that the xctest invocation being invoked by swift-test thinks it's invoked directly from Xcode. We should possibly be filtering out all environment variables prefixed with "XCTest", or maybe even better, use an allow-list of environment variables to avoid having the environment leaking into the test. But this is a minimal change that gets these unit tests working again from Xcode.

rdar://68362616

…binaries from Xcode, so they don't hang while trying to connect to Xcode. There is already a superior xctest invocation that's using them, and we need to make sure we're not passing them on so that the xctest invocation being invoked by swift-test thinks it's invoked directly from Xcode. We should possibly be filtering out all environment variables prefixed with "XCTest", or maybe even better, use an allow-list of environment variables to avoid having the environment leaking into the test.

rdar://68362616
@abertelrud
Copy link
Contributor Author

@swift-ci please test

@abertelrud abertelrud merged commit 949f7d5 into master Sep 5, 2020
@abertelrud abertelrud deleted the eng/68362616-swiftpm-unit-tests-are-timing-out-in-xcode branch September 7, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants