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 re_types_builder falsely triggering rebuilds #3474

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Sep 26, 2023

#3460 removed committed hashes, but re_types_builder is still subscribed to changes to source_hash.txt.

Even though the build script will early exit as soon as it realizes that the hash is None, this is enough to invalidate rustc's cache, which then invalidates every crate downstream.

main:
image

this branch:
image

Fixes:

What

Checklist

@teh-cmc teh-cmc added the do-not-merge Do not merge this PR label Sep 26, 2023
@teh-cmc
Copy link
Member Author

teh-cmc commented Sep 26, 2023

Reverting #3460 does what we'd expect:
image

@teh-cmc teh-cmc force-pushed the cmc/codegen_shenanigans branch from ea44900 to bd4eb7d Compare September 26, 2023 10:08
@teh-cmc teh-cmc changed the title NOMERGE: ci tests Fix re_types_builder falsely triggering rebuilds Sep 26, 2023
@teh-cmc teh-cmc added ⏱ build-times compilation times 🦟 regression A thing that used to work in an earlier release codegen/idl exclude from changelog PRs with this won't show up in CHANGELOG.md and removed do-not-merge Do not merge this PR labels Sep 26, 2023
@teh-cmc teh-cmc marked this pull request as ready for review September 26, 2023 10:12
@teh-cmc teh-cmc linked an issue Sep 26, 2023 that may be closed by this pull request
@teh-cmc teh-cmc merged commit dbeaebb into main Sep 26, 2023
@teh-cmc teh-cmc deleted the cmc/codegen_shenanigans branch September 26, 2023 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⏱ build-times compilation times codegen/idl exclude from changelog PRs with this won't show up in CHANGELOG.md 🦟 regression A thing that used to work in an earlier release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix unnecessary rebuilds by updating to maturin 1.3.1
2 participants