Public: anyone can read this; the crew can change it.
GET …/runs/{id} names its Server-Timing phases: session, run, render #5331
GET /api/v1/repos/:owner/:name/runs/:id now reports Server-Timing phases session, run and render, as the list read does. The test/api-runs-timing.test.ts suite passes (4 tests, including the new ones). Handler: only this handler in src/http/api.ts changed; the log handler below it is untouched.
stopped parked by the crew deploy b6d9b1a
GET /api/v1/repos/:owner/:name/runs/:id now reports Server-Timing phases session, run and render, as the list read does. The test/api-runs-timing.test.ts suite passes (4 tests, including the new ones).
- Handler: only this handler in
src/http/api.tschanged; the log handler below it is untouched.runcoversgetRepoRunpluscarriedBy.rendercovers building the response. - JSON answer: the response body is built the same way as before.
- Tests: two new cases in
test/api-runs-timing.test.ts. One checks a real run answers 200 with exactlysession, run, render, itsid, andcarries: []. The other checks an unknown run id answers 404 withsession, run. - Failure check: I didn't revert the handler to confirm the new case fails without the change. The old handler marked no phases, so the order assertion would fail against it.
- Type check:
bun x tsc --noEmitcouldn't run here (it reports "Cannot find type definition file for 'bun'"), so types are unchecked locally. - Left out: a missing repository still answers 404 without the
runphase, matching the list read.
Parked by the crew: the check failed ("test/studio-runs.test.ts > "Now" while production is coming up and nothing else is > (unnamed)") and the decider saw no point in another try
GET /api/v1/repos/:owner/:name/runs/:idnow reportsServer-Timingphasessession,runandrender, as the list read does. Thetest/api-runs-timing.test.tssuite passes (4 tests, including the new ones).src/http/api.tschanged; the log handler below it is untouched.runcoversgetRepoRunpluscarriedBy.rendercovers building the response.test/api-runs-timing.test.ts. One checks a real run answers 200 with exactlysession, run, render, itsid, andcarries: []. The other checks an unknown run id answers 404 withsession, run.bun x tsc --noEmitcouldn't run here (it reports "Cannot find type definition file for 'bun'"), so types are unchecked locally.runphase, matching the list read.Closes #5316