Skip to content
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

Fixes so that test suite can run in more tightly sandboxed environment #39101

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

staticfloat
Copy link
Sponsor Member

We can't assume that we have write permissions everywhere; the home directory, the stdlib directory, etc... should not be written to during our test suite. This PR adjusts things to more consistently write out to $TMPDIR instead of other places, and this enables running the test suite inside of tightened sandbox such as the one constructed here: https://github.com/staticfloat/MacOSSandboxExperiments/

We can't assume that `stdlib` is in a writable location; always download
temporary testing files to `$TMPDIR`.
Instead of writing out to actual `$HOME`, create a temporary directory
and set that as `$HOME`/`$USERPROFILE`.
@staticfloat staticfloat changed the title Fixes so that test suite can run in Fixes so that test suite can run in more tightly sandboxed environment Jan 5, 2021
@staticfloat staticfloat requested a review from Keno January 5, 2021 16:54
Copy link
Member

@Sacha0 Sacha0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good per a skim at least! Thanks Elliot! :)

@staticfloat staticfloat added the backport 1.6 Change should be backported to release-1.6 label Jan 5, 2021
@Keno Keno merged commit 399f8ba into master Jan 5, 2021
@Keno Keno deleted the sf/sandbox_fixes branch January 5, 2021 22:27
@KristofferC KristofferC mentioned this pull request Jan 19, 2021
60 tasks
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Feb 1, 2021
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.

4 participants