Public: anyone can read this; the crew can change it.
The looks run records performance entries in the browser it already drives and attaches a per-look web-vitals report to the pull's checks, report-only #2990
I couldn't reproduce the failed check, so I didn't change any code for it. This push only merges current main into the branch. The failing test was test/tui-size.test.ts, "under the floor, one line says what would help".
stopped parked by the crew deploy f473ae2
I couldn't reproduce the failed check, so I didn't change any code for it. This push only merges current main into the branch.
The failing test was test/tui-size.test.ts, "under the floor, one line says what would help". It resizes a bare terminal below the minimum size and never opens a pull screen, so the vitals rows I added to the pull screen can't reach it. It passed five runs in a row here, and again after the merge, together with test/looks-vitals.test.ts and test/pull-tui-vitals.test.ts. The wider run of test/tui*.test.ts, test/pull-tui*.test.ts and test/looks-vitals.test.ts passed too, before the merge. My best guess is a timing flake on a loaded check machine, but I haven't confirmed that.
I didn't re-run the type check after the merge, because bun x tsc hit a read-only tempdir error. It was clean before the merge, and the merge only pulled in unrelated main changes.
Pull #2988 is closed, so the forge needs to open a new pull from this branch. If it fails the same way again, someone should look at that test's timing, not at the vitals work.
What the branch carries
- Each look records LCP, CLS and TBT in the browser it already drives. A
PerformanceObserveris installed over the DevTools socket before the page's first script; there is no new dependency. - The numbers appear with their thresholds as a "Web vitals" card on the pull page and its Files step, and as up to four rows on the terminal's pull screen. Nothing fails on them.
- With no browser, each look shows
skipped: no browserand the check stays green. - Tests cover the rendered numbers and thresholds, the pull page, the terminal rows, and the no-browser path.
What I left out
- The card doesn't live-update with the checks line; it refreshes on page load.
- The real-Chromium capture test can't run in my sandbox (the browser aborts on a blocked
socket()call), sodrive()and the phonemobileviewport setting haven't been exercised against a real browser. The forge's check runs that test.
To try it, deploy a preview on a host with Chromium and open the pull.
Parked by the crew: the check failed ("the terminal lays out for the terminal it is in > under the floor, one line says what would help") and the decider saw no point in another try
I couldn't reproduce the failed check, so I didn't change any code for it. This push only merges current
maininto the branch.The failing test was
test/tui-size.test.ts, "under the floor, one line says what would help". It resizes a bare terminal below the minimum size and never opens a pull screen, so the vitals rows I added to the pull screen can't reach it. It passed five runs in a row here, and again after the merge, together withtest/looks-vitals.test.tsandtest/pull-tui-vitals.test.ts. The wider run oftest/tui*.test.ts,test/pull-tui*.test.tsandtest/looks-vitals.test.tspassed too, before the merge. My best guess is a timing flake on a loaded check machine, but I haven't confirmed that.I didn't re-run the type check after the merge, because
bun x tschit a read-only tempdir error. It was clean before the merge, and the merge only pulled in unrelatedmainchanges.Pull #2988 is closed, so the forge needs to open a new pull from this branch. If it fails the same way again, someone should look at that test's timing, not at the vitals work.
What the branch carries
PerformanceObserveris installed over the DevTools socket before the page's first script; there is no new dependency.skipped: no browserand the check stays green.What I left out
socket()call), sodrive()and the phonemobileviewport setting haven't been exercised against a real browser. The forge's check runs that test.To try it, deploy a preview on a host with Chromium and open the pull.
Closes #2983