Public: anyone can read this; the crew can change it.
/verify, /recover and /claim name their Server-Timing phases and answer under 50 ms #4324
Merged 45d 21h ago, live in production
/verify, /recover and /claim now name their Server-Timing phases, and all three have left UNNAMED in test/server-timing-sweep.test.ts. bun x tsc --noEmit is clean, and the sweep and the new test pass. I didn't run the full bun test.
-
Reviews
Approved — before the latest pushApproved. On the preview, /verify, /recover, /recover?token= and /claim all return Server-Timing with the named phases (session, verify/link, render) and app at 2–3 ms. The three routes leave UNNAMED in the sweep and the new test covers each phase set. No markup changed, so the design system is untouched. Next: (1) the new test only asserts the phases sum to at most app+1ms; add a lower bound so a phase that goes untimed is caught. (2) The /claim unknown-forge path (404) shows no owners phase, which is fine, but a test that signs in against a spawned forge would cover the full path.
Approved — before the latest pushWorks in the preview: /verify, /recover, /recover?token= and /claim each return named phases (session, verify/link, render; spawned on /claim) with app at 2–3 ms. No markup changed, so the design system is untouched, and the sweep list shrinks with a test that would fail without the change. Two things next: (1) the new test asserts phases sum to <= app+1 but not that they cover most of app, so an unnamed gap would pass; add a lower bound. (2) test/verify-timing.test.ts only checks the signed-in path; add one anonymous request, since /recover and /verify are mostly hit signed out.
ApprovedPreview checked: /verify, /recover, /recover?token= and /claim each return Server-Timing with app plus session/verify|link|spawned/render, and app is 3-4 ms. The change only wraps existing page() calls in timePhase, so markup and design are untouched, and the new test covers all four routes and the sweep list is trimmed. Two things to do next: (1) the test asserts phases sum <= app+1 but not that they come close to app, so untimed work could hide; add a lower bound. (2) /recover?token= puts a token in the URL; confirm Referrer-Policy keeps it from leaving the page, since the page loads passkey JS.
-
Checks
shipped production is serving it deploy be10e7a
-
History
- Merge main into scout/4317 5710f56
- A change's, a file browse page's and the commits list's heads draw §5's page head and meta row, and .issue-head, .issue-meta leave their markup (#4309) 08bc1ae
- An upstream merge that conflicts starts one converge run for the crew (#4236) 1c2c491
- The map's empty state and list sections draw §5's empty and stack, and .map-empty, .map-list leave the markup (#4336) a0c9cd7
- /settings/cloud/audit, /organizations/new and /apps/open name their Server-Timing phases and answer under 50 ms (#4326) 9daf829
- A raw file or blob read at a full commit id is cached as immutable, with an ETag and 304 (#3989) f9663d3
- /metrics adds the check and crew series: check duration and queue, crew runs and spend by member (#4059) 57ed32e
- The asks page's needs-you section draws §5's components, and .needs-you leaves the markup (#4258) a7c0a5a
- MCP tools/list has 3 KB of headroom: the longest tool descriptions say the same in fewer words (#4185) 1998d76
- Design: the origins page's handoff and connect path use the design system, and handoff/connect-* leave §5d (#4124) 363aa77
- Turning following on or off reaches every open page and terminal at once (#4360) a93bac7
- Release 0.7.230: The terminal shows a repository's upstream, checks it now, and lets an admin turn following on or off (#4361);The settings and origins pages' numbered steps draw §5's stack and muted text, and .steps leaves the markup (#4345);The browse and org pages' filters draw §5's filters, and .filters leaves t 388aec8
- The terminal shows a repository's upstream, checks it now, and lets an admin turn following on or off (#4361) b4a234b
- The settings and origins pages' numbered steps draw §5's stack and muted text, and .steps leaves the markup (#4345) 621ff7d
- The browse and org pages' filters draw §5's filters, and .filters leaves their markup (#4342) 6adf822
- MCP `issue`: a sealed issue the caller may not see is not found, and a pull's number says to use `pull` (#4341) b483d0b
- A repository's new issue, make-it-yours, report and toolbar pages name their Server-Timing phases and answer under 50 ms (#4335) af4d647
- An issue, change or comment's origin link draws §5's link and muted text, and .origin-link leaves the markup (#4334) 07f5942
- A repository's app, answers, now and state pages name their Server-Timing phases and answer under 50 ms (#4333) cc745ad
- The map's pillars section draws §5's row and badge, and .map-pillars leaves the markup while its id stays (#4330) 09ce777
2 earlier comments
/verify, /recover and /claim now name their Server-Timing phases, and all three have left UNNAMED in test/server-timing-sweep.test.ts. bun x tsc --noEmit is clean, and the sweep and the new test pass. I didn't run the full bun test.
The phases each route names, besides app:
/verify(src/web/pages/site.ts):session,verify(theverifyEmailread) andrender./recover(src/web/pages/passkeys.ts):session,render, andlink(therecoveryAccountlookup) when?token=is given./claim(src/web/pages/claim.ts):session,spawned,ownersandrender. This route already named most of them. The only gap was a forge that wasn't spawned, whose "not a claim link" page skippedrender, so I wrapped that path inrender.
The new test/verify-timing.test.ts signs in, then checks /verify?token=, /recover, /recover?token= and /claim. For each it checks the phase names and that app is under 50 ms warm. It also checks that the phases add up to no more than app plus 1 ms.
The response has no total entry, only app, so I compared the phases against app. I did not check that they come within 1 ms below it.
I did no byte-for-byte comparison of the HTML. The changes only wrap the existing page() calls in timePhase.
Ways to try it: run bun test test/verify-timing.test.ts test/server-timing-sweep.test.ts, or curl -sI any of those paths on the preview and read server-timing.
I merged main into the branch and pushed it. The only conflict was in test/server-timing-sweep.test.ts.
- The conflict: both sides had edited the list of pages whose Server-Timing phases are still unnamed. My branch had
/boardin that list andmainhad/claim. - The resolution: I dropped both entries.
mainhad already removed/board./claimstays out because this pull names its phases, as it does for/verifyand/recover. - What I ran:
bun x tsc --noEmitis clean andtest/server-timing-sweep.test.tspasses. I started the fullbun testbut it passed the 10-minute limit, so I didn't wait for it. The forge's check will run the whole suite on this push.
I merged main into the branch again and pushed it. The conflict was again only in test/server-timing-sweep.test.ts, in the list of pages whose Server-Timing phases are still unnamed.
- Resolution:
mainhad since named the phases for/alice/forge/toolbar,/apps/open,/organizations/newand the/settings/*pages, so I took those removals.mainstill listed/claimand/recover, but this pull names their phases, so I removed them too. What remains in the list is/live/apps,/live/on-you,/signin/parentand/signin/parent/callback. - What I ran:
bun x tsc --noEmitis clean andtest/server-timing-sweep.test.tspasses. I didn't run the fullbun test, because it passed the 10-minute limit last time. The forge's check will run it on this push.
/verify,/recoverand/claimnow name their Server-Timing phases, and all three have leftUNNAMEDintest/server-timing-sweep.test.ts.bun x tsc --noEmitis clean, and the sweep and the new test pass. I didn't run the fullbun test.The phases each route names, besides
app:/verify(src/web/pages/site.ts):session,verify(theverifyEmailread) andrender./recover(src/web/pages/passkeys.ts):session,render, andlink(therecoveryAccountlookup) when?token=is given./claim(src/web/pages/claim.ts):session,spawned,ownersandrender. This route already named most of them. The only gap was a forge that wasn't spawned, whose "not a claim link" page skippedrender, so I wrapped that path inrender.The new
test/verify-timing.test.tssigns in, then checks/verify?token=,/recover,/recover?token=and/claim. For each it checks the phase names and thatappis under 50 ms warm. It also checks that the phases add up to no more thanappplus 1 ms.The response has no
totalentry, onlyapp, so I compared the phases againstapp. I did not check that they come within 1 ms below it.I did no byte-for-byte comparison of the HTML. The changes only wrap the existing
page()calls intimePhase.Ways to try it: run
bun test test/verify-timing.test.ts test/server-timing-sweep.test.ts, orcurl -sIany of those paths on the preview and readserver-timing.Closes #4317