From 2e9e8e041a7069b1905534e670d90c1e546cbd6f Mon Sep 17 00:00:00 2001 From: Marton Mayer Date: Mon, 7 Sep 2026 10:52:10 +0200 Subject: [PATCH] fix(tooling): use canonical Rust LLVM component --- mise.toml | 2 +- tools/ci/tests/test_public_tree.py | 6 ++++++ tools/mise_tasks/gateway-coverage.bash | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mise.toml b/mise.toml index 6360245b8..c3264d88e 100644 --- a/mise.toml +++ b/mise.toml @@ -4,7 +4,7 @@ experimental = true [tools] python = "3.12.12" uv = "0.5.31" -rust = { version = "1.97.0", profile = "default", components = ["rustfmt", "clippy", "llvm-tools-preview"] } +rust = { version = "1.97.0", profile = "default", components = ["rustfmt", "clippy", "llvm-tools"] } "cargo:cargo-deny" = "0.20.2" "cargo:cargo-llvm-cov" = "0.8.7" node = ["24.12.0", "22.23.2"] diff --git a/tools/ci/tests/test_public_tree.py b/tools/ci/tests/test_public_tree.py index 38c143b27..52bc670c2 100644 --- a/tools/ci/tests/test_public_tree.py +++ b/tools/ci/tests/test_public_tree.py @@ -2,6 +2,7 @@ import re import subprocess +import tomllib from pathlib import Path from tools.ci import check_public_tree @@ -56,6 +57,11 @@ def test_bootstrap_uses_root_locks_even_in_ci() -> None: assert not (REPOSITORY_ROOT / "packages/sie_ts_sdk/pnpm-lock.yaml").exists() +def test_bootstrap_installs_canonical_rust_components() -> None: + mise_config = tomllib.loads((REPOSITORY_ROOT / "mise.toml").read_text()) + assert mise_config["tools"]["rust"]["components"] == ["rustfmt", "clippy", "llvm-tools"] + + def test_ci_is_fork_safe_and_actions_are_immutable() -> None: workflow = (REPOSITORY_ROOT / ".github/workflows/ci.yml").read_text() assert "pull_request_target" not in workflow diff --git a/tools/mise_tasks/gateway-coverage.bash b/tools/mise_tasks/gateway-coverage.bash index cd1ec0978..0ae5c99a4 100755 --- a/tools/mise_tasks/gateway-coverage.bash +++ b/tools/mise_tasks/gateway-coverage.bash @@ -6,7 +6,7 @@ set -euo pipefail -# cargo-llvm-cov needs the `llvm-tools-preview` rustup component, which +# cargo-llvm-cov needs the canonical `llvm-tools` rustup component, which # mise.toml declares alongside the rust toolchain pin so `mise install` # provisions it on every dev machine and CI runner. #