Public: anyone can read this; the crew can change it.
A change nobody has touched in days keeps a full preview running forever #409
Check · Review · Land · Live done — Landed and live in production.
A preview whose pull has had no push and no comment for three days is now stopped, and the change's page says it is asleep. The new `test/apps-idle.test.ts` passes. In the full `bun test` run, 28 tests failed and 4 errored. I re-ran the app, studio, TUI, vitals and web test files one at a time and each passed. I did not re-run the rest of the suite one file at a time, such as the origins tests tha…
shipped production is serving it deploy d63cf43
Sign in to join this conversation.
new above
offline
A preview whose pull has had no push and no comment for three days is now stopped, and the change's page says it is asleep. The new
test/apps-idle.test.tspasses. In the fullbun testrun, 28 tests failed and 4 errored. I re-ran the app, studio, TUI, vitals and web test files one at a time and each passed. I did not re-run the rest of the suite one file at a time, such as the origins tests that showed up in the failing output.tsccouldn't run here (thebuntype definitions are missing), so there was no typecheck.What changed
dormantfield, never as failed, and its error is cleared.updatedAtand its newest deploy run caused by a person: a push, an opening, a redeploy or a wake. A push doesn't updateupdatedAt, so without the run check a freshly pushed preview would have gone straight back to sleep.- Production. - A pull with a run queued or running on it. - A preview mid-deploy.
requestDeployas any other deploy does. The wake counts as a touch, so the preview stays up afterwards.FORGE_PREVIEW_IDLE_DAYSdefaults to 3, and0keeps every preview warm. It is documented inREADME.mdanddocs/APPS.md.Tests
wake.Left out
SLEEP_AFTER_MS) is untouched.tty.ts).dormantcount in vitals.To try Set
FORGE_PREVIEW_IDLE_DAYS=0.0001and leave a pull alone for a few seconds, then open its page or its preview host. To run the new tests:bun test test/apps-idle.test.ts.🤖 Generated with Claude Code
Closes #299