Repository navigation
ci: stop mise from listing remote versions when tools are cached - #947
Conversation
The mise cache in CI holds the installed tools but not mise's own cache directory, where remote version lists live. So `mise install` with every tool already restored still asked the GitHub API for release lists, and a slow API failed the job with nothing to download. Set `prefer_offline` in mise.toml. Every tool is pinned to an exact version, so no remote list is needed; a missing tool still downloads. A CI test keeps the setting and the exact pins in place. Co-Authored-By: Claude <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
mise install python uv github:rhysd/actionlintstill asks the GitHub API for the release lists of the named tools, and of every tool inmise.tomlthat the job did not install.CI / Policythen failsCI / Required, and the pull request is removed from the merge queue.Net effect: a GitHub API slowdown removes pull requests from the merge queue even on a full cache hit.
Change
prefer_offline = trueinmise.toml[settings]. Every tool is pinned to an exact version, so mise never needs a remote version list. A tool that is missing is still downloaded at its pinned version.tools/ci/tests/test_required_ci.pygains a test that the setting stays on and that every tool inmise.tomlpins an exactx.y.zversion, which is what the setting relies on.One setting covers every
mise install,mise execandmise runin the workflows, so no workflow file changes.Evidence
Reproduced locally with the pinned mise 2026.5.5 in throwaway data and cache directories:
Failed to install tools: core:python@3.12.12, github:rhysd/actionlint@1.7.7, exit 1mise.tomlTesting
pytest tools/ci/tests/test_required_ci.py tools/ci/tests/test_public_tree.py: 140 passed. The new test fails when the setting is off or a pin is loosened.actionlint,check_public_tree.pyandruffontools/ci: clean.Not verified
mise.tomlis part of the cache key. That run exercises the cold install path on Linux.Local effect
A developer's
mise installalso stops refreshing version lists.mise ls-remoteandmise lateststill fetch.🤖 Generated with Claude Code
Summary by CodeRabbit