Repository navigation
Conversation
All four were answered as recommended: the simplest callee first (M1 is documentation.yml, test.yml is fifth), the job ids kept through the migration, flake-hunt.yml left as it is and made a stage of the Test phase, and lowercase workflow names. PLAN.md's decisions table, its Phase 1 section (the rules, the stage table in the new order, the done-when list) and its status, and the phase document's questions section (now decisions), say so; no question is left open. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rkflow (migration M1) Phase 1 of the CI split, stage M1 (ADR-0102): the `docs` job leaves ci.yml for a workflow of its own that ci.yml calls and `gate` judges twice. A refactor: the job keeps its id, its steps, its pins and its comment, byte for byte. documentation.yml has the `docs` job, which runs when its `plan` input names it, and a `verdict` job that judges `docs` against that plan with the one script (assert-gate.sh) and sets the output `verdict=pass` only after it did. It is called by ci.yml and runs alone by dispatch (plan defaults to ["docs"]); it sets no workflow-level concurrency and reads no event name (R8, R9). ci.yml: `changes` outputs `top` and `plans`, which the planner already printed; a calling job `documentation` replaces `docs`; `gate` needs it, judges `top` and not every planned job, and sets VERDICT_JOBS=documentation, a static list and not the planner's output, so a planner that dropped a workflow could not switch its check off. The planner's WORKFLOWS names the workflow, and the gate's default list follows. Proof that it is the same, as the phase plan requires: - .agents/plans/ci-workflows/scripts/ci-commands.py compares every step of every job on main and on this branch, a job being the same job wherever it lives: `docs` moved with its 4 steps identical, 30 jobs unchanged, and the only differences are the three expected ones (changes gains two outputs, gate gains `top` and VERDICT_JOBS, ci-scripts gains test lines) and the two new jobs. Its self-test has 24 checks and 13 planted bugs, each caught. - test_workflow_wiring.py, new, holds ci.yml, the planner and the workflow's file to each other (35 checks); the gate's tests now model the real gate, with a `verdict` output on the called workflow and the cases for it missing, empty and `fail` (178 cases). - mutate_gate.py now also mutates ci.yml and documentation.yml: 76 mutants, each killed by the check meant for it (checked one by one), and four that change nothing survive. The planner's test_plan_ci.py pins the map (EXPECTED_WORKFLOWS), so each stage's change to it shows in that file. ci-baseline.py's default job groups follow the migration; research 0017 now says which names a window before the migration needs. The book was not built locally (mdbook-mermaid is not installed here): the `docs` job of this pull request's own run is that check, through the new workflow. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…if (DO NOT MERGE)
A probe of the migration's M1, closed unmerged. `docs` is planned (this edits a workflow, so every job
is) and its `if` reads `... && false`, so it never runs. Its text still contains
`if: contains(fromJSON(inputs.plan), 'docs')`, so test_workflow_wiring.py does not see it: the
point is what the REAL gate does. Expected: the verdict job fails ("docs was expected to run and its
result is 'skipped'"), documentation fails, and gate is red naming documentation.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
Closed unmerged: its run (44006542560) has been read. Result: the real gate went red, for this fault and no other.
A planned job skipped inside a called workflow turns |
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.
DO NOT MERGE: a probe of #254, closed once its run is read
docsis planned (this edits a workflow, so every job is) and itsifreadscontains(fromJSON(inputs.plan), 'docs') && false, so itnever runs. The text still contains the
ifthattest_workflow_wiring.pylooks for, andlint-all-workflows.shandactionlintpass, so only the real
gatecan object. Expected, in this run:documentation / docs: skipped;documentation / verdict: failure, sayingdocs was expected to run and its result is 'skipped';documentation: failure;gate: red, namingdocumentation;ci-scripts,depsand every other job: green (so thatgatereachesdocumentation).Invariant 3 of the plan, shown on the real files: a planned job that is skipped inside a called workflow turns
gatered.