Repository navigation
Make the Live E2E artefact promise true instead of unreachable - #8562
Conversation
`playwright.live.config.ts` declares `reporter: [['list']]`. The `list`
reporter writes to stdout, so nothing in that config ever produces a
`playwright-report/` directory — yet four sites promised readers one:
`live-e2e.yml`'s header, its job-summary step, its upload glob, and the
Live E2E section of `content/docs/guide/ci-cd-pipeline.md`.
Measured with the real reporters, three legs: `[['list']]` on a passing run
and on a failing run both leave `playwright-report/` ABSENT, while
`[['html', { open: 'never' }]]` produces it — the control that makes the two
absences readable.
The text is corrected rather than the runtime grown: the sibling lane
already answered this question the same way (objectui#4086 kept the
`github` reporter and fixed its prose), the evidence a red run actually
needs is the screenshots and videos in `test-results/` plus the step's own
log, and an HTML report is a capability with no reader today.
Also records the sharper edge: the upload step is gated on `failure()`, so a
green lane uploads nothing at all and any acceptance criterion phrased over
the artefact's contents is readable only on a red run. That trap is what
made objectui#8084's stated criterion unpassable.
The new block in `scripts/__tests__/ci-cd-pipeline-doc.test.ts` pins the
claim to the mechanism: flip the reporter and every site that describes it
goes red until it is rewritten.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
|
The attribution, structural rather than statisticalThis PR's diff is ⇒ ⛔ Not a frequency argument, ⛔ not "flake". The mechanism is read from the failing file itself and recorded on objectui#8564: ⭐ Same class as objectui#8532, which repaired What was done
⛔ Nothing about this PR changes on account of that red. Generated by Claude Code |
|
LANDED — Landing probe, on a re-fetched
|
| probe | expect | first read | resolved |
|---|---|---|---|
the new pin uploads no path the reporter cannot produce |
> 0 | 1 | ✔ |
the new pin green run uploads nothing at all |
> 0 | 1 | ✔ |
⭐ firing control — live-e2e in the test file |
> 0 | 29 | ✔ |
⭐ nonsense control — zzq-not-a-real-token-8238 |
0 | 0 (exit 1) | ✔ |
playwright-report/ in live-e2e.yml |
0 | 2 | ⇒ both are comment lines |
uploaded Playwright report in the docs |
0 | 1 | ⇒ the new paragraph quoting the old claim |
The two, resolved structurally rather than by substring
playwright-report/ survives in live-e2e.yml only at :240 and :243, inside a fence the fix added:
# ⛔ Do not add `playwright-report/` back to this glob without changing
# … reporter in it writes `playwright-report/`, so the path matched nothing
The glob itself (:260-263) now reads test-results/ plus the two server logs — the path is gone. And the docs hit at :519 sits inside the new paragraph that says the artefact carries no Playwright HTML report and records that "this page and the workflow header both promised" one.
⇒ ⭐ A fix that documents what it removes will always contain the string a naive negative probe searches for. This is the sixth encounter today with that family, and the third where this seat's own probe was the thing at fault. The probe that answers the question is the structural one: read the glob, ⛔ not the file.
What is now on main
All four claim sites moved together — the workflow header, the job-summary echo (the site the card, its triage comment and this seat's brief all missed, and the one GitHub renders on every failed run's summary page), the upload glob, and the docs section. And the claim is now pinned to its mechanism: the test asserts the prose against the reporter list, so ⛔ neither can drift without the other going red.
The card's second edge is on the record too: the upload step is gated if: !cancelled() && failure(), so a green lane uploads nothing at all — which is why objectui#8084's acceptance criterion (file count above 1 and a playwright-report/ appears) was unsatisfiable in its second half.
⚠️ Predicted and confirmed: this did NOT fix objectui#8561's surface
As stated on that card before this landed, and re-measured on f5cfbbd81:
.github/workflows/ci.ymlstill carries 4playwright-report/references — deliberately, with the reasoned 12-line comment objectui#4086 left there;content/docs/guide/ci-cd-pipeline.md:217still reads "Uploads the Playwright report on failure" for thee2elane — 1 hit, unchanged.
⇒ objectui#8561 remains open with two surfaces, ⛔ neither touched here, and the rename-or-keep decision is still one decision for both.
Generated by Claude Code
…g raise could not (objectui#8542) `fa9e76ccd` raised `PER_CHUNK_GZIP_CEILINGS.framework` to 100,000 and recorded, honestly, that it could not say what the bytes bought: "the commits in that window have never been bisected — this checker is a two-build predicate over them and no one has run it." That is the one sentence this change replaces. The bisect has now been run — one `apps/console` build per point, each from the repo ROOT, `framework` read out of the `apps/console/dist/eager-closure.json` the build itself writes: | build | landed by | `framework` gzip | moved by | | `40a7c538a` | #8503 | 70,999 | last GREEN, 1 byte under | | `512c84b16` | #8519 | 70,999 | 0 | | `f76f43628` | #8512 | 71,261 | +262 | | `e76634cc8` | #8529 | 72,245 | +984 | | `e411c3e58` | #8562 | 72,248 | +3 | Two commits own the overage, not one, and the LARGER one is outside the window every card bounded its reasoning to: `e76634cc8` landed after the red had already started and carries 984 of the 1,246 bytes the pair added. A repair scoped to that window would have left `main` red. `512c84b16` emitted a byte-identical chunk to `40a7c538a` — the same `framework-nDOJv2Ij.js` content hash — so the three commits between them moved this chunk by zero, and `270f2825b` touches no file under `packages/(core|react|types)` at all. What the bytes buy is therefore sayable, which is what the gate's own failure message asks of a raise: both contributors are silent-wrong-answer fixes on one file's filter path. `f76f43628` stopped an unrecognised `$` operator adding no constraint and matching every row; `e76634cc8` stopped an array comparand and a `{ $field }` reference being compared by reference, which selected every row under `$ne` and no rows under `$eq` without saying so. No constant moves. The prose that records what the raise COSTS is kept intact, including that the attribution arrived after the ceiling did. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
…g raise could not (objectui#8542) (objectstack-ai#8579) `fa9e76ccd` raised `PER_CHUNK_GZIP_CEILINGS.framework` to 100,000 and recorded, honestly, that it could not say what the bytes bought: "the commits in that window have never been bisected — this checker is a two-build predicate over them and no one has run it." That is the one sentence this change replaces. The bisect has now been run — one `apps/console` build per point, each from the repo ROOT, `framework` read out of the `apps/console/dist/eager-closure.json` the build itself writes: | build | landed by | `framework` gzip | moved by | | `40a7c538a` | objectstack-ai#8503 | 70,999 | last GREEN, 1 byte under | | `512c84b16` | objectstack-ai#8519 | 70,999 | 0 | | `f76f43628` | objectstack-ai#8512 | 71,261 | +262 | | `e76634cc8` | objectstack-ai#8529 | 72,245 | +984 | | `e411c3e58` | objectstack-ai#8562 | 72,248 | +3 | Two commits own the overage, not one, and the LARGER one is outside the window every card bounded its reasoning to: `e76634cc8` landed after the red had already started and carries 984 of the 1,246 bytes the pair added. A repair scoped to that window would have left `main` red. `512c84b16` emitted a byte-identical chunk to `40a7c538a` — the same `framework-nDOJv2Ij.js` content hash — so the three commits between them moved this chunk by zero, and `270f2825b` touches no file under `packages/(core|react|types)` at all. What the bytes buy is therefore sayable, which is what the gate's own failure message asks of a raise: both contributors are silent-wrong-answer fixes on one file's filter path. `f76f43628` stopped an unrecognised `$` operator adding no constraint and matching every row; `e76634cc8` stopped an array comparand and a `{ $field }` reference being compared by reference, which selected every row under `$ne` and no rows under `$eq` without saying so. No constant moves. The prose that records what the raise COSTS is kept intact, including that the attribution arrived after the ceiling did. Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S Co-authored-by: Claude <noreply@anthropic.com>
Fixes #8238
The measurement, re-derived on
3f775eeb8All three anchors the card and the triage comment named still hold, byte for byte:
playwright.live.config.ts:31reporter: [['list']],— and nothing else.github/workflows/live-e2e.yml:240-241playwright-report/+test-results/content/docs/guide/ci-cd-pipeline.md3f775eeb8, moved by #8465.What I actually ran, rather than reading the config
The card's readings are a prediction, and "no reporter writes
playwright-report/" is a claim about a reporter, so I ran the reporters. Three legs, same harness, this repo's pinned Playwright:playwright-report/test-results/[['list']]— the live config's actual value[['list']][['html', { open: 'never' }]]⭐ The control leg is what makes legs A and B mean anything: without a run that does produce the directory, two absences are indistinguishable from a probe that cannot see directories at all. The card's two-run measurement against a real backend reproduces exactly.
⭐ There are FOUR claim sites, not three
The card and the triage comment both fence "the header, the docs sentence and the glob are three spellings of one claim and must move together — a fix that repairs two of three reproduces the defect in a smaller place."
That fence is right and it undercounted. There is a fourth site, and it is the one a reader of a red run hits first — the job-summary step,
live-e2e.yml:229:echo "See the \`live-e2e-artifacts\` upload for the Playwright report and server logs."That text is what GitHub renders on the run summary page of a failed lane. Repairing the header, the page and the glob while leaving it would have left the single most-read spelling of the false promise in place. All four move here.
Which direction, and why that one
The card offers two honest options. ⛔ I did not pick by size. Analysed on the four axes:
实际业务需求. What does a reader of a red Live E2E run actually need? Not a report — the failure's evidence. The live config sets
screenshot: 'only-on-failure'andvideo: 'retain-on-failure', which write intotest-results/; the HTML report is a viewer over that same data, not a second source of it. (Notetrace: 'on-first-retry'withretries: 0means traces are never written on this lane at all, so the report would have had less to show than on a retrying lane.) Nobody has ever consumed a report here because none has ever existed — this is a capability with zero measured pull, not an unmet need.项目长远合理性. ⭐ This exact question was already answered in this repository, for the sibling lane, and the answer is written into
ci.yml:1370-1383:playwright.config.tsselects thegithubreporter on CI, that reporter produces noplaywright-report/, the upload step saidNo files were found with the provided path— objectui#4086. The repository's resolution was not to add an HTML reporter; it was to keep the stdout-family reporter and make the surrounding text true. Makinglive-e2ediverge would leave two lanes answering one question two ways, for no reason a reader could reconstruct.防 AI 写代码犯错. This is the axis that decides it. The defect class here is a document declaring a capability the runtime does not deliver. Growing the runtime to match drifted prose rewards the drift; it is the moral equivalent of a tolerant
??fallback on the consumer side, and it leaves the next drift equally undetectable. The structural answer is to make the declaration checkable — so this PR does not just correct four sentences, it pins them to the mechanism (below). 声明即强制:the reporter list is the declaration, and now nothing can describe it wrongly in silence.创业阶段不扩散需求. An HTML reporter is a capability expansion with no puller, costing a directory per run in artefact storage on an informational lane that already cannot block a merge. Under implementation-first with no named consumer, the default is tight: don't add it.
⇒ Make the text true. All four axes agree, and the third one is why the PR is bigger than a wording tidy-up.
One place I departed from the card's option 2
The card's option 2 says "drop
playwright-report/from the upload path".ci.ymlargues the opposite for its own lane — keep the absent path, becauseupload-artifactonly warns when no path matches, so it costs nothing and keeps working if the HTML reporter is ever enabled.I dropped it here anyway. That rationale is sound where it is written down next to the glob, and on
ci.ymlit is. Onlive-e2e.ymlit was not written down, and an undocumented path in a glob is read by humans as a promise the artefact contains it — which is this card. A glob every line of which the config can actually produce is the honest shape; the "if it is ever enabled" property is speculative capability, which axis 4 declines. ⛔ I did not touchci.yml; its comment is truthful and its lane is not mine.The card's second, sharper edge
⭐ The load-bearing half, and the one that outlives whichever direction is chosen: the upload step is gated
if: ${{ !cancelled() && failure() }}, so on a green lane it does not run at all — no artifact, no file count, nothing to read. Any acceptance criterion phrased over the artefact's contents is therefore readable only on a run that failed.Its concrete casualty is on the record: objectui#8084's dispatch defined "the fix is real" as the uploaded artifact's file count goes above 1 and a
playwright-report/appears. The first half is sound; the second is unreachable, so a correct fix could never have satisfied the stated test. ⭐ An acceptance criterion nobody can pass is the same hazard as a check nobody can fail, pointed the other way.This PR records that trap in both places a reader would form such a criterion — a⚠️ block in the docs page's Live E2E section, and a comment on the upload step itself — and pins it, so the sentence cannot outlive the gate it describes.
⛔ This PR does not touch #8084's defect ② (the run reporting
successwhile the job reportsfailure); different mechanism, stays on that card.The pin — why this is not just four edited sentences
New block in
scripts/__tests__/ci-cd-pipeline-doc.test.ts, written in that file's existing idiom (vacuity legs, a parser control, long diagnostic messages). It pins the claim to the mechanism, and is deliberately agnostic about which way the repository decides the reporter question:uploads no path the reporter cannot produce— mechanical and exact: the glob may nameplaywright-report/if and only if the config declares a reporter that writes it. Both directions are diagnosed.quotes the reporter value both prose sites are describing— the header and the docs section must each quote the reporter list as written ([['list']]). This is what turns the card's fence into something a test can hold: flip the config and every prose site goes red until someone rewrites it.says that a green run uploads nothing at all— the docs section must mentionfailure(), and the upload step must actually carry that gate. If the gate ever changes, the warning must change with it.has all four sides to compare— the vacuity legs. A renamed heading, a restructured config or a moved header would each make the comparisons pass while checking nothing, silently.reads the config, not the file as text— control forreporterValueOf.playwright.live.config.tsopens with a 20-line block comment describing the config in prose, and a whole-file regex cannot tell that prose from a setting. Same class of mistake as counting a commented-outenv:key, which is why the neighbouringenvKeysOfblock carries the same control.Ablation — proof the pin can fail
Both legs: mutate → prove the mutation reached disk (before/after
grep -con the exact anchor, plus agit hash-objectcomparison against theHEADblob) → run → restore viagit checkout HEAD -- <abs path>from anEXIT INT TERMtrap → prove restoration by an emptygit diff HEAD.[['list'], ['html', {open:'never'}]]764e69dc→fbe41e11;'html'0→1uploads no path the reporter cannot produce,quotes the reporter value both prose sites are describinggit diff HEADempty; blob back to764e69dcfailure()from the docs warningfailure()1→0says that a green run uploads nothing at allgit diff HEADemptyDirection observed: turns red, naming exactly the sites that must move. Leg 1 failing on both the glob and the prose is the fence working — one config edit, three sites flagged.
Verification
All commands' exit codes captured by redirect before any pipe.
vitest run --project unit scripts/__tests__/ci-cd-pipeline-doc.test.tslive-e2e.yml(ensure-chromium-ready,workflow-cache-save-bound,vitest-invocation-guard) + the abovecheck:action-ref-conventioncheck:control-bytescheck:shell-escape-residuetype-check:scriptscheck-doc-links.mjscheck-doc-fence-languages.mjscheck-doc-expression-carriage.mjscheck-changeset-presence.mjscheck-changeset-no-major.mjs/check-changeset-overwrite.mjscheck-governed-queue-guard.mjs --testcheck:*names in my first pass returned exit 254 /Command not found— my misspellings, not red gates. Re-run under their real spellings, above; aCommand not foundis NOT MEASURED and is not reported here as a pass.Control-byte self-scan.
grep -naP '[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]'over all 4 changed files together with a file containing a deliberate\v: exit 0 with the control file as the only hit ⇒ the changed files are clean and the pattern was live in that run. (My first control used a tab, which is not in that class and returned a false clean; recorded because it is exactly the trap the brief names.)Lint, narrowed — a measured narrowing, not a skipped run. Three pieces:
eslint.config.js:53scopes linting tofiles: ['**/*.{ts,tsx}']; eslint itself reported the.mdand.ymlfiles as ignored.--format json: 4 paths passed, 1 actually linted (ci-cd-pipeline-doc.test.ts), 3 warn-ignored.errorCount: 0, exit 0.projectService,parserOptionsorproject:anywhere ineslint.config.js(grep exit 1, withrulespresent 11× as the control) ⇒ type-aware linting is not enabled, so nothing in this diff can move the verdict of any untouched file.The repo-wide
pnpm lintis CI's run, not one I owe.Changeset
.changeset/8238-live-e2e-report-promise.md, empty frontmatter — this repo's declared mechanism for "this PR publishes nothing" (there is no label-based bypass here, andci-cd-pipeline-doc.test.tsactively fails any script under.github/orscripts/that introduces one). CI, docs and tests only.Out of scope, filed separately
ci.yml's E2E artifact is namedplaywright-reportbut never contains one — the name is the only thing a reader sees in the Actions UI #8561 (findingonly, no assignee) —ci.yml's E2E artifact is namedplaywright-reportwhile containing onlytest-results/. ⭐ This is not a second instance oflive-e2e.ymlpromises "an uploaded Playwright report" it can never produce —playwright.live.config.tsdeclares no HTML reporter #8238: the 12-line comment above that step is accurate and complete, and it is the prior art that decided this whole question. What remains is only that the artifact name is the one surface that comment cannot reach — it is what a reader sees in the Actions UI. Filed so the rename-or-keep choice is deliberate; ⛔ untouched here.Bundle Analysisis red onmainand on every PR that triggers it — objectui#8542, ⛔ not from this change and not a required check.Live E2E (informational)red onmain) is a different, already-filed card. ⛔ Not folded in.Predictions in the dispatch brief that turned out false
ci-cd-pipeline.mdline 453 — stale as predicted; the sentence is at 511.scripts/__tests__/ci-cd-pipeline-doc.test.tspins that page" — true, but not for this claim. It requires a heading per workflow and pins.github/WORKFLOWS.mdas deleted; no assertion read the report sentence, which is precisely how it drifted. I did not have to work around a pin; I had to add one.playwright-report/from the glob" — adopted, but only after finding that the sibling lane deliberately does the opposite with a written rationale. Reported above rather than followed silently.check:action-ref-conventionhad no opinion here: ⛔ I changed no action reference (actions/upload-artifact@v7is untouched). The step'sname:changed, which that gate does not read.🤖 Generated with Claude Code
https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Generated by Claude Code