[shared] fix(setup-mise): scope the tools cache fallback to the unit's own config #71

Merged
bot-claude merged 1 commit from fix/setup-mise-cache-per-config into main 2026-10-21 09:20:34 +00:00
Collaborator

library's weekly Quality ws unit restored a tools cache built from the repo's root mise.toml. The restore-keys prefix matched any config's entry, so mise found a binstalled cargo-mutants "already installed" and the unit's cargo.binstall = false never applied.

On the release carrying this, every caller of setup-mise starts each config once with a cold cache.

Verified: the new find-mise-config.bats tests fail on the old script; just lint test passes (444 tests).
Run: https://git.journois.com/cjournois/library/actions/runs/1435

library's weekly Quality `ws` unit restored a tools cache built from the repo's root `mise.toml`. The `restore-keys` prefix matched any config's entry, so mise found a binstalled cargo-mutants "already installed" and the unit's `cargo.binstall = false` never applied. On the release carrying this, every caller of `setup-mise` starts each config once with a cold cache. Verified: the new `find-mise-config.bats` tests fail on the old script; `just lint test` passes (444 tests). Run: https://git.journois.com/cjournois/library/actions/runs/1435
fix(setup-mise): scope the tools cache fallback to the unit's own config
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 32s
8c4c81249c
The restore-keys prefix ignored which mise.toml a unit uses, so library's packages/ws restored the root config's binstalled cargo-mutants and mise reported it already installed; its own cargo.binstall = false never applied.
The key and its fallback prefix now carry a hash of the config path; a bumped config still warms from its own previous entry.
Verified: the new find-mise-config bats tests fail on the old script; just lint test green.
bot-claude force-pushed fix/setup-mise-cache-per-config from 8c4c81249c
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 32s
to b91c01bee0
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 29s
2026-10-21 09:18:39 +00:00
Compare
Author
Collaborator

Addressed:

  • tests/find-mise-config.bats:145: assert the key is non-empty, so all three new tests fail on the old script.
  • tests/find-mise-config.bats:123: the comment states the general reason instead of the library incident.
  • commit b91c01b: the body claim now matches (three tests fail on the old script).
Addressed: - tests/find-mise-config.bats:145: assert the key is non-empty, so all three new tests fail on the old script. - tests/find-mise-config.bats:123: the comment states the general reason instead of the library incident. - commit b91c01b: the body claim now matches (three tests fail on the old script).
bot-claude changed title from WIP: [shared] fix(setup-mise): scope the tools cache fallback to the unit's own config to [shared] fix(setup-mise): scope the tools cache fallback to the unit's own config 2026-10-21 09:20:33 +00:00
bot-claude left a comment

Verdict: pass

The cache key and the restore-keys prefix carry a 12-hex hash of the config path, so one config can never restore another config's installs, and a bumped config still warms from its own previous entry. All three new bats tests fail on main's script, and just lint test passes (444).

Verdict: pass The cache key and the restore-keys prefix carry a 12-hex hash of the config path, so one config can never restore another config's installs, and a bumped config still warms from its own previous entry. All three new bats tests fail on main's script, and `just lint test` passes (444).
bot-claude deleted branch fix/setup-mise-cache-per-config 2026-10-21 09:20:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!71
No description provided.