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

Fix windows 2019 staleness issue #17225

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Fix windows 2019 staleness issue #17225

merged 1 commit into from
Jun 25, 2024

Conversation

mkruskal-google
Copy link
Member

@mkruskal-google mkruskal-google commented Jun 24, 2024

Bazel on windows doesn't sandbox very well, and our old strategy for bootstrap staleness test was causing some non-deterministic failures. Before, we were creating multiple genrules copying the same batch of files, but only marking a specific one as the output of each. That works fine with proper sandboxing, but on windows can cause conflicts. With this change, each genrule limits its scope to only copy the 1 file it's meant to generate

@mkruskal-google mkruskal-google requested a review from a team as a code owner June 24, 2024 21:25
@mkruskal-google mkruskal-google requested review from acozzette and removed request for a team and acozzette June 24, 2024 21:25
@mkruskal-google mkruskal-google changed the title Test windows 2019 issue Fix windows 2019 staleness issue Jun 25, 2024
@mkruskal-google mkruskal-google added the back-port Cherrypick PRs to release branches label Jun 25, 2024
@zhangskz
Copy link
Member

Can you update the PR description to mention the windows sandboxing and making the copy mutually exclusive for future reference?

@mkruskal-google mkruskal-google merged commit 19bd211 into 27.x Jun 25, 2024
188 checks passed
@mkruskal-google mkruskal-google deleted the windows-2019-fix branch June 25, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-port Cherrypick PRs to release branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants