Repository navigation
ci: Install uv before merging the Tier 2 test timings (#930) - #2585
Merged
Merged
Conversation
The merge step runs merge_costs.py, a PEP 723 uv script, in a job whose only other steps are checkout and download-artifact, so on master it failed with 'uv: command not found' (exit 127) and failed the required gate for every master push after it.
zackees
enabled auto-merge
October 27, 2026 08:34
ci/test_ci_toml.py requires every setup-uv call to gate its cache save
with `save-cache: ${{ github.ref == 'refs/heads/master' }}` (the uv
remote caches are master-only), so the new step's `save-cache: false`
failed the Format checks job:
FAIL: test_uv_remote_saves_are_master_only_and_restores_remain_enabled
AssertionError: "save-cache: ${{ github.ref == 'refs/heads/master' }}"
not found in "- uses: astral-sh/setup-uv@... save-cache: false"
The step already runs only on a master push, so the recognised
expression is equivalent here and satisfies the invariant.
RED: Format checks ✅ job, run 40474485730 (test_ci_toml.py).
GREEN: uv run python -m unittest ci/test_ci_toml.py -> OK (19 tests).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Master is red on this, and it is not a test failure
Every master push since
ci: Move the native-build launcher into Python (#962)fails inBuild 🧱 / Rust Tier 2 Linux 🐧, at the step Merge Test Timings ⏱️:Runs 40468492559 (07:40) and 40470923004 (08:03) both died there, and the second is the current head
f9c873e2f. Becauserust-linux-tier2-doneis a required part ofbuild-project, the requiredCI Gate ✅check cannot pass on master while this stands.Cause
.github/workflows/build-project.yaml, jobrust-linux-tier2-done: the master-only merge step runsuv run --script rust/tools/linux-validate/merge_costs.py "$@" > .tier2-cost/ctest-cost-$mode.txtand that job's only steps are
actions/checkout(sparse,rust/tools/linux-validate) andactions/download-artifact. Unlike every other job in the workflow that callsuv, it never runsastral-sh/setup-uv, souvis not onPATH.merge_costs.pyopened with#!/usr/bin/env -S uv run --script, so the step needs uv rather than the runner'spython3.Fix
Add
astral-sh/setup-uv(the same pinnedbec219dv10.1.0 the rest of the workflow uses,save-cache: false) after that checkout, under the sameif:as the step it serves. One step, no behaviour change, nothing else touched.Why a PR and not a direct push
The ruleset's merge gate is PR CI plus the queue; this goes through it like any other change.
Note on the sibling failure
The same runs also show
digest-mismatch: errorjust above the uv line; that is the shard-artifact download reporting a missing/renamed artifact for the superseded run, not a second defect. If it reappears after this lands, it is a separate issue.