Repository navigation
Description
Problem
Parent #18499 AC4 asks for a per-PR fast lane: the cheap mechanical checks produce a non-cancelled result on each approved head before it boards a merge train. Nothing does today. On one train in the last 24 h, four consecutive red cycles came from four different guards (file-size ratchet, a hand-rolled-pattern pin, the reach floors, an env-registry parser), each costing a full 30-60 min suite. All of them live under repo_tests/ or pipeline-scripts/. The full python suite runs them inside 8 shards together with about 50 000 backend tests, and the watcher cancels a train on the first red shard, so the other shards' guard failures stay hidden until the next cycle.
The owner approved the standing boarding step on 2026-11-12: the guard tests plus the generated-types job, run on each member's head before it boards, outside the merge-train CI slots, with no shortcuts for quality.
Acceptance criteria
-
A workflow
dispatch-preboard-guards.ymlexists and is dispatch-only (nopull_request/pushtrigger), with its own concurrency group keyed by ref. -
It runs the same guard set as the python suite (everything the suite collects from the
repo_testsandpipeline-scriptsroots) with the suite's interpreter setup, env and pytest options, from one definition of the roots. -
It reports every failure: no fail-fast, no
-x, no--maxfail. -
It reuses the generated-types composite action, so the types check has one definition.
-
A machine-readable result artifact (ref, sha, base sha, per-check status, failed node ids with their one-line message) is uploaded and its fields documented in the workflow header.
-
A collected-test-count floor derived from the suite's own duration record fails the run when it is not met.
-
The boarding rule is documented in the merge-train section of
docs/developer/CLAUDE_REVIEW.md: a member boards only with a non-cancelled green fast-lane result at its approved head. -
A repo test pins the lane's own shape (dispatch-only, roots from one source, no fail-fast, concurrency group, artifact, floor).
-
The AC4 checks that are inline steps today (
--audit-baseline, Semgrep at ERROR severity, the real-ChromaDB session, the promtool install) are either wired in through a shared definition or listed in a follow-up issue with the refactor each needs. -
Design change after review: the lane's roots are every
pytest.iniroot except the named product trees (a test requires the two lists to cover testpaths exactly), superseding "therepo_testsandpipeline-scriptsroots" above. -
The collected-test floor applies to EXECUTED tests (passed, failed, errored), not collected ones.
-
Skips are classified against a reviewed allowlist (file and reason, each naming ci: move the inline cheap checks (baseline audit, Semgrep ERROR, real-ChromaDB session, promtool) into composite actions so the pre-board lane can call them #21360); a skip off the list makes the lane red; allowlisted skips give a distinct
overallvaluegreen_with_skips; every skipped node id and reason is inresult.jsonandsummary.md. -
Every recorded test file under the lane's roots that still exists must produce at least one executed or allowlisted-skipped test, else the lane is red and names the file.
-
The head is tested merged with the current base tip (a local commit, never pushed); a conflict is a red lane;
merged,base_shaandbehind_baseare in the artifact (schema 2). -
AUTOBOT_REACH_AUDIT=1is set in the lane (it tests the merged head), and the docs list what the lane does not cover (product suites, frontend tests, multi-member interactions, dependency-floor check, promtool and ChromaDB tests). -
The boarding rule includes
behind_base= 0 and readingfailed_testsandskipped_tests. -
The skip allowlist is built from the suite's own
-rsevidence and lives inpipeline-scripts/preboard_guard_lane_skips.py: each entry has file, verbatim reason prefix, class (covered-by-suite-onlyorequivalent-to-suite) and a follow-up (ci: move the inline cheap checks (baseline audit, Semgrep ERROR, real-ChromaDB session, promtool) into composite actions so the pre-board lane can call them #21360, ci: guard tests that skip on every CI run — the rule they enforce is never checked #21371, orby design: <why>); a repo test fails an entry whose file or reason text is gone, and a regression test feeds real-rslines through the verdict (green_with_skips; one unlisted skip is red).
Parent: #18499 (AC4)
Activity
github-actions commentedon Nov 12, 2026
needs-structurecleared: goal milestone, matching phase label and native parent (or sub-issues) are all present (#19522).fix(ci): pre-board lane tests the merged head, floors executed tests,…
fix(ci): pre-board lane docs state what it runs, what it does not cov…
fix(ci): build the lane's merge fixtures with the isolated git helpers (
fix(ci): read the skip reason of a module skipped at collection from …
5 remaining items
fix(ci): format the lane's skip allowlist module (#21359)
fix(ci): the fast lane no longer tolerates skips of the real-ChromaDB…
fix(ci): reconcile the fast lane with main after the apt-retry landing (
fix(ci): pin the lane's base commit once and cross-check every job ag…
fix(ci): boarding on the lane needs base_sha equal to the base tip, n…
test(ci): pass the types directory to the pre-board lane tests (#21359)
Merge pull request #21361 from mrveiss/issue-21359-preboard-fast-lane
github-actions commentedon Nov 12, 2026
Landed in #21361, merge
cf3e53f8b8mrveiss commentedon Nov 12, 2026
PR #21361 merged to main as cf3e53f. Checked against
origin/main(2026-11-12, Riga time).All 17 acceptance criteria are ticked on the strength of code on main. The issue stays open for one runtime fact: the first dispatched run of the lane on main (run 43227337453) was still
queuedwhen I looked, with onlypin baselisted, so there is no green run yet..github/workflows/dispatch-preboard-guards.yml:on: workflow_dispatchonly;concurrency.group: ${{ github.workflow }}-${{ github.ref }}uses: ./.github/actions/setup-python-suite; roots live only inGUARD_ROOTS/PRODUCT_ROOTSinpipeline-scripts/preboard_guard_lane.py;test_it_restates_no_test_rootpins thisfail-fast: false; no-xor--maxfailin the workflow;test_it_reports_every_failure_and_never_stops_earlyuses: ./.github/actions/generated-types-autofixpreboard-guards-resultupload; schema 2 fields documented in the workflow headerfloor_forandFLOOR_RATIOinpreboard_guard_lane.py(reads.test_durations)CLAUDE_REVIEW.md### Pre-board fast lane (#21359)at line 329; boarding rule includesbehind_baseandfailed_tests/skipped_testsrepo_tests/preboard_guard_lane_21359_test.py(dispatch-only, concurrency, no fail-fast, roots, artifact)pytest.iniroot except the product treestest_every_pytest_root_is_run_by_the_lane_or_named_as_left_to_the_suiteexecutedexcludes skips;repo_tests/preboard_guard_lane_junit_21359_test.pygreen_with_skipspipeline-scripts/preboard_guard_lane_skips.py;repo_tests/preboard_guard_lane_verdict_21359_test.pymerged,base_sha,behind_basein the header;test_nothing_the_lane_runs_pushesAUTOBOT_REACH_AUDIT=1; docs list what is not coveredCLAUDE_REVIEW.mdbehind_baseandfailed_tests/skipped_testsCLAUDE_REVIEW.mdPre-board fast lane section-rsevidence, with testspreboard_guard_lane_skips.py;repo_tests/preboard_guard_lane_observed_skips_21359_test.pyWhat remains:
CLAUDE_REVIEW.mditself says not to rely on the lane for boarding until one exists. The issue closes once run 43227337453, or a later one, endsgreenorgreen_with_skips.mrveiss commentedon Nov 12, 2026
Proof run on
main(2026-11-12, run 43227337453): red, so the lane is not yet usable as a boarding gate and this issue stays open.Base pin and the types job passed; guard shard 2/6 passed; shards 1, 3, 4, 5 and 6 failed although every test in them passed (2628–4066 passed per shard) — the only failure is the
sys.modulesleak guard reportingkombuleft installed by 8 test files. That is the known defect #15169, which the regular suite hides because of how it is collected; the lane runs the guard roots without the backend tree and exposes it. No defect was found in the lane's own logic (floor, skip allowlist, junit parsing, base pin).Next: #15169 is fixed at the cause, then the lane is dispatched on
mainagain; a green run is the evidence this issue needs.feat(ci): per-PR pre-board fast lane — a dispatchable guard run that …
fix(ci): name the lane's helpers uniquely and keep the bandit annotat…
mrveiss commentedon Nov 12, 2026
The lane has produced a non-red result on main, the one thing this issue was held open for (all 17 ACs were already ticked on code evidence).
Run: https://github.com/mrveiss/AutoBot-AI/actions/runs/43280952189 (head
923b9e902e, completed 2026-11-12 21:07 Riga, conclusion success).Jobs:
pin base,typesand all sixguards shard N/6success. This also shows the leak-guard blocker (#15169, fixed in #21388) and the six unlisted skips (#21389, closed) cleared. Closing: the follow-ups (#21360, #21371) are tracked on their own issues.