Skip to content

ci: move the guards and the Rust lint into lint.yml, the fourth called workflow (migration M4) - #269

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

aRustyDev merged 3 commits into
mainfrom
ci/lint-workflow

Conversation

@aRustyDev

@aRustyDev aRustyDev commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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 deps and lint jobs leave ci.yml for lint.yml. A refactor: both keep their ids, their steps (18 and 7), their
pins, their comments and deps's fetch-tags. Two commits: the plan documents (M3 recorded as done, M4 planned), then the build.

No action was made, and none is proposed. lint and deps share a checkout and a setup-rust call and nothing else, and setup-rust already
is the action; the guards of deps are pairs of a check and its --self-test. The verdict job calls the action M2 made, as the other three
callees do.

What changes in the repository

  • lint.yml (name: lint): workflow_call (input plan, output verdict) and workflow_dispatch (plan defaults to
    ["deps","lint"]); no workflow-level concurrency:; permissions: {}. The jobs deps and lint moved verbatim, in the order they had,
    with if: contains(fromJSON(inputs.plan), '<id>') and no needs: changes; and a verdict job that needs both and calls the action.
  • ci.yml: deps is gone; the lint job is now a call of lint.yml (needs: changes, runs when top names lint, plan from
    plans) and keeps the id lint, so gate waits for it under the name it always had; gate's needs loses deps;
    VERDICT_JOBS is documentation security web lint.
  • The planner: WORKFLOWS also holds lint: (deps, lint). The gate's default list and same_jobs follow (... 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

  • Two jobs, so a plan can be partial. A change to clippy.toml plans lint and not deps; a change to a guard of deps plans deps and
    ci-scripts and not lint. The verdict job judges both ways (a planned job success, an unplanned one skipped). The planner's real
    cases through the command line are new: clippy.toml alone plans {"lint": ["lint"]}, scripts/check-layout.sh alone plans
    {"lint": ["deps"]} and ci-scripts, both together plan ["deps", "lint"], and a crate's Cargo.toml plans both.
  • The name clash again (lint calls lint.yml, which holds a job lint): handled as in M3. The checks are lint / deps,
    lint / lint and lint / verdict.
  • deps runs the guards of the files it moved into. In lint.yml it lints lint.yml itself and every other workflow and action (the lint
    rules R1 to R9, the index guard and actionlint). This PR's own run is what shows deps green in its new home.
  • The mutant driver's CALLS rows now hold a list of jobs, and a workflow of several jobs gets the mutants only several can have: a
    verdict job 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

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

    moved    ci.yml:lint -> lint.yml:lint  (7 steps, every one identical; ci.yml:lint now holds the call)
    changed  ci.yml:lint  (expected)
    changed  ci.yml:gate  (expected)
    moved    ci.yml:deps -> lint.yml:deps  (18 steps, every one identical)
    appeared lint.yml:verdict  (expected, 2 steps)
    41 jobs before, 43 after: 38 unchanged, 2 moved, 2 changed, 1 appeared, 0 gone; PARITY
    

    And the cut of ci.yml was 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).

  2. Locally, the ci-scripts commands under dash, the guards of deps, and the OpenAPI diff (Docker is on this machine, so
    scripts/check-openapi.sh --self-test and scripts/check-openapi.sh ran too: both exit 0): all pass (the gate's cases 182, the wiring test
    100 checks, the planner's 6,993). The lists of commands were compared with ci.yml's and lint.yml's mechanically. actionlint is clean,
    with its control.

  3. 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 fails
    a check on its own fault. The two "the moved job is left in ci.yml as well" mutants are, as in M2 and M3, caught first by the neighbouring
    gate-needs comparison, and the check meant for them was shown firing on its own in those stages.

  4. 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.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: deps planned and skipped in lint.yml (do not merge) #270: deps planned and skipped (... && false), lint untouched lint / verdict, gate (lint / deps skipped, lint / lint succeeded; the other 38 jobs succeeded) verdict: 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'
    probe: the call of the verdict action skipped in lint.yml (do not merge) #271: the step that calls the action skipped gate alone (the other 40 jobs succeeded, lint / deps, lint / lint and lint / verdict among them) gate: lint succeeded but its verdict output is 'missing', not 'pass'
  5. This PR's own run (full, because it edits ci.yml; run 44026982347, head 76d9406): 43 checks, all pass, none skipped; gate certified
    by assert-required-contexts.sh (STRICT_CONTEXTS=gate). lint / deps ran its guards in lint.yml, among them the workflow lint
    (12 workflows and 6 actions), the index guard (12 workflows and 6 actions, each with its row) and actionlint (the control behaved ... and every workflow ... is clean), so lint.yml was itself linted by the job it holds. lint / verdict ran the action's two steps and printed
    ok: 2 expected jobs passed, the rest were skipped. gate expected ci-scripts hermetic pg-adapter contract mutants documentation security web lint and printed ok: 9 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success. On the runner
    mutate_gate.py killed 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 merged
    in). The checks deps and lint are now lint / deps and lint / lint; gate
    is the only required context, so nothing requires them by name.

Found while building it

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 lint.yml (do not merge) #271 shows the same rule by its observable.
  • Comments: ci-commands.py does not compare them, so "moved verbatim" for the comments above lint and inside deps is my reading (the
    cut script compared them line by line, which is more than the parity script does).
  • The affected-only run, the nightly run and an rc/* run: the migration's acceptance, taken once after M6.
  • Whether a public action fits rustfmt and clippy better than scripts/rs cargo ... is a question for the Lint phase's survey, not for a
    refactor, which keeps the commands.

Next: M5, test.yml (ci-scripts, hermetic, pg-adapter, contract, mutants), the largest: the matrix call, the cell markers, and a
verdict job that must judge them. Its verdict job 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

aRustyDev and others added 3 commits November 17, 2026 00:27
…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]>
@aRustyDev
aRustyDev merged commit 099d6d7 into main Nov 17, 2026
43 checks passed
@aRustyDev
aRustyDev deleted the ci/lint-workflow branch November 17, 2026 06:08
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]>
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