Repository navigation
ci(sanitizers): check the repository out for the Select passes job (#2797) - #2799
Merged
Merged
Conversation
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
commented
Oct 28, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Review: correct, and I reproduced both sides.
- RED: on
de306926dwith the workflow hunk reverted,python -m unittest test_sanitizers_step.WorkflowTest.test_select_step_is_preceded_by_a_checkoutfails withAssertionError: '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_stepis 13/13 OK. - The checkout is the right shape:
jobs.matrixneeds the working tree only forci/sanitizers_step.py, sofetch-depth: 1+ no submodules is enough (the module imports stdlib only);persist-credentials: falseand thede0fac2e… # v6.0.2pin match the 70 other checkout steps in the tree. Placement as the first step is right —setup-uvprecedespickand 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), andci/test_ci_toml.pyis 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.
Member
Author
|
Evidence from a dispatch of this branch, not just the unit test:
PR CI: |
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.
Fixes #2797
What broke
The nightly
Sanitizersrun on master heade86118b06failed inSelect passes 🎯with:jobs.matrixhas noactions/checkout: its step is nowuv 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 anactions/checkoutearlier in the same job (the positional shape ofci/test_sparse_checkout_local_actions.py). It fails on master:AssertionError: 'uses: actions/checkout@' not found in ….GREEN
9daec1611— the pinnedactions/checkout@de0fac2e…(fetch-depth: 1,persist-credentials: false, no submodules) asjobs.matrix's first step. The step reads onlyci/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 (noruff format, perruff.toml).No
ci.tomlchange: the workflow's GEN-005 exception was already removed by #2781 and this edit adds no shell step. No user-facing change, so nodocs/features.mdline.