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

Clear out memoized hashes before building crates #7373

Merged
merged 1 commit into from
Sep 17, 2019

Conversation

alexcrichton
Copy link
Member

Build script updates during execution can change the memoized hash of a
Fingerprint, and while previously we cleared out a single build
script's memoized hash we forgot to clear out everything that depended
on it as well. This commit pessimistically clears out all Fingerprint
memoized hashes just before building to ensure that during the build
everything has the most up-to-date view of the world, and when build
scripts change fingerprints everything that depends on them won't have
run yet.

Closes #7362

Build script updates during execution can change the memoized hash of a
`Fingerprint`, and while previously we cleared out a single build
script's memoized hash we forgot to clear out everything that depended
on it as well. This commit pessimistically clears out all `Fingerprint`
memoized hashes just before building to ensure that during the build
everything has the most up-to-date view of the world, and when build
scripts change fingerprints everything that depends on them won't have
run yet.

Closes rust-lang#7362
@rust-highfive
Copy link

r? @ehuss

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 17, 2019
@ehuss
Copy link
Contributor

ehuss commented Sep 17, 2019

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Sep 17, 2019

📌 Commit c3868bb has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 17, 2019
@bors
Copy link
Contributor

bors commented Sep 17, 2019

⌛ Testing commit c3868bb with merge 658bde1...

bors added a commit that referenced this pull request Sep 17, 2019
Clear out memoized hashes before building crates

Build script updates during execution can change the memoized hash of a
`Fingerprint`, and while previously we cleared out a single build
script's memoized hash we forgot to clear out everything that depended
on it as well. This commit pessimistically clears out all `Fingerprint`
memoized hashes just before building to ensure that during the build
everything has the most up-to-date view of the world, and when build
scripts change fingerprints everything that depends on them won't have
run yet.

Closes #7362
@bors
Copy link
Contributor

bors commented Sep 17, 2019

☀️ Test successful - checks-azure
Approved by: ehuss
Pushing 658bde1 to master...

@bors bors merged commit c3868bb into rust-lang:master Sep 17, 2019
@alexcrichton alexcrichton deleted the clear-memos branch September 17, 2019 19:09
@ehuss ehuss added this to the 1.39.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build script rerun-if changes break rebuild detection.
4 participants