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

A check's run page shows its steps and live progress, and the runs list shows checks by default #2367

Parked opened this
Closed without merging

A check's run page now shows its steps, a progress bar and pinned failures, and the runs list shows checks, deploys and the crew's runs together by default. Typecheck is clean. The check, studio, web and runs test files pass apart from one chromium phone-width test, which can't start chromium in this sandbox.

Notes

stopped parked by the crew deploy 062cc37

opened this

A check's run page now shows its steps, a progress bar and pinned failures, and the runs list shows checks, deploys and the crew's runs together by default. Typecheck is clean. The check, studio, web and runs test files pass apart from one chromium phone-width test, which can't start chromium in this sandbox. I didn't run it or the full gate.

  • Steps: all three rows (install, typecheck, tests) are drawn from the first paint, each with a state and a duration, so nothing shifts as they land. The service now writes a step <name> <ok|failed|none> <ms> line as each step ends (src/checks/service.ts); src/checks/steps.ts reads those lines. Older logs and job-placed checks have no such lines, so their rows get a state worked out from how the run ended and no duration.
  • Typecheck row: the check command is one chain (gate, tsc, shard runner), so "typecheck" means everything before the shard runner's test-shards: N files banner. A gate failure therefore shows as a typecheck failure.
  • Progress bar: a <progress> element under the steps reads files started out of the gate's count, passes and failures so far, and the file running now. It uses the same parseShardProgress as the pull's checks line, which now also reports the running shard's files (current). I updated the expectation in test/check-progress.test.ts for that new field.
  • Pinned failures: each failed test appears once, with the first four lines bun test printed before its (fail) line, above the log (at most 10, then "and N more"). The full log tail stays below.
  • Live updates: while lines stream, studioRunJs re-fetches the page at most once a second and swaps in the #run-steps block. Without JavaScript, the existing 5-second refresh covers it.
  • Runs list: /:owner/:name/runs now shows all kinds by default. A "Show: all runs · the crew's runs · deploys · checks" line under the list sets the filter, and ?kind= still works. A check's row shows its title ("Check of <sha> for #<pull>"), the state badge and "took 3m 4s" (or "running for …"). I reworded the all-kinds empty note to keep the "A run is one go" phrase that a studio-search test asserts.
  • New tests: test/check-steps.test.ts covers the step rows and the pinned failure. A new block in test/studio-runs.test.ts covers the page, the three rows on a queued check, no steps on an agent run, and the default and filtered list.

Left out:

  • The per-check feed entries, as the issue says.
  • Step durations for runs written before this change.
  • A per-test progress count. The bar counts files, which is all the shard runner reports.

To try it, open any check run, for example /<owner>/<name>/runs/<id>, while it is running, or open /<owner>/<name>/runs for the list.

Closes #1124

commented

A check's run page now shows its steps, a progress bar and pinned failures, and the runs list shows checks, deploys and the crew's runs together by default. Typecheck is clean. The check, studio, web and runs test files pass apart from one chromium phone-width test, which can't start chromium in this sandbox. I didn't run it or the full gate.

  • Steps: all three rows (install, typecheck, tests) are drawn from the first paint, each with a state and a duration, so nothing shifts as they land. The service now writes a step <name> <ok|failed|none> <ms> line as each step ends (src/checks/service.ts); src/checks/steps.ts reads those lines. Older logs and job-placed checks have no such lines, so their rows get a state worked out from how the run ended and no duration.
  • Typecheck row: the check command is one chain (gate, tsc, shard runner), so "typecheck" means everything before the shard runner's test-shards: N files banner. A gate failure therefore shows as a typecheck failure.
  • Progress bar: a <progress> element under the steps reads files started out of the gate's count, passes and failures so far, and the file running now. It uses the same parseShardProgress as the pull's checks line, which now also reports the running shard's files (current). I updated the expectation in test/check-progress.test.ts for that new field.
  • Pinned failures: each failed test appears once, with the first four lines bun test printed before its (fail) line, above the log (at most 10, then "and N more"). The full log tail stays below.
  • Live updates: while lines stream, studioRunJs re-fetches the page at most once a second and swaps in the #run-steps block. Without JavaScript, the existing 5-second refresh covers it.
  • Runs list: /:owner/:name/runs now shows all kinds by default. A "Show: all runs · the crew's runs · deploys · checks" line under the list sets the filter, and ?kind= still works. A check's row shows its title ("Check of <sha> for #<pull>"), the state badge and "took 3m 4s" (or "running for …"). I reworded the all-kinds empty note to keep the "A run is one go" phrase that a studio-search test asserts.
  • New tests: test/check-steps.test.ts covers the step rows and the pinned failure. A new block in test/studio-runs.test.ts covers the page, the three rows on a queued check, no steps on an agent run, and the default and filtered list.

Left out:

  • The per-check feed entries, as the issue says.
  • Step durations for runs written before this change.
  • A per-test progress count. The bar counts files, which is all the shard runner reports.

To try it, open any check run, for example /<owner>/<name>/runs/<id>, while it is running, or open /<owner>/<name>/runs for the list.

commented

Parked by the crew: the check failed ("origins on the web > connecting with a token stores it and never echoes it") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs