Skip to content

ci: Install uv before merging the Tier 2 test timings (#930) - #2585

Merged
zackees merged 2 commits into
masterfrom
fix/ci-tier2-cost-uv
Oct 27, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/ci-tier2-cost-uv

Conversation

@zackees

@zackees zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member

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 in Build 🧱 / Rust Tier 2 Linux 🐧, at the step Merge Test Timings ⏱️:

/home/runner/work/_temp/07c808dc-...sh: line 7: uv: command not found
##[error]Process completed with exit code 127

Runs 40468492559 (07:40) and 40470923004 (08:03) both died there, and the second is the current head f9c873e2f. Because rust-linux-tier2-done is a required part of build-project, the required CI Gate ✅ check cannot pass on master while this stands.

Cause

.github/workflows/build-project.yaml, job rust-linux-tier2-done: the master-only merge step runs

uv run --script rust/tools/linux-validate/merge_costs.py "$@" > .tier2-cost/ctest-cost-$mode.txt

and that job's only steps are actions/checkout (sparse, rust/tools/linux-validate) and actions/download-artifact. Unlike every other job in the workflow that calls uv, it never runs astral-sh/setup-uv, so uv is not on PATH. merge_costs.py opened with #!/usr/bin/env -S uv run --script, so the step needs uv rather than the runner's python3.

Fix

Add astral-sh/setup-uv (the same pinned bec219d v10.1.0 the rest of the workflow uses, save-cache: false) after that checkout, under the same if: 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: error just 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.

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
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).
@zackees
zackees added this pull request to the merge queue Oct 27, 2026
Merged via the queue into master with commit 0ef8117 Oct 27, 2026
31 checks passed
@zackees
zackees deleted the fix/ci-tier2-cost-uv branch October 27, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant