Repository navigation
ci: move the guards and the Rust lint into lint.yml, the fourth called workflow (migration M4) - #269
Merged
Merged
Conversation
…ee with two jobs) M3 merged as #264: 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 workflow that bears its job's name, and main moving three times while it was built). M4 is planned in detail: two jobs so a plan can be partial, the name clash again, and deps running the guards of the files it moves into. deps is recounted at eighteen steps, not sixteen. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d workflow (migration M4) The deps and lint jobs leave ci.yml for lint.yml, moved with their steps (18 and 7), pins, comments and deps's fetch-tags unchanged (ci-commands.py: every one identical; the cut of ci.yml was itself checked line by line against lint.yml). ci.yml calls it in a job that keeps the id lint, so gate's needs lose deps and nothing else, and VERDICT_JOBS lists the four called workflows. The verdict job calls the verdict action. No new action: lint and deps share only a checkout and setup-rust. This is the first callee with two jobs, so a plan can be partial: clippy.toml plans lint alone, a guard of deps plans deps alone, and the verdict job expects the other to be skipped. The planner's real cases through the command line are new, and the mutant driver's CALLS rows now hold a list of jobs, with the mutants only several jobs can have. The planner's map, the gate's default list (nine names now), the indexes, cicd.md, running.md and ci-baseline.py follow (165 mutants, all killed, 8 that change nothing survive). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 17, 2026
aRustyDev
added a commit
that referenced
this pull request
Nov 17, 2026
…ifth called workflow (migration M5a) (#275) * docs(plans): record M4 as done, split M5 in two, and plan M5a (test.yml 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]> * ci: move the four plain jobs of the test concern into test.yml, the fifth 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]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 17, 2026
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
M4 of Phase 1 of the CI split (plan, phase,
ADR-0102): the fourth called workflow, and the first
that holds two jobs. The
depsandlintjobs leaveci.ymlforlint.yml. A refactor: both keep their ids, their steps (18 and 7), theirpins, their comments and
deps'sfetch-tags. Two commits: the plan documents (M3 recorded as done, M4 planned), then the build.No action was made, and none is proposed.
lintanddepsshare a checkout and asetup-rustcall and nothing else, andsetup-rustalreadyis the action; the guards of
depsare pairs of a check and its--self-test. Theverdictjob calls the action M2 made, as the other threecallees do.
What changes in the repository
lint.yml(name: lint):workflow_call(inputplan, outputverdict) andworkflow_dispatch(plandefaults to["deps","lint"]); no workflow-levelconcurrency:;permissions: {}. The jobsdepsandlintmoved verbatim, in the order they had,with
if: contains(fromJSON(inputs.plan), '<id>')and noneeds: changes; and averdictjob that needs both and calls the action.ci.yml:depsis gone; thelintjob is now a call oflint.yml(needs: changes, runs whentopnameslint,planfromplans) and keeps the idlint, sogatewaits for it under the name it always had;gate'sneedslosesdeps;VERDICT_JOBSisdocumentation security web lint.WORKFLOWSalso holdslint: (deps, lint). The gate's default list andsame_jobsfollow (... mutants documentation security web lint), and so do the indexes,cicd.md,running.md,ci-baseline.py's groups and the mutant driver.What is particular to this stage
clippy.tomlplanslintand notdeps; a change to a guard ofdepsplansdepsandci-scriptsand notlint. Theverdictjob judges both ways (a planned jobsuccess, an unplanned oneskipped). The planner's realcases through the command line are new:
clippy.tomlalone plans{"lint": ["lint"]},scripts/check-layout.shalone plans{"lint": ["deps"]}andci-scripts, both together plan["deps", "lint"], and a crate'sCargo.tomlplans both.lintcallslint.yml, which holds a joblint): handled as in M3. The checks arelint / deps,lint / lintandlint / verdict.depsruns the guards of the files it moved into. Inlint.ymlit lintslint.ymlitself and every other workflow and action (the lintrules R1 to R9, the index guard and
actionlint). This PR's own run is what showsdepsgreen in its new home.CALLSrows now hold a list of jobs, and a workflow of several jobs gets the mutants only several can have: averdictjob that waits for the first job only, one that knows the first job only, one that knows jobs the workflow does not hold, and,per job, one that runs whatever the plan.
Proof that it is the same
Parity, mechanically (
scripts/ci-commands.py). Real output:And the cut of
ci.ymlwas itself checked: the script that removed the two jobs refused unless every line it removed was found, in order,in
lint.yml(155 lines, all found).Locally, the
ci-scriptscommands under dash, the guards ofdeps, and the OpenAPI diff (Docker is on this machine, soscripts/check-openapi.sh --self-testandscripts/check-openapi.shran too: both exit 0): all pass (the gate's cases 182, the wiring test100 checks, the planner's 6,993). The lists of commands were compared with
ci.yml's andlint.yml's mechanically.actionlintis clean,with its control.
The mutant driver: 165 hand mutants, each killed; the 8 that change nothing survive (29 more than M3's 136: 23 from one new row of
CALLS, 6 written for the planner's map, the gate's list and the new rule). I read the first failing check of each of the 29: each failsa check on its own fault. The two "the moved job is left in
ci.ymlas well" mutants are, as in M2 and M3, caught first by the neighbouringgate-needs comparison, and the check meant for them was shown firing on its own in those stages.
Two probes (probe: deps planned and skipped in lint.yml (do not merge) #270 and probe: the call of the verdict action skipped in lint.yml (do not merge) #271, draft PRs closed unmerged, branches deleted), planted in
lint.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 ownreason and no other, read from the logs:
depsplanned and skipped (... && false),lintuntouchedlint / verdict,gate(lint / depsskipped,lint / lintsucceeded; the other 38 jobs succeeded)deps was expected to run and its result is 'skipped'(it names the one of the two jobs that did not run); gate:lint was expected to run and its result is 'failure'gatealone (the other 40 jobs succeeded,lint / deps,lint / lintandlint / verdictamong them)lint succeeded but its verdict output is 'missing', not 'pass'This PR's own run (full, because it edits
ci.yml; run 44026982347, head76d9406): 43 checks, all pass, none skipped;gatecertifiedby
assert-required-contexts.sh(STRICT_CONTEXTS=gate).lint / depsran its guards inlint.yml, among them the workflow lint(
12 workflows and 6 actions), the index guard (12 workflows and 6 actions, each with its row) andactionlint(the control behaved ... and every workflow ... is clean), solint.ymlwas itself linted by the job it holds.lint / verdictran the action's two steps and printedok: 2 expected jobs passed, the rest were skipped.gateexpectedci-scripts hermetic pg-adapter contract mutants documentation security web lintand printedok: 9 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success. On the runnermutate_gate.pykilled 165 of 165 under dash, and the planner's tests passed 6,993 checks (the same number as here, on the tree with test: the profiling crate, thrust-profiling, with the v1 router's heap profile (test-suites PR 4) #267 mergedin). The checks
depsandlintare nowlint / depsandlint / lint;gateis the only required context, so nothing requires them by name.
Found while building it
mainmoved twice. test: the profiling crate, thrust-profiling, with the v1 router's heap profile (test-suites PR 4) #267 (a profiling crate:Cargofiles,nextest.toml,release-plz.toml) landed before I pushed, so I merged it in(no force-push; no conflict) and ran the mutants, the
ci-scriptscommands, thedepsguards and the parity check again on the mergedtree: all as above. fix(contract): a run never draws the same port twice, and a refused bind says what the run holds #268 (port helpers and their test) landed after; it shares no file with this PR.
deps" locally. I had left out the OpenAPI diff, which needs Docker;CI ran it, so nothing was unchecked, but the sentence was wider than what I did. This stage ran it too (
check-openapi.sh --self-testandcheck-openapi.sh, both exit 0).What this does not show
verdictjob itself, which the wiring test forbids (if: always()); probe probe: the call of the verdict action skipped in lint.yml (do not merge) #271 shows the same rule by its observable.ci-commands.pydoes not compare them, so "moved verbatim" for the comments abovelintand insidedepsis my reading (thecut script compared them line by line, which is more than the parity script does).
rc/*run: the migration's acceptance, taken once after M6.rustfmtandclippybetter thanscripts/rs cargo ...is a question for the Lint phase's survey, not for arefactor, which keeps the commands.
Next: M5,
test.yml(ci-scripts,hermetic,pg-adapter,contract,mutants), the largest: the matrix call, the cell markers, and averdictjob that must judge them. Itsverdictjob is not an exact copy of the action's, so I will ask you about it, with the two side by side,before I build it.
🤖 Generated with Claude Code