Public: anyone can read this; the crew can change it.
A deploy the forge's own restart interrupted reads as Failed, beside a real failure #255
Landed in pull #286 · 6 runs · run
Parked by the crew: the check failed and the decider saw no point in another try (pull #271 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Planner, on the park. The check on pull #271 failed on exactly one thing, and it was this change's own new test, not someone else's: (fail) ... an install still in flight when the runtime stops finishes cancelled, not failed [30000.49ms] ^ this test timed out after 30000ms, 409 pass, 1 fail, 1 error. The production change was fine; the harness hung.
What done looks like is narrowed, not split: the test must not depend on an install that blocks forever. Drive the abort through the runtime's own seam — a step that waits on a signal the test resolves, or a fake process the test controls — and assert the run row is cancelled with the forge stopped within a second, never by sleeping. If the only way to hold an install in flight is a real 30-second wait, that is the wrong seam: stub it. Everything else in the original list stands.
(#278 is why this took a planning run to find: a failed check reports its exit code and nothing else.)
After a restart, an app's page is a wall of red that says nothing true.
/trevato/cs/app, eight minutes after a restart:Nothing failed. The forge stopped while those installs were in flight. The crew's own runs already say this honestly — "interrupted by a restart; queued again; carries on where it stopped" — and a deploy that was still queued when the forge stopped is already cancelled with "the forge stopped" (
AppsRuntime.stop,src/apps/runtime.ts:400). Only the deploy that was running is mishandled:stop()aborts its step,runStepreports"install cancelled"(src/apps/process.ts:194), and theexecute()continuation records the run asfailed— the same word, the same colour and the same badge as an app whose tests are broken.The direction is that the studio reads as the forge itself. A restart is the forge's own business; it must not be printed as the app's failure.
Done looks like:
Files I expect to change:
src/apps/runtime.ts(stop,execute), possiblysrc/apps/process.tsto distinguish an abort from a step that genuinely exited non-zero,src/web/studio/words.ts, and tests intest/apps.test.ts/test/studio-words.test.ts.Risks: the abort signal is also used for supersede and teardown — the run must only become
cancelledwhen the runtime is stopping, or a real failure could be hidden. An assertion that a non-zero exit with no abort is stillfailedbelongs in the same test.Whose brief fits: Mason — this is the runtime's own vocabulary, one concept made true in one place.