Repository navigation
ci: move the web build check into web.yml, the third called workflow (migration M3) - #264
Merged
Merged
Conversation
…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
This was referenced Nov 17, 2026
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]>
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
M3 of Phase 1 of the CI split (plan, phase,
ADR-0102): the third called workflow. The
webjobleaves
ci.ymlforweb.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-webaction is deferred to the Web and E2E phases;web.ymlmoves thesteps as they are, and
contract-pass-toolsis not touched. Theverdictjob calls the action M2 made, as the other two callees do.What changes in the repository
web.yml(name: web):workflow_call(inputplan, outputverdict) andworkflow_dispatch(plandefaults to["web"]); noworkflow-level
concurrency:;permissions: {}. The jobwebmoved 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 noneeds: changes; and averdictjob thatcalls the action.
ci.yml: thewebjob is now a call ofweb.yml(needs: changes, runs whentopnamesweb,planfromplans). It keeps theid
web, sogate'sneedslist does not change;VERDICT_JOBSisdocumentation security web.WORKFLOWSalso holdsweb: (web). The gate's default list andsame_jobsfollow:toplists the jobs still inci.ymland then the workflows, sowebmoves to the end (... mutants documentation security web). The indexes,cicd.md,running.mdand the mutant driver (a row inCALLS) follow too.A workflow that bears its job's name
webis the first stage where the workflow and its job share a name: the calling job inci.ymlisweb, and the job insideweb.ymlisweb, so the checks areweb / webandweb / verdict. Two things had to learn it:ci.yml", which is false for the call that bears its name. It now allowsthat one case, and a new check refuses an id used twice. The control: a second
webjob, withweblisted twice ingate's needs sothat the neighbouring check is satisfied, fails that check and no other (
got 13, wanted 12).ci.yml:webas changed andweb.yml:webas new, andnever 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 areLOST,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
Parity, mechanically (
scripts/ci-commands.py, with the rule above). Real output:ci.yml:webchanged from the job to its call;gatechanged only inVERDICT_JOBS.Locally, every
ci-scriptscommand and every guard ofdeps, in the CI's order: all pass (the gate's cases 186, the wiring test 82checks, the planner's 6,986).
actionlintis clean, with its control.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 gaveweb18 of them (5 onci.yml, 13 onweb.yml), and I wrote 3 more for the planner's map and the gate'slist: 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
webis left inci.yml", is killed first bythe neighbouring gate-needs comparison; the duplicate-id check meant for it fires on its own (above).
The planner's cases for the real map, through the command line:
web/plans the cell job ofci.yml, then the workflowweb;e2e/alone plans the cells and no workflow;
scripts/check-web-diff.shplanswebandci-scripts; the book andweb/together plancontract documentation web, in the planner's order.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.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:
webplanned and skipped (... && false)web / verdict,gate(web / webskipped; the other 37 jobs,documentationandsecurityamong them, succeeded)web was expected to run and its result is 'skipped'; gate:web was expected to run and its result is 'failure'gatealone (the other 39 jobs succeeded,web / webandweb / verdictamong them)web succeeded but its verdict output is 'missing', not 'pass'This PR's own run (full, because it edits
ci.yml; run 44021498422, head3aa61b8, which holdsmainas of0c3c0ef): 42 checks, allpass, none skipped;
gatecertified byassert-required-contexts.sh(STRICT_CONTEXTS=gate).web / webran the real build: the Q-R2gate (
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 / verdictran the action's two steps and printedok: 1 expected jobs passed, the rest were skipped.gateexpectedci-scripts deps lint hermetic pg-adapter contract mutants documentation security weband printedok: 10 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success. On the runnermutate_gate.pykilled 136 of 136 under dash, andtest-deploy-target.sh(the one that fails under bash) passed 121 of 121. The checkwebis now namedweb / web;gateis the onlyrequired context, so nothing requires it by name.
Found while building it
mainmoved while I built (test: the load suite, thrust-load-tests, with the latency and scale probes as nextest tests (test-suites PR 3) #262 and feat(deploy): deploy a target as a Worker Preview and prove it through the edge, removing it again on any failure #257 before I merged it in, refactor(api): keep error DTOs at router boundary #263 after, which touches crates, docs andcheck-deps.shonly).feat(deploy): deploy a target as a Worker Preview and prove it through the edge, removing it again on any failure #257 edits
plan-ci.py,ci.ymlandcicd.md, so I committed the build, mergedmainin (no force-push) and tested the merged tree. The only conflict was a pair of rows added to the same table incicd.md: I keptboth. The mutants (136 of 136), the
ci-scriptscommands, thedepsguards and the parity check were all run again on the merged tree.test-deploy-target.shfails under bash and passes under dash. My local run of theci-scriptslist used this Mac'ssh(bash) and got 89 passed, 32 bad (a
JSONDecodeErrorinsideflagship_fake.py); underdash, which the runner uses, it is 121 of 121,and
main's ownci-scriptsis green. Its line 59,"${2:-{\}}", expands to{}in dash and to{\}in bash, so the state file it seeds isnot JSON. It passes where it is run, so I left it alone; I mention it because anyone running the list locally with
shwill see a redthat is not one. My local run is under dash from here on.
What this does not show
verdictjob 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.ci-commands.pydoes not compare them, so "moved verbatim" for the comment abovewebis my reading.rc/*run: the migration's acceptance, taken once after M6.npm install --global pnpm@<the pin>is a question for the Web phase's survey, not for arefactor, which keeps the commands.
Next: M4,
lint.yml(lintanddeps), the first callee that holds two jobs.🤖 Generated with Claude Code