Skip to content

ci(sanitizers): check the repository out for the Select passes job (#2797) - #2799

Merged
zackees merged 2 commits into
masterfrom
infra/2797-sanitizers-select-checkout
Oct 28, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/2797-sanitizers-select-checkout

Conversation

@zackees

@zackees zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member

Fixes #2797

What broke

The nightly Sanitizers run on master head e86118b06 failed in Select passes 🎯 with:

error: Failed to spawn: ci/sanitizers_step.py
  cause: No such file or directory (os error 2)

jobs.matrix has no actions/checkout: its step is now uv run --no-project ci/sanitizers_step.py select … (the #2781 GEN-005 port), but the job still ran as if the step were an inline shell block. With no working tree the module cannot be spawned, so every sanitizer lane was skipped.

RED

de306926d — ci/test_sanitizers_step.py::test_select_step_is_preceded_by_a_checkout, which asserts that the module-calling step has an actions/checkout earlier in the same job (the positional shape of ci/test_sparse_checkout_local_actions.py). It fails on master: AssertionError: 'uses: actions/checkout@' not found in ….

GREEN

9daec1611 — the pinned actions/checkout@de0fac2e… (fetch-depth: 1, persist-credentials: false, no submodules) as jobs.matrix's first step. The step reads only ci/sanitizers_step.py, so no submodules and no full history are needed. The pin now passes.

Verification

  • uv run --no-project python -m unittest ci.test_sanitizers_step → 13 tests OK.
  • ci.test_sparse_checkout_local_actions ci.test_sanitizers_schedule ci.test_ci_toml → 49 tests OK.
  • uv run ci/local_gate.py --only self-test → == self-test: ok.
  • ruff check ci/test_sanitizers_step.py → all checks passed (no ruff format, per ruff.toml).

No ci.toml change: the workflow's GEN-005 exception was already removed by #2781 and this edit adds no shell step. No user-facing change, so no docs/features.md line.

RED: jobs.matrix calls ci/sanitizers_step.py but has no actions/checkout, so the nightly run dies at 'Failed to spawn'. The new case fails on master.
…2797)

GREEN: jobs.matrix now has the pinned actions/checkout (fetch-depth 1, no submodules) so ci/sanitizers_step.py can be spawned; the new pin in ci/test_sanitizers_step.py passes.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: correct, and I reproduced both sides.

  • RED: on de306926d with the workflow hunk reverted, python -m unittest test_sanitizers_step.WorkflowTest.test_select_step_is_preceded_by_a_checkout fails with AssertionError: 'uses: actions/checkout@' not found in … — the pin actually fails without the fix.
  • GREEN: on 9daec1611, uv run --no-project python -m unittest test_sanitizers_step is 13/13 OK.
  • The checkout is the right shape: jobs.matrix needs the working tree only for ci/sanitizers_step.py, so fetch-depth: 1 + no submodules is enough (the module imports stdlib only); persist-credentials: false and the de0fac2e… # v6.0.2 pin match the 70 other checkout steps in the tree. Placement as the first step is right — setup-uv precedes pick and neither needs the tree before it.
  • No new gate surface: no shell step is added, so the GEN-005 exception stays removed; save-cache: ${{ github.ref == 'refs/heads/master' }} is unchanged, so no PR-context uv save appears (CACHE-013), and ci/test_ci_toml.py is untouched. The test's split anchor ( matrix: → sanitize:) is the same one the sibling assertions use, so it is stable against the rest of the file.

Worth stating in the PR: this is a nightly-only lane, so nothing in PR CI proves the sanitiser passes now run end to end — the first dispatch after this lands is the real check. Queueing once Fast Gate ⚡ is green.

@zackees
zackees added this pull request to the merge queue Oct 28, 2026
@zackees

zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

Evidence from a dispatch of this branch, not just the unit test:

  • gh workflow run sanitizers.yaml --ref infra/2797-sanitizers-select-checkout -f tools=asan → run 40699493992
  • Select passes 🎯 (job 122855117124): success. This is the exact job that failed on master (Failed to spawn: ci/sanitizers_step.py); it now resolves the module from the checkout and publishes tools=["asan"].
  • I cancelled the run after that job passed: the asan 🧪 lane builds the whole tree and was only there to reach the previously-blocked step, not to re-verify ASan.

PR CI: Format 🔍 / checks, Build 🧱 / Fast Gate ⚡, CI Gate ✅ all pass; build lanes skipping for a workflow-only change.

Merged via the queue into master with commit f2de405 Oct 28, 2026
35 of 36 checks passed
@zackees
zackees deleted the infra/2797-sanitizers-select-checkout branch October 28, 2026 13:52
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.

infra: the Sanitizers "Select passes" job runs ci/sanitizers_step.py with no checkout (master weekly red)

1 participant