Repository navigation
fix(ci): stabilize Workshop blank-line height checks - #140718
Conversation
Measure untransformed row layout height while preserving collapsed-row regression detection and full-document content checks.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 11:32 PM ET / September 7, 2026, 03:32 UTC. ClawSweeper reviewWhat this changesThe Workshop browser test measures blank diff rows using integer layout heights to avoid fractional-pixel failures while retaining its minimum-height assertion. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped correction: current main retains the fractional geometry comparison, and the patch preserves collapse detection. No actionable correctness findings were found. Priority: P2 Review scores
Verification
How this fits togetherWorkshop displays installed skill instructions alongside saved-version comparisons. Its browser tests check that the complete document remains readable and blank lines retain their height. flowchart LR
A[Current skill instructions] --> C[Workshop comparison reader]
B[Saved instructions] --> C
C --> D[Rendered diff rows]
D --> E[Browser layout measurement]
E --> F[Blank-line height assertion]
F --> G[CI result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Retain the browser-level collapse guard using layout-height measurements and preserve the existing production renderer and CSS. Do we have a high-confidence way to reproduce the issue? Yes: the supplied 700-line, 390px browser case and measured discrepancy identify a concrete reproduction path, and inspected main retains that comparison. This read-only review did not execute it. Is this the best way to solve the issue? Yes: offsetHeight measures the intended layout invariant without adding tolerances or retries, and the reported collapse injection verifies that the assertion still detects the meaningful regression. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against afb7d393d734. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Measure untransformed row layout height while preserving collapsed-row regression detection and full-document content checks.
Closes #140700
What Problem This Solves
Workshop document E2E checks intermittently reject full-height blank lines because browser rectangle measurements differ by a tiny fraction of a pixel. The inherited main failure blocked unrelated PR CI, including #138870; #140654 also recorded the same failure followed by a successful unchanged rerun.
Why This Change Was Made
Measure each diff row's untransformed layout height with
offsetHeight. Keep the existing requirement that every blank row is at least as tall as the first row. Production CSS and reader behavior are unchanged.User Impact
More reliable Workshop CI, with the regression check for collapsed blank lines retained. No product behavior change.
Evidence
The unchanged real page reproduced the failure on the 700-line document at a 390px viewport: the first row measured 18.59375px and one blank row measured 18.593505859375px, a difference of 0.000244140625px. The displayed document still matched every expected line.
All 12 Workshop E2E cases passed after the correction, including a final run against the worktree's own frozen dependency install. Deliberately removing the minimum height from blank context rows made them measure 0px against a 19px first row and failed the unchanged assertion. The temporary sensitivity injection was removed.
Independent P2 review found no actionable issues. The complete selected changed-code gate passed, including the UI E2E type graph, i18n, three dead-export scans and targeted lint.