Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Make the Live E2E artefact promise true instead of unreachable - #8562

Merged
baozhoutao merged 1 commit into
mainfrom
claude/issue-8238-live-e2e-report-promise
Sep 8, 2026
Merged

baozhoutao merged 1 commit into
mainfrom
claude/issue-8238-live-e2e-report-promise

Conversation

@baozhoutao

Copy link
Copy Markdown
Contributor

Fixes #8238

The measurement, re-derived on 3f775eeb8

All three anchors the card and the triage comment named still hold, byte for byte:

anchor reading
playwright.live.config.ts:31 reporter: [['list']], — and nothing else
.github/workflows/live-e2e.yml:240-241 upload glob is playwright-report/ + test-results/
content/docs/guide/ci-cd-pipeline.md "Failures still surface as a red step plus an uploaded Playwright report and job summary."

⚠️ The card's line number for the docs page (453) was stale, as the brief predicted — it is 511 on 3f775eeb8, 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:

leg reporter outcome exit playwright-report/ test-results/
A [['list']] — the live config's actual value 1 passed 0 ABSENT 1 file
B [['list']] 1 failed 1 ABSENT 2 files
control [['html', { open: 'never' }]] 1 passed 0 PRESENT (1 file) —

⭐ 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' and video: 'retain-on-failure', which write into test-results/; the HTML report is a viewer over that same data, not a second source of it. (Note trace: 'on-first-retry' with retries: 0 means 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.ts selects the github reporter on CI, that reporter produces no playwright-report/, the upload step said No 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. Making live-e2e diverge 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.yml argues the opposite for its own lane — keep the absent path, because upload-artifact only 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.yml it is. On live-e2e.yml it 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 touch ci.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 success while the job reports failure); 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 name playwright-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 mention failure(), 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 for reporterValueOf. playwright.live.config.ts opens 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-out env: key, which is why the neighbouring envKeysOf block carries the same control.

Ablation — proof the pin can fail

Both legs: mutate → prove the mutation reached disk (before/after grep -c on the exact anchor, plus a git hash-object comparison against the HEAD blob) → run → restore via git checkout HEAD -- <abs path> from an EXIT INT TERM trap → prove restoration by an empty git diff HEAD.

leg mutation proof it landed result restored
1 reporter → [['list'], ['html', {open:'never'}]] blob 764e69dc → fbe41e11; 'html' 0→1 exit 1 — 2 failed, 52 passed: uploads no path the reporter cannot produce, quotes the reporter value both prose sites are describing git diff HEAD empty; blob back to 764e69dc
2 delete failure() from the docs warning blob changed; failure() 1→0 exit 1 — 1 failed, 53 passed: says that a green run uploads nothing at all git diff HEAD empty

Direction 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.

command exit
vitest run --project unit scripts/__tests__/ci-cd-pipeline-doc.test.ts 0 — 54 passed
the 3 neighbouring suites that read live-e2e.yml (ensure-chromium-ready, workflow-cache-save-bound, vitest-invocation-guard) + the above 0 — 111 passed across 4 files
check:action-ref-convention 0
check:control-bytes 0
check:shell-escape-residue 0
type-check:scripts 0
check-doc-links.mjs 0 — links valid across 17 scan roots
check-doc-fence-languages.mjs 0
check-doc-expression-carriage.mjs 0 (report-only gate)
check-changeset-presence.mjs 0 — "no changeset is owed"
check-changeset-no-major.mjs / check-changeset-overwrite.mjs 0 / 0
check-governed-queue-guard.mjs --test 0 — NOT GOVERNED, 4 paths, none matched

⚠️ Four check:* names in my first pass returned exit 254 / Command not found — my misspellings, not red gates. Re-run under their real spellings, above; a Command not found is 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:

  1. Population from eslint's own config, not a guess: eslint.config.js:53 scopes linting to files: ['**/*.{ts,tsx}']; eslint itself reported the .md and .yml files as ignored.
  2. Count from --format json: 4 paths passed, 1 actually linted (ci-cd-pipeline-doc.test.ts), 3 warn-ignored. errorCount: 0, exit 0.
  3. Invariance: no projectService, parserOptions or project: anywhere in eslint.config.js (grep exit 1, with rules present 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 lint is 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, and ci-cd-pipeline-doc.test.ts actively fails any script under .github/ or scripts/ that introduces one). CI, docs and tests only.

Out of scope, filed separately

Predictions in the dispatch brief that turned out false

  1. "three spellings of one claim" (card, triage comment and brief all) — there are four; the job-summary step was uncounted, and it is the most-read one.
  2. ci-cd-pipeline.md line 453 — stale as predicted; the sentence is at 511.
  3. "scripts/__tests__/ci-cd-pipeline-doc.test.ts pins that page" — true, but not for this claim. It requires a heading per workflow and pins .github/WORKFLOWS.md as 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.
  4. The card's option 2, "drop 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.
  5. Gate list — check:action-ref-convention had no opinion here: ⛔ I changed no action reference (actions/upload-artifact@v7 is untouched). The step's name: changed, which that gate does not read.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr


Generated by Claude Code

`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
@claude

claude Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ Test (shard 3/4) is red on this PR and it is ⛔ NOT this diff's — filed as objectui#8564. One re-run triggered. domain:devx @ objectui execution seat, PM session session_01FhBNJcLRZLe8M87VcUgpKr, R47, 2026-09-08T11:32Z.

AssertionError: the declared rows member must still draw: expected 1 to be 2
 ❯ packages/plugin-tree/src/ObjectTree.contractEnvelope-6839.test.tsx:124:81
Tests  1 failed | 8900 passed | 1 skipped (8902)

The attribution, structural rather than statistical

This PR's diff is .github/workflows/live-e2e.yml, content/docs/guide/ci-cd-pipeline.md, scripts/__tests__/ci-cd-pipeline-doc.test.ts and a changeset. ⛔ Nothing in it can reach packages/plugin-tree's render path. And the one test file it does touch is not the one that failed — ci-cd-pipeline-doc.test.ts passed in the same shard.

⇒ ⛔ Not a frequency argument, ⛔ not "flake". The mechanism is read from the failing file itself and recorded on objectui#8564: settledOn() waits for find to be called and for find's own promise to settle, and ⛔ neither is the rows being drawn. Its own comment says why it avoids a DOM wait — "a predicate that renders feeds itself and leaks a container div per run" — and that trade is what leaves the race.

⭐ Same class as objectui#8532, which repaired plugin-kanban by splitting waits per expected outcome. Measured: type Outcome — that repair's shape — appears in the kanban file and in none of the other ten contractEnvelope-6839 files.

What was done

  • One re-run of the failed job (run 34219232106), which is the single re-run this seat allows itself for a failure it has established is not the PR's. ⛔ If it reds again on the same case, that is objectui#8564's business, ⛔ not a second re-run and ⛔ not a change to this diff.
  • objectui#8564 filed with no labels at all — a concrete defect, graded by triage, ⛔ not by this seat. The repair lands in packages/plugin-* test files, ⛔ not this lane.

⛔ Nothing about this PR changes on account of that red.


Generated by Claude Code

@baozhoutao
baozhoutao marked this pull request as ready for review September 8, 2026 12:03
@baozhoutao
baozhoutao added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit e411c3e Sep 8, 2026
43 of 44 checks passed
@baozhoutao
baozhoutao deleted the claude/issue-8238-live-e2e-report-promise branch September 8, 2026 12:20
@claude

claude Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

LANDED — e411c3e58 on origin/main. domain:devx @ objectui execution seat, PM session session_01FhBNJcLRZLe8M87VcUgpKr, R47, 2026-09-08T12:40Z. PR #8562 (card objectui#8238), merged 12:20:36Z.

Landing probe, on a re-fetched origin/main — ⚠️ and TWO of its rows were wrong the first time

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.yml still carries 4 playwright-report/ references — deliberately, with the reasoned 12-line comment objectui#4086 left there;
  • content/docs/guide/ci-cd-pipeline.md:217 still reads "Uploads the Playwright report on failure" for the e2e lane — 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

os-justin pushed a commit that referenced this pull request Sep 8, 2026
…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
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 9, 2026
…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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

live-e2e.yml promises "an uploaded Playwright report" it can never produce — playwright.live.config.ts declares no HTML reporter

2 participants