fix(setup-mise): key the tools cache on the job image #62
No reviewers
Labels
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cjournois/reusable-pipeline!62
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/setup-mise-image-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?
A cached mise tool can outlive the image it was built on. devops/ignite's CI has failed since 2026-10-06 because the cached yamllint venv points at a CPython uv downloaded into
$HOME, which the cache doesn't hold. devops/image#87 now bakes that Python into ci-runner, but the stale entry keeps being restored: a hit never re-saves, and themise-<os>-<arch>-restore-key prefix falls back to it even after mise.toml changes.scripts/find-mise-config.shalso outputsimage_key: 12 hex characters of a sha256 over the distro (ID/VERSION_ID), the uv python dir and its listing, and any systempython3. Those are exactly what cached venvs and binaries depend on outside the cache, so unrelated image rebuilds don't empty every cache.mise-<os>-<arch>-<image_key>-<hash(mise.toml)>, and its restore-key prefix includesimage_key. Old entries never match again, so nobody has to purge the runner cache.just lint testpasses, 407/407, with 5 new bats cases. Run inside both ci-runner images, the key is stable within an image and differs across #87 (1c0b8986b05b→081fd9aa45d5).To reach ignite: merge, release
4.6.1(just release 4.6.1), and Renovate bumps devops/ignite#17 to it.