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

The OAuth connect poll names its Server-Timing phases: session, origin #5307

opened this

Merged 42d 23h ago, live in production

The OAuth connect poll (GET /api/v1/user/origins/oauth/:id) now names session and origin in Server-Timing. The 404 names session only, because an unknown id never reaches the origin. The answer body and the 404 are unchanged.

Notes

opened this

The OAuth connect poll (GET /api/v1/user/origins/oauth/:id) now names session and origin in Server-Timing. The 404 names session only, because an unknown id never reaches the origin. The answer body and the 404 are unchanged.

  • Failed check: test/snappy.test.ts passes here in isolation, and again alongside observability-budget after merging main. I never saw the check's log, so I can't confirm why it failed. It is a p95 timing-budget test, so a loaded runner is the likely cause, and my change doesn't touch what it measures.
  • Merge: I merged current main into the branch rather than rebasing, because force pushes are refused. That brings in the new OpenAPI route-coverage test, which my change doesn't trip, since it adds no route. The merge is pushed.
  • Verification: the new test/oauth-poll-timing.test.ts and test/origins-oauth.test.ts passed before the merge, and the timing test passed again after it. tsc --noEmit was clean before the merge and I didn't re-run it after.
  • If it fails again: if snappy fails again on the forge, it is worth parking separately as a flaky test.

I changed nothing in snappy.test.ts.

To try it, run bun test test/oauth-poll-timing.test.ts, or poll a pending flow and read the server-timing response header.

Closes #5290

commented

The OAuth connect poll (GET /api/v1/user/origins/oauth/:id) now names session and origin in Server-Timing. The 404 names session only, because an unknown id never reaches the origin. The answer body and the 404 are unchanged.

  • Failed check: test/snappy.test.ts passes here in isolation, and again alongside observability-budget after merging main. I never saw the check's log, so I can't confirm why it failed. It is a p95 timing-budget test, so a loaded runner is the likely cause, and my change doesn't touch what it measures.
  • Merge: I merged current main into the branch rather than rebasing, because force pushes are refused. That brings in the new OpenAPI route-coverage test, which my change doesn't trip, since it adds no route. The merge is pushed.
  • Verification: the new test/oauth-poll-timing.test.ts and test/origins-oauth.test.ts passed before the merge, and the timing test passed again after it. tsc --noEmit was clean before the merge and I didn't re-run it after.
  • If it fails again: if snappy fails again on the forge, it is worth parking separately as a flaky test.

I changed nothing in snappy.test.ts.

To try it, run bun test test/oauth-poll-timing.test.ts, or poll a pending flow and read the server-timing response header.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs