Skip to content

test(ui): include moved elements in Systems layout failures - #193792

Merged
steipete merged 2 commits into
mainfrom
solid2/hf-systems-small-shift-1105
Nov 5, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/hf-systems-small-shift-1105

Conversation

@steipete

@steipete steipete commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Scheduled CI reports a tiny nonzero Systems layout shift without naming the element that moved. This is the diagnostic stage of the maintainer-requested HF-SYSTEMS-SMALL-SHIFT investigation, following #193426.

User Impact

No production rendering change. Systems layout assertions still require exactly zero unexpected shift; failures now include every entry's node path, previous/current rectangle, timestamp, value, and recent-input attribution.

Why This Change Was Made

The shared test helper snapshots source details when the observer delivers an entry, and drains queued records before reading. A small browser contract test deliberately moves one element to verify the reported source and geometry. It runs after the existing scenarios so the original cold-start case remains first.

The historical CI cause is still unconfirmed. Run 42121402635 actually failed the 400 px / one disk / backups off case at 0.0002235138888888889, so investigation is not limited to four disks. The original scenarios remained green under CPU throttling and neighboring-suite load. Deliberately delaying webfonts beyond the recent-input window does produce a separate 0.00009049623842592592 shift: the header help-link text changes width and the Backup details button moves 3.765625 px. That is a candidate mechanism, not proof of the historical failure, and does not justify a speculative font or layout change.

Evidence

Check Result
pnpm tsgo:ui Pass
Focused lint, formatting, git diff --check Pass
systems-workspace.e2e.test.ts, one worker, production bundle 29 passed, 42.52 s; includes native diagnostic contract. Reused after the order-only move of that contract to the end
Original 28 scenarios, 6x CPU throttling 28 passed, 95.98 s
40 repeated 400 px scenarios, 4x CPU, alongside the CI-neighbor plugin/creator suites 48 passed across three files, 99.78 s
16 narrow-layout cases, 24x CPU, observation after initial input grace 16 passed, 307.59 s
Fresh browser, 4x CPU, 80 ms network latency, 1 MiB/s Affected first case passed, 5.78 s
Deliberately held font response, released after recent-input grace Failed zero-shift check with the two source nodes and rectangles above, as intended for diagnosis
Test-line ratchet Pass; exact 107-line allocation for retained helper and browser diagnostic
Independent Codex autoreview, P0–P2, complete base-to-candidate diff Clean, including the final test-order adjustment and allocation metadata

The focused runner reused one lane-owned production bundle with the repository's browser/global fixtures; local investigation used only headless browsers and synthetic Gateway data. A shared 32-logical-CPU macOS host had load averages around 14–17. Full-shard/Linux reproduction remains unproven. No remote leases were acquired.

Production LOC: unchanged. Test/helper LOC: 696 → 803 (+107); allocation metadata: +2 lines. No startup import, asset, CSS, tag, route, or selector changed, so startup bytes and screenshot comparison are not applicable to this diagnostic-only PR.

Retain node paths, before/after rectangles, timestamps and recent-input attribution for each layout-shift entry without changing the zero-shift assertion. Add native browser proof for the diagnostic.\n\nThe intermittent scheduled-CI shift remains unconfirmed locally; delayed webfonts can reproduce a small shift in the header link and Backup details button. Allocate 108 test/helper lines for actionable failure evidence.
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T23:31:00.806516Z 178182e New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 5, 2026 23:31
@steipete
steipete merged commit 57ab01e into main Nov 5, 2026
98 of 100 checks passed
@steipete
steipete deleted the solid2/hf-systems-small-shift-1105 branch November 5, 2026 23:37
@steipete

steipete commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…#193792)

* test(ui): report Systems layout shift sources

Retain node paths, before/after rectangles, timestamps and recent-input attribution for each layout-shift entry without changing the zero-shift assertion. Add native browser proof for the diagnostic.\n\nThe intermittent scheduled-CI shift remains unconfirmed locally; delayed webfonts can reproduce a small shift in the header link and Backup details button. Allocate 108 test/helper lines for actionable failure evidence.

* test(ui): preserve the cold Systems scenario order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant