Repository navigation
ci: refuse cells given to a level that names no cell job - #290
Merged
Merged
Conversation
Since M5b (#281) assert-gate.sh's default cell job is none, so a verdict job that forgot its cell job judged no cells and passed; the wiring test was the only thing that held test.yml to name it. The verdict action passes `cells` through whatever `cell-job` says, so a forgotten `cell-job` arrives here as a level with no cell job and a non-empty PLANNED. That is now refused ("cells are planned but no cell job is named"): only an unset PLANNED or an empty array is no cells. The four workflows without cells are given the action's default `[]` and ci.yml's gate none, so neither changes. - test-ci-scripts.sh: the gate case that ignored a PLANNED it was given is replaced by five (two cells, an object, not JSON: refused; `[]` and `[ ]`: passed), and a verdict job that forgot CELL_JOB and is given cells is refused (201 cases, were 196). - mutate_gate.py: three mutants of the rule (removed, compared by text, reading no PLANNED), each killed. - PLAN.md: the Test phase's row records what #279 left for it: an ungated workflow that repeats test.yml's preview commands and is the only check of the provisioner's wasm32 build, and planner paths handled before RULES. Co-Authored-By: Claude Opus 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
A follow-up to M5b (#281), which you asked for after it merged. One rule in
assert-gate.sh: a level that names no cell job and is givencells is refused (
cells are planned but no cell job is named (CELL_JOB)). Plus a note in the plan's Test phase about what #279 left for it.Why
#281 made the default cell job none, because
ci.yml's gate no longer judges cells, and said plainly what that cost: averdictjob thatforgets its cell job judges no cells and passes. Only the wiring test held
test.ymlto name it. But theverdictaction passescellsto the judge whatever
cell-jobsays, so a forgottencell-jobreachesassert-gate.shas a level with no cell job and a non-emptyPLANNED. That is the case this rule refuses, so a forgotten cell job now fails in the run, on every run that plans a cell, as it didbefore M5b, and not only in the wiring test.
What does not change: only an unset
PLANNEDor an empty array counts as "no cells".ci.yml's gate passes noPLANNED, and the fourworkflows without cells get the action's default
[], so neither judges differently.test.ymlnamescontract, so the rule never applies to it.The tests
test-ci-scripts.sh, 201 cases (were 196). ci: move the contract cells and the judging of their markers into test.yml (migration M5b) #281 had a case saying the opposite: the gate givenPLANNED='{}'ignores it and passes.That case is replaced by five: two cells, an object, and text that is not JSON are each refused;
[]and[ ]pass. And a verdict job thatforgot
CELL_JOBand is given cells is refused. The one that forgot it and is given none still passes, as the four workflows without cells do.mutate_gate.py, 229 hand mutants, each killed, three of them new: the rule removed, the empty array compared by its text and notits JSON value (
[ ]would be refused), andPLANNEDnot read at all. The 9 that change nothing survive.deps(21, fromlint.yml, the OpenAPI diff among them) and ofci-scripts(43, fromtest.yml): 64 of 64 exit 0. The planner and the workflows are not touched.This PR's own run
Full, because it edits
assert-gate.sh(run 44187852413, head94bd1e0): 42 jobs, all success.gateprintedok: 5 expected jobs passed, the rest were skipped;test / verdictfound 53 artifacts and printedok: 5 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success, so the rule does not touch a level that names its cell job. Intest / ci-scripts: the gate's casespassed=201 bad=0, andmutants=229 killed=229 survived=0 broken=0 equivalent-wrong=0under the runner's dash.No probe on the real files. The only way to forget the cell job in them is to drop
cell-job: contractfromtest.yml, which the wiring testreads, so a probe would fail
ci-scriptsfirst and show nothing of the rule. The rule is shown by its six cases and three mutants instead.The note for the Test phase
PLAN.md's row for phase 2 now says what #279 (the preview control plane, merged after M5a) left for it:preview-control-tests.ymlruns on every pull request outsidegate. It repeats fiveci-scriptscommands and the provisioner's step ofpg-adapter, and the provisioner's tests, whichhermeticruns too.wasm32build is checked, so no checkgatewaits for covers that build.plan-ci.pyplansinfra/preview/,infra/cloudflare/andthrust-preview-provisionerin a branch beforeRULES, not as rules. So theone-sample-per-rule check and the rule-effect mutants don't reach that code.
This PR changes none of that: it is a note for the phase that reworks
test.yml.🤖 Generated with Claude Code