Repository navigation
ci: move the contract cells and the judging of their markers into test.yml (migration M5b) - #281
Merged
Merged
Conversation
…ng 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]>
…t.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]>
This was referenced Nov 17, 2026
…ipt, 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]>
Owner
Author
|
The run on the head, 4c3c833 (44178951266), is a full run as expected and is green: 42 of 42 jobs succeeded, |
This was referenced Nov 17, 2026
aRustyDev
added a commit
that referenced
this pull request
Nov 18, 2026
* docs(plans): record M5b as done, and plan M6 (e2e.yml, the rename of e2e-schedule.yml) M5b merged as #281: parity, the wiring checks, the mutants, two full runs and two probes are recorded in the phase document, with what the stage found (the cost of the default cell job, a cell's new check name, a Cargo.lock swept in by commit -a). M6 is planned in detail: it is not a callee, so the callee stages' probes cannot show anything about it. Its two probes are the two stale references a rename can leave and the gate does see (the planner test's list, the index row). It is also the first stage whose own run is affected-only, because it does not edit ci.yml, and its pull request runs the renamed workflow through the paths filter. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * ci: rename e2e-schedule.yml to e2e.yml (migration M6) The daily browser-journey workflow takes the name of its concern, as the plan's layout says: the file, name, the paths filter of its own pull-request trigger and the concurrency group change; the two jobs, their calls of contract-cell.yml, with and permissions do not (ci-commands.py: 2 moved, every one identical, with a control that reports a changed call). Four comments that the move of contract into test.yml made false are corrected in the same edit. The name follows where it is used: the planner test's list of workflows that run no check, the workflows index, cicd.md, app-and-e2e.md and two pointers in the contrail plan. The planner needs no rule: e2e.yml falls under the generic .github/workflows/ rule exactly as the old file did. The dated records of runs under the old name stay as written. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * docs(plans): record main's run on M5b's merge commit 42 of 42 jobs succeeded, the first run of the nested cells on main. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
aRustyDev
added a commit
that referenced
this pull request
Nov 18, 2026
Since M5b (#281) assert-gate.sh's default cell job is none, so a verdict job that forgot its cell job judged no cells and passed; the wiring test was the only thing that held test.yml to name it. The verdict action passes `cells` through whatever `cell-job` says, so a forgotten `cell-job` arrives here as a level with no cell job and a non-empty PLANNED. That is now refused ("cells are planned but no cell job is named"): only an unset PLANNED or an empty array is no cells. The four workflows without cells are given the action's default `[]` and ci.yml's gate none, so neither changes. - test-ci-scripts.sh: the gate case that ignored a PLANNED it was given is replaced by five (two cells, an object, not JSON: refused; `[]` and `[ ]`: passed), and a verdict job that forgot CELL_JOB and is given cells is refused (201 cases, were 196). - mutate_gate.py: three mutants of the rule (removed, compared by text, reading no PLANNED), each killed. - PLAN.md: the Test phase's row records what #279 left for it: an ungated workflow that repeats test.yml's preview commands and is the only check of the provisioner's wasm32 build, and planner paths handled before RULES. Co-authored-by: Claude Opus 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
M5b of Phase 1 of the CI split (plan, phase,
ADR-0102): the second half of M5, the stage you asked me to split. The job
contract(a matrix call ofcontract-cell.yml) moves fromci.ymlintotest.yml, and the rule that judges its cells moves with it: fromgatetotest's ownverdictjob. After this,ci.ymlholds onlychanges, the calls andgate, which is the migration's acceptance for that file (a test nowpins it). Commits: the plan documents (M5a recorded as done, M5b planned in detail), the build, a change to the baseline script that the build made necessary, and a merge of
main.No new action. As you decided, the
verdictaction is extended with two optional inputs,cell-job(default empty: none) andcells(default[]); thefour other callers pass neither and are unchanged. When
cell-jobis set, a first step downloads thecell-ok-*markers (the stepgateran, at the same pin, withthe same
continue-on-error) and the judge is givenCELL_JOB,PLANNEDandREPORTED_DIR.What changes in the repository
test.yml: two new inputs,matrixandcells(strings holding JSON; required when called, with defaults when run alone); the jobcontract, moved fromci.ymlbetweenpg-adapterandmutants, as it was; and theverdictjob now needs five jobs and passescell-job: contractandcells: ${{ inputs.cells }}.The cell calls are now three levels deep (
ci.ymltotest.ymltocontract-cell.yml), against a limit of ten.contract-cell.ymlitself is unchangedbut for one comment, and so are its other callers.
.github/actions/verdict/action.yml: the two inputs, the conditional download, and the three variables taken from them.ci.yml:contractis gone; thetestcall passes the planner'smatrixandcells;gateneeds[changes, test, lint, web, documentation, security],downloads no marker, and is given no
PLANNEDand noREPORTED_DIR.assert-gate.sh: its defaults describe the top-level gate, which has no cells now: the default cell job is none (it wascontract), and the defaultknown jobs are the five called workflows.
test: (ci-scripts, hermetic, pg-adapter, contract, mutants).topis now only workflows.The cost of the design, said plainly
Until now a verdict job that forgot
CELL_JOBfailed, because the default asked for cells it was not given (test-ci-scripts.shhad a case for it). With thedefault being none, a callee that forgets it passes without judging cells. I did not hide that case: it is now
callee: a verdict job that forgot CELL_JOB judges no cells and passes, with a comment saying why. The property moved to the places that can hold it: the wiring test requires the one workflow that holdscontractto passcell-job: contractandcells(and every other workflow to pass neither), and the mutants show it can fail: the call forgettingcell-job, forgettingcells, passing othercells, or naming another job as the cell job, are each killed by it.
The gate's cell cases moved, they were not dropped
The cells' cases (a planned cell that never reports, a marker for an unplanned cell, no cell planned, no marker, cells planned with the cell job not expected, the unset
PLANNEDand
REPORTED_DIR) and the per-job loop's special case forcontractare now run at the level of a verdict job whose cell job iscontract, with the same texts and the sameexit statuses. The gate-level section lost its special case and gained one the other direction: a gate that judges no cells must not read a
PLANNEDit is given. The scriptgoes from 162 to 196 cases.
Proof that it is the same
Parity, mechanically (
scripts/ci-commands.py). Real output:Read the five diffs:
contractdiffers only in where its matrix comes from (fromJSON(needs.changes.outputs.matrix)becomesfromJSON(inputs.matrix); itsfail-fast, its call, itswithand its permissions are identical); thetestcall gains the two inputs;test / verdictgainscell-job,cellsandcontractinits list. And the job moved by a script that refused unless every line it removed (all but the three that differ by design) was found, in order, in
test.yml.Locally, the
ci-scriptscommands under dash (37, compared withtest.yml's mechanically) and the guards ofdeps: all pass (the gate's cases 196, the wiring test 136checks, the planner's 7,008).
actionlintis clean, with its control.The mutant driver: 226 hand mutants, each killed; the 9 that change nothing survive (27 more than ci: move the four plain jobs of the test concern into test.yml, the fifth called workflow (migration M5a) #275's 199). I read the first failing check of each of the 27 new ones, and of the
ones whose text I re-aimed: each fails a check on its own fault.
The run (44175085217, on f5f2ca7, a full run because the change edits
ci.yml): 42 of 42 jobs succeeded, andassert-required-contexts.sh(strict ongate)certified that the one required context reported and is green. The cells are now
test / contract (native-memory, main) / native-memory main, three levels deep, as planned.The markers did cross the nested call:
test / verdict's collection step found the run's artifacts, filtered them tocell-ok-*, and its judge saidok: 5 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success.gatesaidok: 5 expected jobs passed, the rest were skipped,with no cell in it. On the runner: the gate's 196 cases, the planner's 7,008 checks, the wiring test's 136 and
mutants=226 killed=226 survived=0 broken=0 equivalent-wrong=0.Two probes, each a draft PR closed unmerged (branches deleted), each passing the wiring test, the lint and
actionlintlocally first:native-memory sweeperruns and succeeds; only the upload step is skipped). Failed:test / verdictand
gate, and nothing else (40 of 42 succeeded).test / verdict:GATE FAIL: planned cells that never reported success: native-memory sweeper, afterFound 52 artifact(s)(53 in the passing run).gate:test was expected to run and its result is 'failure'. This is the rule that moved, working on the new level.test.yml. Failed:gatealone (41 of 42 succeeded: every cell and every job oftest.yml,test / verdictamong them, and the calling job
testreportedsuccess).gate:test succeeded but its verdict output is 'missing', not 'pass': it calls a workflow, and one whose verdict job did not run proves nothing. This one matters more here than in the other callees: with the call skipped no cell is judged at all and everyjob is green, and only the output rule of
gaterefuses it.ci-baseline.py(third commit): a cell's check name changed, so the script's split on the first caller name would have counted the 26 cells' minutes astest's.A cell is now recognised by its own shape, with or without a caller in front, and stays of the group
contract. Self-test 38 to 44 checks; with the patterndisabled exactly the two nested-cell checks fail. Run on the three runs of this PR and its probes, the real names group as 26 contract cells and the 5 jobs of
test(acheck of the names, not a baseline: those runs are this PR's own).
A fourth commit merges
main(#280 and #284: the core test and the lockfile order; no CI file, no conflict), so the run after this body was written is on the currentmain.What this does not show
.agents/plans/) and mergemain. The run on the head is a full run again,because the PR as a whole edits
ci.yml; I read it when it is over and say here if it differs from this one.ci-commands.pydoes not compare them (the move script compared thecontractjob's, line by line).rc/*run: the migration's acceptance, taken once after M6.Run the cell, socontractisfailureand the verdict'sneedsrule says so; that path is the gate's old per-job one, unchanged, and is covered by the callee level's per-job cases intest-ci-scripts.sh(the job loop), not by a probe.Next: M6,
e2e.yml(e2e-schedule.ymlrenamed), which is not a callee: the index and the planner's lists change. After it, the migration's acceptance: a full dispatch run, anaffected-only run, an
rc/*run, the nightly, and the baseline measured again.🤖 Generated with Claude Code