Skip to content

fix(ci): stabilize Workshop blank-line height checks - #140718

Merged
steipete merged 1 commit into
mainfrom
codex/workshop-row-layout-height
Sep 7, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/workshop-row-layout-height

Conversation

@steipete

@steipete steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

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.

Measure untransformed row layout height while preserving collapsed-row
regression detection and full-document content checks.
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 7, 2026
@steipete
steipete marked this pull request as ready for review September 7, 2026 03:26
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 11:32 PM ET / September 7, 2026, 03:32 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: eef352d5dabde5a64ddef2812c02d5d5eb773707

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused correction with retained behavioral assertions and useful reported sensitivity validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor-proof gate is exempt for this maintainer-authored test correction; supplied evidence nevertheless describes real Chromium layout measurements, 12 passing cases, and a failing collapsed-row control against the Workshop renderer.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor-proof gate is exempt for this maintainer-authored test correction; supplied evidence nevertheless describes real Chromium layout measurements, 12 passing cases, and a failing collapsed-row control against the Workshop renderer.
Evidence reviewed 7 items Verified introduced change: The pinned merge-base-to-head diff changes only the row-height measurement; the positive first-row height, nonempty blank-row set, full-document equality, and height inequality assertions remain intact.
Still necessary on inspected main: Fetched main still uses getBoundingClientRect().height and compares every blank row against the first row without tolerance.
Production layout contract: Shared diff rows have min-height: 1lh. Workshop reuses this renderer and permits text wrapping; measuring layout height directly matches the blank-line collapse invariant.
Findings None None.
Security None None.

How this fits together

Workshop 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 6 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 8 6 +2

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #140700
Summary: This PR implements the measurement correction requested by the linked open issue; that issue should remain open until its fix lands.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

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

Labels

Label changes:

  • add P2: This repairs a demonstrated intermittent test-measurement defect affecting unrelated PR validation, without changing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor-proof gate is exempt for this maintainer-authored test correction; supplied evidence nevertheless describes real Chromium layout measurements, 12 passing cases, and a failing collapsed-row control against the Workshop renderer.

Label justifications:

  • P2: This repairs a demonstrated intermittent test-measurement defect affecting unrelated PR validation, without changing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor-proof gate is exempt for this maintainer-authored test correction; supplied evidence nevertheless describes real Chromium layout measurements, 12 passing cases, and a failing collapsed-row control against the Workshop renderer.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 6e8fd6c into main Sep 7, 2026
131 checks passed
@steipete
steipete deleted the codex/workshop-row-layout-height branch September 7, 2026 03:44
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
Measure untransformed row layout height while preserving collapsed-row
regression detection and full-document content checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workshop document E2E compares fractional row geometry as exact height

1 participant