Open-source inference server and production cluster for all the models your agent needs.
Python bgecolbertdata-pipelinedeep-learningembeddingsinferenceinference-serverinformation-retrievalllmmlmlopsnatural-language-processingnlppythonrerankingretrievalretrieval-augmented-generationsemantic-searchspladevector-search
ci: stop mise from listing remote versions when tools are cached (#947)
Shai Shmuel042252f3c79e
diff --git a/mise.toml b/mise.tomlindex 5d3c39fc2..21a6d5823 100644--- a/mise.toml+++ b/mise.toml@@ -1,5 +1,11 @@[settings]experimental = true+# Every tool below is pinned to an exact version, so mise never needs a remote+# version list. Without this, `mise install` with the tools already installed+# still lists versions from GitHub and other registries whenever its cache+# directory is empty, which is how CI restores it, and a slow API fails the+# job. Missing tools still download as before.+prefer_offline = true[tools]python = "3.12.12"diff --git a/tools/ci/tests/test_required_ci.py b/tools/ci/tests/test_required_ci.pyindex bfeb5f3ac..998fc894e 100644--- a/tools/ci/tests/test_required_ci.py+++ b/tools/ci/tests/test_required_ci.py@@ -7,6 +7,7 @@ import reimport shleximport subprocessimport sys+import tomllibfrom pathlib import Pathimport pytest@@ -200,6 +201,19 @@ def test_mise_binary_prefetch_matches_every_action_version():)+def test_mise_installs_skip_remote_version_lists():+ """Cached CI tools must install without listing remote versions, so every pin must be exact."""+ config = tomllib.loads((ROOT / "mise.toml").read_text())+ # mise-action caches only mise's data directory. Without prefer_offline,+ # `mise install` lists remote versions again on every run and fails when+ # the GitHub API is slow, even though nothing needs to be downloaded.+ assert config["settings"].get("prefer_offline") is True+ for tool, spec in config["tools"].items():+ for entry in spec if isinstance(spec, list) else [spec]:+ version = entry["version"] if isinstance(entry, dict) else entry+ assert re.fullmatch(r"\d+\.\d+\.\d+", version), f"mise.toml: {tool} must pin an exact version"++def test_mise_bootstrap_serializes_required_toolsets():# Unqualified `mise exec` installs missing tools outside install_args.for path in sorted((ROOT / ".github/workflows").glob("*.y*ml")):