Skip to content

[Build] Add option to alter default location of module cache in Linux #35711

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
merged 1 commit into from
Feb 3, 2021

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Feb 2, 2021

This is meant to support parallel CI runs on the same Linux bot, so that
they don't share the module cache and reduce (hopefully) the likelihood
of issues related to invalid signatures.

When the option is enabled, the environment variable XDG_CACHE_HOME
is explicitly set in build-script and should be inherited by all the
child processes.
Currently we don't check the operating system before setting the
variable (since it should be a noop for other OSes).

Addresses rdar://73887745

This is meant to support parallel CI runs on the same Linux bot, so that
they don't share the module cache and reduce (hopefully) the likelihood
of issues related to invalid signatures.

When the option is enabled, the environment variable `XDG_CACHE_HOME`
is explicitly set in `build-script` and should be inherited by all the
child processes.
Currently we don't check the operating system before setting the
variable (since it should be a noop for other OSes).

Addresses rdar://73887745
@edymtt
Copy link
Contributor Author

edymtt commented Feb 2, 2021

@swift-ci please python lint

@edymtt
Copy link
Contributor Author

edymtt commented Feb 2, 2021

@swift-ci please smoke test

@edymtt edymtt requested a review from gottesmm February 2, 2021 19:41
Copy link
Member

@shahmishal shahmishal left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM.

Can you also update the preset to use this flag for Linux? It does not have to be in this PR.

@edymtt
Copy link
Contributor Author

edymtt commented Feb 3, 2021

Sure -- I was planning to do that as a separate step (to both catch unanticipated fallout and have a bit of control over the "rollout" of this flag)

@edymtt edymtt merged commit 187f4db into swiftlang:main Feb 3, 2021
edymtt added a commit to edymtt/swift that referenced this pull request Feb 19, 2021
…swiftlang#35711)

This is meant to support parallel CI runs on the same Linux bot, so that
they don't share the module cache and reduce (hopefully) the likelihood
of issues related to invalid signatures.

When the option is enabled, the environment variable `XDG_CACHE_HOME`
is explicitly set in `build-script` and should be inherited by all the
child processes.
Currently we don't check the operating system before setting the
variable (since it should be a noop for other OSes).

Addresses rdar://73887745

(cherry picked from commit 187f4db)
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.

3 participants