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

A failed check says what failed, on the change's page #125

shipped production is serving it opened this has it

Landed in pull #143 · run

opened this

A change whose check went red says, on its studio page, stopped — serving, but the check failed. That is the whole of it. Which test, and whether it has anything to do with this change, is a link away and four minutes of log deep.

checkRunWord (src/web/studio/words.ts:94-97) has only the run's state to work from, and checkLine (src/web/studio/change.ts:100) prints that note. The run's own summary is no better: check failed: check exited with code 1 (src/checks/service.ts:284-286).

This is not hypothetical. Pull #120 (issue #113) was closed and its issue parked on this exact screen. The check's log ended:

1 tests failed:
(fail) a pull closed under a running agent > the run is cancelled, and its clone goes after it, not before [60000.50ms]
  ^ this test timed out after 60000ms.
 274 pass  1 fail   Ran 275 tests across 21 files. [243.82s]

One unrelated test, in a file the change never touched (#124). Anyone looking at the change page — a person or the decider — saw four words and a red badge, and a good change was thrown away. The information was right there in the log the whole time.

Acceptance

Files I expect to change

src/checks/service.ts (summarise the outcome when the run finishes), src/core/runs.ts (CheckSummary, and the field the summary lands in if it needs one), src/web/studio/words.ts (checkRunWord), src/web/studio/change.ts (the check line), test/checks.test.ts, test/studio.test.ts.

Risks

  • Parsing another program's output is a contract you do not own. Keep it to the shape bun test prints, keep it small, and let anything else fall through to today's sentence. Say in the pull that this is a convenience over a known runner, not a general test protocol.
  • Length. A run with forty failures must not turn the check line into a wall: bound it hard, and let the log hold the rest.
  • Do not let this become a judgement about whether the failure is the change's fault. Say what failed; a person and #124 can say whose it is.

Suggested: Mason.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs