fix(release): the shipped builder's Rust cache is keyed by Cargo.toml too, so a profile change compiles warm again #2609
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2609
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/release-rust-cache-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The release jobs' Rust cache for the shipped builder (
release-rust-target-…) was keyed only byscripts/renhdrum.pyandCargo.lock. #2597 changed[profile.dist]inCargo.tomlwithout changing the key. So every nightly since then:Cargo.tomlis now in the key and in its restore prefix, in both build workflows. An entry compiled with another profile is never restored, and the first run after a profile change saves a new one.ci.mdandtests/test_release_workflow.pyfollow.Testing
Tested:
tests/test_release_workflow.pypasses (through the job queue). Diagnosed from runs 54970 and 55028: both restored…-a44827dc…, the pre-#2597 key, then recompiledlibc,serde,synand the rest.Still to test: by hand, from the release runs: the first nightly after merge compiles cold once and saves the new entry; the one after compiles warm.
Measurements
Expected: the builder compile drops from about 15 min to the warm ~7 min (or less) per job, from the second nightly after merge.
Risks
None beyond one cold compile. Revert to undo.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (the check this touches)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec