Skip to content

Clear out memoized hashes before building crates#7373

Merged
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:clear-memos
Sep 17, 2019
Merged

Clear out memoized hashes before building crates#7373
bors merged 1 commit into
rust-lang:masterfrom
alexcrichton:clear-memos

Conversation

@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown

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

ehuss commented Sep 17, 2019

Copy link
Copy Markdown
Contributor

Thanks!

@bors r+

@bors

bors commented Sep 17, 2019

Copy link
Copy Markdown
Contributor

📌 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

bors commented Sep 17, 2019

Copy link
Copy Markdown
Contributor

⌛ 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

bors commented Sep 17, 2019

Copy link
Copy Markdown
Contributor

☀️ 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