Skip to content

ci: move the four plain jobs of the test concern into test.yml, the fifth called workflow (migration M5a) - #275

Merged
aRustyDev merged 3 commits into
mainfrom
ci/test-workflow
Nov 17, 2026
Merged

aRustyDev merged 3 commits into
mainfrom
ci/test-workflow

Conversation

@aRustyDev

@aRustyDev aRustyDev commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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-adapter and mutants leave ci.yml for test.yml. A
refactor
: all four keep their ids, their steps (2, 7, 4 and 3), their pins, their timeouts and their comments. contract and the cell-marker
rule stay in ci.yml and gate until M5b. Two commits: the plan documents (M4 recorded as done, M5 split, M5a planned, and your two
decisions), then the build.

No action was made. The four jobs share a checkout and a setup-rust call and nothing else. The verdict job calls the action M2 made, as
the other four callees do. Your decision about the action is for M5b: extend it with cell-job and cells, as you chose; it is recorded in the
phase document and is not built here.

What changes in the repository

  • test.yml (name: test): workflow_call (input plan, output verdict) and workflow_dispatch (plan defaults to the four jobs); no
    workflow-level concurrency:; permissions: {}. The four jobs, moved verbatim in the order they had, with if: contains(fromJSON(inputs.plan), '<id>') and no needs: changes; and a verdict job that needs the four and calls the action. The file was generated from ci.yml's own
    text
    , not retyped: the script took each job with the comment above it, dropped needs: changes, pointed the if at the plan input, and refused
    unless every one of the 149 lines it removed from ci.yml was found, in order, in test.yml.
  • ci.yml: the four jobs are gone; a calling job test takes the place of ci-scripts (needs: changes, runs when top names test,
    plan from plans); gate needs [changes, test, lint, contract, web, documentation, security] and VERDICT_JOBS is documentation security web lint test.
  • The planner: WORKFLOWS also holds test: (ci-scripts, hermetic, pg-adapter, mutants). The gate's default list becomes contract documentation security web lint test (six names, from nine), and same_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

  • The gate still judges contract's cells itself, as before: it downloads the cell-ok-* markers and checks the planned set. hermetic
    uploads an artifact too (junit-hermetic), which does not match that pattern, so the rule is untouched. M5b moves it.
  • Four jobs, so a plan can name any of them: a deploy script plans ci-scripts alone, the deploy's CA root plans ci-scripts and hermetic, a
    crate change plans more. The planner's real cases through the command line are new (scripts/smoke-deploy.sh alone plans
    {"test": ["ci-scripts"]}; .github/deploy/ca.pem plans ["ci-scripts", "hermetic"]).
  • ci-scripts tests the files it moved into. It runs the wiring test and the mutant driver, which read test.yml: the run of this very pull
    request is the proof that they pass in their new home.

Proof that it is the same

  1. Parity, mechanically (scripts/ci-commands.py). Real output:

    moved    ci.yml:ci-scripts -> test.yml:ci-scripts  (2 steps, every one identical)
    moved    ci.yml:hermetic -> test.yml:hermetic  (7 steps, every one identical)
    moved    ci.yml:pg-adapter -> test.yml:pg-adapter  (4 steps, every one identical)
    moved    ci.yml:mutants -> test.yml:mutants  (3 steps, every one identical)
    changed  ci.yml:gate  (expected)
    appeared ci.yml:test  (expected, 0 steps)
    appeared test.yml:verdict  (expected, 2 steps)
    43 jobs before, 45 after: 38 unchanged, 4 moved, 1 changed, 2 appeared, 0 gone; PARITY
    
  2. Locally, the ci-scripts commands under dash (37 commands, compared with test.yml's mechanically) and the guards of deps: all pass
    (the gate's cases 162, the wiring test 118 checks, the planner's 6,995). actionlint is clean, with its control. I did not rerun the OpenAPI
    diff: 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).

  3. 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 each
    of 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.

  4. 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.yml so that no text check sees them (the wiring
    test, the lint and actionlint pass on each, run before the push), so that the real gate is what answers. Each failed for its own reason and no
    other, read from the logs:

    Probe Failed jobs What it said
    probe: hermetic planned and skipped in test.yml (do not merge) #276: hermetic planned and skipped (... && false), the other three jobs untouched test / verdict, gate (test / hermetic skipped; test / ci-scripts, test / pg-adapter and test / mutants succeeded; 39 jobs in all) verdict: 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'
    probe: the call of the verdict action skipped in test.yml (do not merge) #277: the step that calls the action skipped gate alone (the other 41 jobs succeeded, the five jobs of test.yml among them) gate: test succeeded but its verdict output is 'missing', not 'pass'
  5. This PR's own run (full, because it edits ci.yml; run 44037583676, head 5bbc5ff): 44 checks, all pass, none skipped; gate certified by
    assert-required-contexts.sh (STRICT_CONTEXTS=gate). test / ci-scripts ran its whole list in test.yml: the planner's tests (6,998 checks
    there, 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.sh from test: the v1 router's CPU profile, under samply through a nextest wrapper script (test-suites PR 5) #272, and mutate_gate.py, which killed
    199 of 199 under dash, so the tests that read test.yml passed in the job that now lives in it. test / verdict ran the action's two steps
    and printed ok: 4 expected jobs passed, the rest were skipped. gate expected contract documentation security web lint test and printed
    ok: 6 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success, so the cells are still judged by gate as
    before. The checks ci-scripts, hermetic, pg-adapter and mutants are now test / ci-scripts and so on; gate is the only required
    context, so nothing requires them by name.

Found while building it

  • Three mutants were BROKEN (the driver refuses to judge a mutant whose anchor text is not found exactly once), and the cause of each is a
    consequence of the move: the gate's default list no longer starts with ci-scripts; the job hermetic, whose if one mutant altered, is gone from
    ci.yml (the one job there that still reads jobs is contract, whose name is also in the gate's marker step, so the anchor is now the job
    itself); and if: always() was found twice in test.yml, because hermetic'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.
  • A real merge conflict, and it was a semantic one. test: the v1 router's CPU profile, under samply through a nextest wrapper script (test-suites PR 5) #272 (the CPU profile) added one line, sh .github/scripts/tests/test-samply-wrapper.sh, to the
    command list of the ci-scripts job in ci.yml, the job this PR moves. Git saw my deletion against their addition. I kept the deletion and put
    the line into test.yml, after the one it follows in main, with a script that refused unless the conflict was one block with an empty side, and
    unless every other line of main's side (51) was already in test.yml, in order: so main added that one line and nothing else. Then the merged tree was
    tested again from the top, and the parity check, run against main as it now stands (with the line), still shows ci-scripts moved 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-tree shows the branch merges with main as it is now without a conflict.

What this does not show

  • A real skip of the verdict job 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.
  • Comments: ci-commands.py does not compare them, so "moved verbatim" for the comments above the four jobs is my reading (the generator copied
    them with the jobs, and the 149 lines it removed, comments included, were each found in test.yml).
  • The affected-only run, the nightly run and an rc/* run: the migration's acceptance, taken once after M6.

Next: M5b, contract (a matrix call of contract-cell.yml, three levels deep) and the cells' judging: test / verdict takes over the markers, the
verdict action gains cell-job and cells, and gate stops downloading them.

🤖 Generated with Claude Code

aRustyDev and others added 3 commits November 17, 2026 01:36
…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
@aRustyDev
aRustyDev merged commit bb24076 into main Nov 17, 2026
44 checks passed
@aRustyDev
aRustyDev deleted the ci/test-workflow branch November 17, 2026 15:52
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant