Repository navigation
ci: move the four plain jobs of the test concern into test.yml, the fifth called workflow (migration M5a) - #275
Merged
Merged
Conversation
…ml without contract) M4 merged as #269: the parity, the wiring checks, the mutants, a full run and two probes are recorded in the phase document, with what the stage found (the two-job callee, deps running its guards inside lint.yml and green, the OpenAPI diff run locally). The owner decided, after being shown the two side by side, that test.yml's verdict job gets the cell judging by extending the verdict action with the optional inputs cell-job and cells, and that M5 is split: M5a moves ci-scripts, hermetic, pg-adapter and mutants (contract and the cell-marker rule stay in ci.yml and gate), M5b moves contract and the cells' judging. M5a is planned in detail, M5b in outline. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ifth called workflow (migration M5a) ci-scripts, hermetic, pg-adapter and mutants leave ci.yml for test.yml, moved with their steps (2, 7, 4 and 3), pins, timeouts and comments unchanged (ci-commands.py: every one identical). test.yml was generated from ci.yml's own text, and the script refused unless every line it removed was found, in order, in the new file. ci.yml calls it in a job test, gate needs that job in place of the four, and VERDICT_JOBS lists the five called workflows. The verdict job calls the verdict action. contract and the cell-marker rule stay in ci.yml and gate until M5b (the owner split M5 in two). The planner's map, the gate's default list (six names now), the indexes, cicd.md, running.md, ci-baseline.py and the mutant driver follow: 199 mutants, all killed, 9 that change nothing survive. Three mutants whose anchor text the move had changed were re-anchored. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
# Conflicts: # .github/workflows/ci.yml
This was referenced Nov 17, 2026
aRustyDev
added a commit
that referenced
this pull request
Nov 17, 2026
…t.yml (migration M5b) (#281) * docs(plans): record M5a as done, and plan M5b (contract and the judging of its cells) M5a merged as #275: the parity, the wiring checks, the mutants, a full run and two probes are recorded in the phase document, with what the stage found (a semantic merge conflict, three re-anchored mutants) and one thing that was not its own: main's run on the merge commit went red from a new RustSec advisory (chrono), since handled by a temporary exception. M5b is planned in detail: the nested matrix call, the verdict action extended with cell-job and cells (the owner's decision), the gate no longer judging cells and what that costs (a verdict job that forgets CELL_JOB no longer fails by default; the wiring test carries that property now), and the gate's cell cases moved to the callee level, not dropped. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * ci: move the contract cells and the judging of their markers into test.yml (migration M5b) The job contract (a matrix call of contract-cell.yml) moves from ci.yml into test.yml, moved with its call, strategy, permissions and comment unchanged but for where its matrix comes from (ci-commands.py; the move was checked line by line). test.yml takes the planner's matrix and cells as inputs, and the cell calls are now three levels deep. ci.yml now holds only changes, the calls and gate, which a test pins. The rule that judges the cells moves with it, from gate to test's verdict job: the verdict action (extended, as the owner decided) gains the optional inputs cell-job and cells, downloads the cell-ok-* markers when given a cell job, and gives the judge CELL_JOB, PLANNED and REPORTED_DIR. gate downloads nothing and judges no cells; assert-gate.sh's default cell job becomes none. The cost: a verdict job that forgets CELL_JOB no longer fails by default, so the wiring test holds test.yml to pass cell-job and cells, and mutants show it can fail. The gate's cell cases are re-run at the level of a verdict job whose cell job is contract, not dropped (162 to 196 cases). The planner's map, the indexes, cicd.md, running.md and the mutant driver follow: 226 mutants, all killed, 9 that change nothing survive. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * docs(plans): group a contract cell under contract in the baseline script, wherever it is called from Since M5b a cell's check is test / contract (<target>, <pass>) / <target> <pass>, not contract (...) / ..., so the script's split on the first caller name would have counted the 26 cells' minutes as test's. A cell is now recognised by its own shape, with or without a caller before it, and stays of the group contract. The self-test goes from 38 to 44 checks; with the pattern disabled exactly the two nested-cell checks fail. Run on the three runs of #281 and its probes, the real names group as 26 contract cells and the 5 jobs of test (that is a check of the names, not a baseline). Refs: #281 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.
What
M5a of Phase 1 of the CI split (plan, phase,
ADR-0102): the fifth called workflow, and the first half
of M5, which you asked me to split in two. The jobs
ci-scripts,hermetic,pg-adapterandmutantsleaveci.ymlfortest.yml. Arefactor: all four keep their ids, their steps (2, 7, 4 and 3), their pins, their timeouts and their comments.
contractand the cell-markerrule stay in
ci.ymlandgateuntil M5b. Two commits: the plan documents (M4 recorded as done, M5 split, M5a planned, and your twodecisions), then the build.
No action was made. The four jobs share a checkout and a
setup-rustcall and nothing else. Theverdictjob calls the action M2 made, asthe other four callees do. Your decision about the action is for M5b: extend it with
cell-jobandcells, as you chose; it is recorded in thephase document and is not built here.
What changes in the repository
test.yml(name: test):workflow_call(inputplan, outputverdict) andworkflow_dispatch(plandefaults to the four jobs); noworkflow-level
concurrency:;permissions: {}. The four jobs, moved verbatim in the order they had, withif: contains(fromJSON(inputs.plan), '<id>')and noneeds: changes; and averdictjob that needs the four and calls the action. The file was generated fromci.yml's owntext, not retyped: the script took each job with the comment above it, dropped
needs: changes, pointed theifat the plan input, and refusedunless every one of the 149 lines it removed from
ci.ymlwas found, in order, intest.yml.ci.yml: the four jobs are gone; a calling jobtesttakes the place ofci-scripts(needs: changes, runs whentopnamestest,planfromplans);gateneeds[changes, test, lint, contract, web, documentation, security]andVERDICT_JOBSisdocumentation security web lint test.WORKFLOWSalso holdstest: (ci-scripts, hermetic, pg-adapter, mutants). The gate's default list becomescontract documentation security web lint test(six names, from nine), andsame_jobs, the indexes,cicd.md,running.md,ci-baseline.py's groups(the four become one group,
test) and the mutant driver follow.What is particular to this stage
contract's cells itself, as before: it downloads thecell-ok-*markers and checks the planned set.hermeticuploads an artifact too (
junit-hermetic), which does not match that pattern, so the rule is untouched. M5b moves it.ci-scriptsalone, the deploy's CA root plansci-scriptsandhermetic, acrate change plans more. The planner's real cases through the command line are new (
scripts/smoke-deploy.shalone plans{"test": ["ci-scripts"]};.github/deploy/ca.pemplans["ci-scripts", "hermetic"]).ci-scriptstests the files it moved into. It runs the wiring test and the mutant driver, which readtest.yml: the run of this very pullrequest is the proof that they pass in their new home.
Proof that it is the same
Parity, mechanically (
scripts/ci-commands.py). Real output:Locally, the
ci-scriptscommands under dash (37 commands, compared withtest.yml's mechanically) and the guards ofdeps: all pass(the gate's cases 162, the wiring test 118 checks, the planner's 6,995).
actionlintis clean, with its control. I did not rerun the OpenAPIdiff: it belongs to
deps, which M5a does not touch (it ran green in ci: move the guards and the Rust lint into lint.yml, the fourth called workflow (migration M4) #269).The mutant driver: 199 hand mutants, each killed; the 9 that change nothing survive (34 more than M4's 165: 27 from one new row of
CALLS, which holds four jobs, and 7 written for the planner's map, the gate's list and the new rule). I read the first failing check of eachof the 34: each fails a check on its own fault. The "left in
ci.yml" ones are caught first, as before, by the neighbouring gate-needs comparison.Two probes (probe: hermetic planned and skipped in test.yml (do not merge) #276 and probe: the call of the verdict action skipped in test.yml (do not merge) #277, draft PRs closed unmerged, branches deleted), planted in
test.ymlso that no text check sees them (the wiringtest, the lint and
actionlintpass on each, run before the push), so that the realgateis what answers. Each failed for its own reason and noother, read from the logs:
hermeticplanned and skipped (... && false), the other three jobs untouchedtest / verdict,gate(test / hermeticskipped;test / ci-scripts,test / pg-adapterandtest / mutantssucceeded; 39 jobs in all)hermetic was expected to run and its result is 'skipped'(it names the one of the four that did not run); gate:test was expected to run and its result is 'failure'gatealone (the other 41 jobs succeeded, the five jobs oftest.ymlamong them)test succeeded but its verdict output is 'missing', not 'pass'This PR's own run (full, because it edits
ci.yml; run 44037583676, head5bbc5ff): 44 checks, all pass, none skipped;gatecertified byassert-required-contexts.sh(STRICT_CONTEXTS=gate).test / ci-scriptsran its whole list intest.yml: the planner's tests (6,998 checksthere, on the merge with docs: the test-suites plan is done #273 and feat(deploy): defer a shared target that brings migrations to a reviewer, expand the schema there, and alias a proved target #274), the wiring test (118), the new
test-samply-wrapper.shfrom test: the v1 router's CPU profile, under samply through a nextest wrapper script (test-suites PR 5) #272, andmutate_gate.py, which killed199 of 199 under dash, so the tests that read
test.ymlpassed in the job that now lives in it.test / verdictran the action's two stepsand printed
ok: 4 expected jobs passed, the rest were skipped.gateexpectedcontract documentation security web lint testand printedok: 6 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success, so the cells are still judged bygateasbefore. The checks
ci-scripts,hermetic,pg-adapterandmutantsare nowtest / ci-scriptsand so on;gateis the only requiredcontext, so nothing requires them by name.
Found while building it
consequence of the move: the gate's default list no longer starts with
ci-scripts; the jobhermetic, whoseifone mutant altered, is gone fromci.yml(the one job there that still readsjobsiscontract, whose name is also in the gate's marker step, so the anchor is now the jobitself); and
if: always()was found twice intest.yml, becausehermetic's JUnit upload step has one, indented deeper (the anchor now starts at the line).They were fixed, not removed, and the driver was run again in full.
sh .github/scripts/tests/test-samply-wrapper.sh, to thecommand list of the
ci-scriptsjob inci.yml, the job this PR moves. Git saw my deletion against their addition. I kept the deletion and putthe line into
test.yml, after the one it follows inmain, with a script that refused unless the conflict was one block with an empty side, andunless every other line of
main's side (51) was already intest.yml, in order: somainadded that one line and nothing else. Then the merged tree wastested again from the top, and the parity check, run against
mainas it now stands (with the line), still showsci-scriptsmoved with every step identical,which is the check that the line is in the right place. A change to a job's commands that lands while the job is being moved is the case this
migration will meet again in M5b and M6. docs: the test-suites plan is done #273 (a plan document) and feat(deploy): defer a shared target that brings migrations to a reviewer, expand the schema there, and alias a proved target #274 (deploy scripts, their test, one line of
cicd.md) landed after I merged;they touch no workflow or planner file, and
git merge-treeshows the branch merges withmainas it is now without a conflict.What this does not show
verdictjob itself, which the wiring test forbids (if: always()); probe probe: the call of the verdict action skipped in test.yml (do not merge) #277 shows the same rule by its observable.ci-commands.pydoes not compare them, so "moved verbatim" for the comments above the four jobs is my reading (the generator copiedthem with the jobs, and the 149 lines it removed, comments included, were each found in
test.yml).rc/*run: the migration's acceptance, taken once after M6.Next: M5b,
contract(a matrix call ofcontract-cell.yml, three levels deep) and the cells' judging:test / verdicttakes over the markers, theverdictaction gainscell-jobandcells, andgatestops downloading them.🤖 Generated with Claude Code