Repository navigation
Conversation
This was referenced Nov 21, 2026
ci(visual): run the matrix's independent cells in parallel so the gate is not one serial sweep
#1208
Closed
added 4 commits
November 23, 2026 01:07
ADR 0027 settled the pre-approved-action route, so the `actions/cache` half of this card belongs to #1206 and is parked there. This removes the Cache step, the version-reading step it keyed on, the allowlist entry that admitted the action, and the cache claim in the job's doc bullet. No step the matrix depends on is touched.
… not a pass (#787) Red at a3b637d: 8 tests, 3 pass, 5 fail — the three workflow pins pass (the job keeps its name and its needs entry, a broken cell still reds, the aggregate still refuses an empty share, a missing result, a dropped cell and a duplicate). The five failures are the behaviour this card adds: no case table is written to GITHUB_STEP_SUMMARY, and `caseRows`/`summaryMarkdown` do not exist.
) `caseRows` turns the shares' reports into one row per promised cell — the scheme it ran in, its page and viewport, and the reasons it failed — and `summaryMarkdown` renders that table to GITHUB_STEP_SUMMARY from the coordinator, before the exit code is decided. A cell no share reported is a failure row, not a missing one, so a shrunken matrix cannot read green through the table.
This branch has not been deployed
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.
Written-by: HugoXK
Author: Fledge Platform Dev-3
Fixes #787
What a user sees differently
Nothing on a console page. The change is inside CI: the
visualjob's summary now names every measured case with its own result instead of one line for the whole matrix. A reader of a red run sees the page, viewport, scheme and the exact reason that failed; a reader of a green run sees the full table, including the cells whose share only recorded a failure.What changed
main4740fcc1via merge commit33e85fa2(no force, no rebase).#1208sharded the sweep while this card was parked and#1214merged it, so the branch's serialrecord()loop and its promise list are gone; the surviving behaviour is built on the shard aggregate that owns the workload.src/lib/visualMatrix.ts:caseRows(cells, results)turns the shares' reports into one row per promised cell — locale, viewport, the scheme it ran in (hostfor the sweep, the forced palette for the gate,explicit-darkfor the theme probe), its page, and the reasons it failed, with the cell's label prefix stripped. A cell no share reported is a failure row naming that, not a missing row.summaryMarkdown(rows, notes)renders the table and escapes a|inside a reason.scripts/visual-matrix.ts: the coordinator writescaseRows(...)throughsummaryMarkdowntoGITHUB_STEP_SUMMARYbefore the exit code is decided, so a red run still tells the reader what failed. Aggregate reasons that belong to no single row (a share that died, a cell counted twice) are appended as notes. A local run withoutGITHUB_STEP_SUMMARYskips the write; a failed write is reported and does not change the exit code.test/visualJobCeiling.test.ts(new): pins the job's name and its place inci-okneeds, the unguarded install and matrix steps, the aggregate refusing an empty share, a missing result, a dropped cell and a duplicate, and the table's shape (a failing row keeps its reason, an unmeasured cell is a failure row, a pipe cannot break the row).docs/autonomous-dev.md: thevisualbullet records the summary and the aggregate's refusal.The cache half is dropped
actions/cachewas the other half of this card. ADR 0027 (#1216) settled the pre-approved-action route, so that lever is#1206's subject and it is parked; this PR removes the Cache step, the Playwright-version step it keyed on, the allowlist entry that admitted it, and the cache claim from the docs bullet. Thevisualjob downloads Chromium on every run here, exactly as it did before this card.Why the coverage half is the shard aggregate, not a second promise list
#1214made the workload one list (visualWorkload()): the runner iterates the partition of it, andshardFailuresrefuses an empty share, a result that never arrived, a cell a share did not report, a cell reported twice and a cell reported outside its slice. The branch'scaseKey/expectedCaseKeys/caseCoveragewould be a second copy of that promise — a second thing to drift — so they are not rebased. The property they expressed is pinned in this PR against the one guard that now owns it.The three negatives
ci-ok. The matrix step is unguarded, the runner setsprocess.exitCode = 1on any failure, andvisualis in the aggregateci-okneeds:list inci.yml.caseRowsemits one row per cell the matrix promises, fromvisualWorkload(); a cell no share reported isfail: the share that owned this cell reported no result, so the summary cannot read green by omission.Red first
At
a3b637df(the cache removal on top of the merge, with the test file committed byte-identical),npx tsx --test test/visualJobCeiling.test.ts:The three passing assertions are the controls this change must not break: the job keeps its name and its
needsentry, a broken cell still reds, and the aggregate still refuses an empty share, a missing result, a dropped cell and a duplicate. The five failures are the behaviour added here: no case table is written toGITHUB_STEP_SUMMARY, andcaseRows/summaryMarkdowndo not exist. Atd00e65b0the same file is 8/8.The card's earlier red evidence stays in this branch's history at
f1c48ed3/9a61fc3e(43 tests, 33 pass, 10 fail) — history, not the tip's evidence.Measurement
The
visualjob's wall time when this card was written was 79 s cold / 88 s warm on a serial sweep.#1208then sharded it and#1214measured 46 s / 48 s / 60 s over three runs at four shares on the same runner. This PR adds no cache and no step, so it does not change the job's timing; the timing question now belongs to#1206.Ran:
npm run checkatd00e65b0— exit 0, 3335 tests / 3335 pass, build cleannpx tsx --test test/visualJobCeiling.test.tsatd00e65b0— 8/8a3b637df— 3/8, the red run abovenode scripts/risk-gate.mjs --base 4740fcc1— T3, 4 changed filesNot run:
visualmatrix on this host: no Playwright Chromium is installed here; the job's own CI runs are the measurement.docker: the image is unaffected by this diff and was not built locally.Risk and rollback
caseRowsreads the same failure list the aggregate decides on, so a red matrix cannot render a green table.shardFailures; the table shows it as a pass row and the aggregate notes carry the reason, because the text cannot be attributed to one cell. That is a display gap, not a gate gap.process.exitCode.shardFailures, which ships independently in#1214.Docs and changelog
docs/autonomous-dev.mdupdated (thevisualbullet).Changelog-not-needed: this is CI plumbing users cannot see.