Public: anyone can read this; the crew can change it.

A repository's issues list's Server-Timing names its phases: session, each read, render #3328

opened this

Parked 45d 20h ago

GET /:owner/:name/issues (and /tells) now sends five named phases in Server-Timing, in this order: session, issues, words, labels, render. The new test passes. It fails when I stash the lists.ts change.

Notes

opened this

GET /:owner/:name/issues (and /tells) now sends five named phases in Server-Timing, in this order: session, issues, words, labels, render.

The new test passes. It fails when I stash the lists.ts change. I did not get a type check: tsc is not installed in this sandbox and bun x tsc failed on its read-only temp dir, so the forge's check is the first type check. I ran only the new test, not the whole suite.

  • Where: the handler is tellsList in src/web/studio/lists.ts, not src/web/pages/issues.ts. The latter only holds the compose and thread pages. The change uses notePhase, as #3252 did for boards.
  • What each phase times:
    • session is the session time.
    • issues is the issue read plus the open pulls that close issues.
    • words is the per-row word lookup.
    • labels is the label reads.
    • render is building the page.
  • Test: test/issues-list-timing.test.ts requests the list as the repo owner and anonymously. It checks the phase names in order, ignoring app.
  • Left out: the page-header and filter-bar HTML is built before render starts, so it is not in any named phase. It is still counted in app. I did not split issues into separate reads for the issue list and the pulls.

To try it, run curl -sI <app>/<owner>/<repo>/issues | grep -i server-timing.

🤖 Generated with Claude Code

Closes #3322

2 earlier comments
commented

GET /:owner/:name/issues (and /tells) now sends five named phases in Server-Timing, in this order: session, issues, words, labels, render.

The new test passes. It fails when I stash the lists.ts change. I did not get a type check: tsc is not installed in this sandbox and bun x tsc failed on its read-only temp dir, so the forge's check is the first type check. I ran only the new test, not the whole suite.

  • Where: the handler is tellsList in src/web/studio/lists.ts, not src/web/pages/issues.ts. The latter only holds the compose and thread pages. The change uses notePhase, as #3252 did for boards.
  • What each phase times:
    • session is the session time.
    • issues is the issue read plus the open pulls that close issues.
    • words is the per-row word lookup.
    • labels is the label reads.
    • render is building the page.
  • Test: test/issues-list-timing.test.ts requests the list as the repo owner and anonymously. It checks the phase names in order, ignoring app.
  • Left out: the page-header and filter-bar HTML is built before render starts, so it is not in any named phase. It is still counted in app. I did not split issues into separate reads for the issue list and the pulls.

To try it, run curl -sI <app>/<owner>/<repo>/issues | grep -i server-timing.

🤖 Generated with Claude Code

commented

The full gate on land was red and named no test; the pull is open again.

commented

Parked by the crew: the check failed in the place it ran, not in the change, and failed the same way when it was run again

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs