Skip to content

ci: move the web build check into web.yml, the third called workflow (migration M3) - #264

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

aRustyDev merged 3 commits into
mainfrom
ci/web-workflow

Conversation

@aRustyDev

@aRustyDev aRustyDev commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

What

M3 of Phase 1 of the CI split (plan, phase,
ADR-0102): the third called workflow. The web job
leaves ci.yml for web.yml. A refactor: the job keeps its id, its steps, its pins, its two job-level variables and its comment.
Two commits: the plan documents (M2 recorded as done, M3 planned, and your deferral of build-web), then the build.

No action was made. As you decided after #258, the shared build-web action is deferred to the Web and E2E phases; web.yml moves the
steps as they are, and contract-pass-tools is not touched. The verdict job calls the action M2 made, as the other two callees do.

What changes in the repository

  • web.yml (name: web): workflow_call (input plan, output verdict) and workflow_dispatch (plan defaults to ["web"]); no
    workflow-level concurrency:; permissions: {}. The job web moved verbatim (the Q-R2 gate, Node, the pnpm pin, the frozen install,
    the build, the check that it made the SPA), if: contains(fromJSON(inputs.plan), 'web') and no needs: changes; and a verdict job that
    calls the action.
  • ci.yml: the web job is now a call of web.yml (needs: changes, runs when top names web, plan from plans). It keeps the
    id web
    , so gate's needs list does not change; VERDICT_JOBS is documentation security web.
  • The planner: WORKFLOWS also holds web: (web). The gate's default list and same_jobs follow: top lists the jobs still in
    ci.yml and then the workflows, so web moves to the end (... mutants documentation security web). The indexes, cicd.md,
    running.md and the mutant driver (a row in CALLS) follow too.

A workflow that bears its job's name

web is the first stage where the workflow and its job share a name: the calling job in ci.yml is web, and the job inside web.yml is
web, so the checks are web / web and web / verdict. Two things had to learn it:

  • The wiring test said "a moved job is no longer a job of ci.yml", which is false for the call that bears its name. It now allows
    that one case, and a new check refuses an id used twice. The control: a second web job, with web listed twice in gate's needs so
    that the neighbouring check is satisfied, fails that check and no other (got 13, wanted 12).
  • The parity script could not see the move. With the id in both files it reported ci.yml:web as changed and web.yml:web as new, and
    never compared the seven steps, which is the claim of the stage. It now pairs them by what they are: a job that became a call must find,
    under the same id in another file, a job with the same fingerprint (then it is moved), and if it finds none its steps are LOST,
    however expected the call is. Its self-test went from 24 to 33 checks; four bugs planted in the new rule (the twin found by id alone,
    the loss not reported, every changed job looked at, the twin left among the appearances) were each caught. A fifth, "the twin may be in
    another file", changed nothing, because a same-file twin is already paired by (file, id); I removed that dead condition.

Proof that it is the same

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

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

    ci.yml:web changed from the job to its call; gate changed only in VERDICT_JOBS.

  2. Locally, every ci-scripts command and every guard of deps, in the CI's order: all pass (the gate's cases 186, the wiring test 82
    checks, the planner's 6,986). actionlint is clean, with its control.

  3. The mutant driver: 136 hand mutants, each killed; the 7 that change nothing survive. The mutants of a called workflow are generated
    from CALLS, so one new row gave web 18 of them (5 on ci.yml, 13 on web.yml), and I wrote 3 more for the planner's map and the gate's
    list: 21 more than M2's 115. I read the first failing check of each of those 21 (the older mutants, whose text I only re-aimed at the new map and
    list, were not read again): 20 fail the check meant for them. The other, "the moved job web is left in ci.yml", is killed first by
    the neighbouring gate-needs comparison; the duplicate-id check meant for it fires on its own (above).

  4. The planner's cases for the real map, through the command line: web/ plans the cell job of ci.yml, then the workflow web; e2e/
    alone plans the cells and no workflow; scripts/check-web-diff.sh plans web and ci-scripts; the book and web/ together plan
    contract documentation web, in the planner's order.

  5. Two probes (probe: web planned and skipped in web.yml (do not merge) #265 and probe: the call of the verdict action skipped in web.yml (do not merge) #266, draft PRs closed unmerged, branches deleted), planted in web.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: web planned and skipped in web.yml (do not merge) #265: web planned and skipped (... && false) web / verdict, gate (web / web skipped; the other 37 jobs, documentation and security among them, succeeded) verdict: web was expected to run and its result is 'skipped'; gate: web was expected to run and its result is 'failure'
    probe: the call of the verdict action skipped in web.yml (do not merge) #266: the step that calls the action skipped gate alone (the other 39 jobs succeeded, web / web and web / verdict among them) gate: web succeeded but its verdict output is 'missing', not 'pass'
  6. This PR's own run (full, because it edits ci.yml; run 44021498422, head 3aa61b8, which holds main as of 0c3c0ef): 42 checks, all
    pass, none skipped; gate certified by assert-required-contexts.sh (STRICT_CONTEXTS=gate). web / web ran the real build: the Q-R2
    gate (ok: 3869 files in the pin's apps/web and packages, 2 differ, all of them allowed), the frozen install and the build (Tasks: 10 successful, 10 total). web / verdict ran the action's two steps and printed ok: 1 expected jobs passed, the rest were skipped.
    gate expected ci-scripts deps lint hermetic pg-adapter contract mutants documentation security web and printed ok: 10 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success. On the runner mutate_gate.py killed 136 of 136 under dash, and
    test-deploy-target.sh (the one that fails under bash) passed 121 of 121. The check web is now named web / web; gate is the only
    required context, so nothing requires it 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 web.yml (do not merge) #266 shows the same rule by its observable.
  • Comments: ci-commands.py does not compare them, so "moved verbatim" for the comment above web is my reading.
  • The affected-only run, the nightly run and an rc/* run: the migration's acceptance, taken once after M6.
  • Whether a public action for pnpm fits better than npm install --global pnpm@<the pin> is a question for the Web phase's survey, not for a
    refactor, which keeps the commands.

Next: M4, lint.yml (lint and deps), the first callee that holds two jobs.

🤖 Generated with Claude Code

aRustyDev and others added 3 commits November 16, 2026 23:28
…f a shared build-web action

M2 merged as #258: the parity, the wiring checks, the mutants, a full run and two probes are recorded in the phase document, with what the stage found. M3 is planned in detail: the workflow and its job share the name web, which the wiring test must allow for the calling job.

The owner deferred the shared build-web action (the web job's Node, pnpm, install, build and SPA steps are a near-duplicate of contract-pass-tools's e2e steps, not an exact copy): M3 moves web as it is, and the action is proposed again in the Web and E2E phases.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…(migration M3)

The web job leaves ci.yml for web.yml, moved with its steps, pins, job-level variables and comment unchanged (ci-commands.py: 7 steps, every one identical). ci.yml calls it in a job that keeps the id web, so gate's needs do not change, and VERDICT_JOBS lists the three called workflows. The verdict job calls the verdict action, as the other two do. No new action: the shared build-web action is deferred to the Web and E2E phases (owner).

The workflow and its job share a name, which two tools had to learn. The wiring test allows a moved job's name in ci.yml only as the call that bears it, and refuses an id used twice. The parity script paired nothing in that case (the id is in both files): a job that became a call must now find its steps, identical, under the same id in another file, or they are reported lost; its self-test grew from 24 to 33 checks.

The planner's map, the gate's default list, the indexes, cicd.md, running.md and the mutant driver (a row in CALLS: 136 mutants, all killed, 7 that change nothing survive) follow.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
# Conflicts:
#	docs/src/architecture/cicd.md
@aRustyDev
aRustyDev merged commit af9f365 into main Nov 17, 2026
42 checks passed
@aRustyDev
aRustyDev deleted the ci/web-workflow branch November 17, 2026 05:22
aRustyDev added a commit that referenced this pull request Nov 17, 2026
…d workflow (migration M4) (#269)

* docs(plans): record M3 as done, and plan M4 (lint.yml, the first callee 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]>

* ci: move the guards and the Rust lint into lint.yml, the fourth called 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]>

---------

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