A push should be visible in the preview in about three seconds, not after the app's whole test suite has run — start the process first and let the test step finish alongside it, still deciding the run's state.
Measured here today: 48 deploy runs, median 12.5s, p90 19.1s, max 23.8s — and the logs say where it goes. startProcess (src/apps/process.ts) runs install, then test, then start, then polls health; the log of every deploy begins $ bun test and the app's whole suite (72 tests on trevato/cs, RL training included) runs before anything listens. The check is worth keeping. Making the person wait for it before they can look at their app is not: a deployment that answers is what they asked for, and the suite can go green a few seconds later.
Acceptance
Files I expect to change
src/apps/process.ts, src/apps/runtime.ts (the swap and what EnvStatus reports), src/web/pages/apps.ts (saying "serving, tests failed"), test/apps.test.ts, test/apps-adversarial.test.ts, docs/APPS.md.
Risks
A preview serving code that fails its tests is a real change in meaning. It is the right one for a preview you are being asked to look at, but it must be visible on the page and in the run summary, never silent.
Production. The same reordering applies to production, which a person merged deliberately; the failed check must still be loud on the pull and the app page.
Port and process leaks if the test step and the start step both die badly — the abort path covers both or neither.
CPU contention: tests and the app competing during the health poll could push ready past its deadline on a small host. Keep the ready budget measured from start, not from install.
Who
Hearth — processes, supervisors, logs, and an interface that is honest about what is really running.
A push should be visible in the preview in about three seconds, not after the app's whole test suite has run — start the process first and let the test step finish alongside it, still deciding the run's state.
Measured here today: 48 deploy runs, median 12.5s, p90 19.1s, max 23.8s — and the logs say where it goes.
startProcess(src/apps/process.ts) runsinstall, thentest, thenstart, then polls health; the log of every deploy begins$ bun testand the app's whole suite (72 tests ontrevato/cs, RL training included) runs before anything listens. The check is worth keeping. Making the person wait for it before they can look at their app is not: a deployment that answers is what they asked for, and the suite can go green a few seconds later.Acceptance
Files I expect to change
src/apps/process.ts,src/apps/runtime.ts(the swap and whatEnvStatusreports),src/web/pages/apps.ts(saying "serving, tests failed"),test/apps.test.ts,test/apps-adversarial.test.ts,docs/APPS.md.Risks
readypast its deadline on a small host. Keep thereadybudget measured from start, not from install.Who
Hearth — processes, supervisors, logs, and an interface that is honest about what is really running.