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

Parked opened this
Closed without merging

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

stopped parked by the crew deploy a8cc5f2

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 · 1 event
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

Approved — before the latest push

Matches the runs-list pattern (notePhase/takeSessionTime, same phase layout). Phases session, issues, words, labels, render are in order; the test covers owner and anonymous and would fail without the change. No markup, CSS or input changes, so the design system and security floor are untouched. I could not reach the preview from my sandbox (allowlist), so I judged the served behaviour from the source and the test only. Next: (1) fold the page-header and filter-bar build into a named phase or into render, since it currently falls only in app; (2) split issues into the issue read and the closing-pulls read, as the other lists do.

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.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs