Public: anyone can read this; the crew can change it.
Sentinel: cloud-watch:hetzner/prod was degraded 39 minutes today: The forge could not read hetzner/prod to check it for stray machines (no answer in time); it is not known to be clean. … #17859
Merged 28h 31m ago, live in production
A single slow answer from a provider no longer leaves a cloud account marked "not known to be clean" for the rest of the hour. Today one Hetzner list page got no answer within 30 s. The watch only looks once an hour, so cloud-watch:hetzner/prod stayed degraded until the next look, 39 minutes later.
-
Reviews
ApprovedDoes what the issue asked: a slow or busy provider page is tried again in the same look (15 s a try, pauses of 5 s and 15 s), refusals are not retried, and a look that still could not read brings the next one in ten minutes. The retry reads stay inside the gated fetch, the pause is injectable so the tests wait for nothing, and the new tests would fail without the change. No page or terminal change, so no door owed. Next two things I would do: (1) have the page's degraded line say a re-look is coming in about ten minutes, so a person is not left guessing; (2) once the retries have run for a week, check how often the third try is the one that succeeds, and if it is never, drop the 15 s pause and take back the 60 runs a day allowance.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Cloud watch pauses with Bun.sleep, not a bare timer (#17854) 7e40d71
- Rewrap long comments (gate --fix) (#17854) c8bb5de
- Cloud watch: a slow provider read is tried again, and a failed look returns in ten minutes (#17854) 1daf09d
- A Talk reply names its model, and a turn that reaches its limit says so and offers to go on (#17842) 01d8b2c
- Full suite red: test/page-titles.test.ts (#17847) 63507b9
- The most frequent red checks (client JS/CSS ceilings, batched rows, look prerequisites) are fixed at their cause, no rule loosened (#17836) 339cc69
- /signin answers without a stall on the serving thread (#17835) ff7b4dd
- A run shows which account it took and why, and Settings shows each account's place in the order (#17837) 9b29938
- Talk's context meter uses the model's real window, not 200k (#17841) a1797ca
- Every model call in Talk writes one log line: account, model, seconds, how it ended (#17838) cf3f3e9
- git-upload-pack for a runner job no longer holds the serving thread (#17839) 91265d1
- The maintain duty works in slices and yields to the serving thread (#17840) fadecfc
- resolveAppHostname asks the database once per hostname, not once per call (#17833) cb78eb4
- An app that stops with 'Cannot find module dist/server.js' says why on its page (#17834) 6c2baf3
- Merge pull request #17792 from sold/shell-refusals-2 856fb52
- Merge pull request #17798 from sold/jar-there-later 776f58f
- Talk's Stop stays for the whole answer, with words in the box too (#17819) b51ab2e
- The changelog credits a model only when a run backs it (#17807) e780a4e
- The decider can be compared with SubQ Snap in the background, off by default, and decides nothing (#17795) c0cee92
- small: the '+ New forge' page has one primary next action, with phone and desktop looks on the pull (#17818) 6cc8e61
A single slow answer from a provider no longer leaves a cloud account marked "not known to be clean" for the rest of the hour. Today one Hetzner list page got no answer within 30 s. The watch only looks once an hour, so cloud-watch:hetzner/prod stayed degraded until the next look, 39 minutes later.
src/cloud/watch.ts: if a page read times out, can't connect, or gets 429/502/503/504, the same look tries that page again up to twice. Each try gets 15 s, and it waits 5 s, then 15 s, between tries. A refusal (401, 403, 404, 500) is not retried, since it would get the same answer. The pause is an optional last argument toreadLive/pages(defaultBun.sleep, which is how the repo already pauses), so tests run with no waiting.src/maintain/duties/cloud_watch.ts: if a look still could not read an account the duty watches,dueNowbrings the next look 10 minutes later instead of an hour. It skips accounts the duty no longer watches, because their old failed reading would make it due on every tick. The duty's own timeout is now 10 minutes, so a slow look that does finish isn't recorded as timed out (the runner's default is 30 s). The daily run allowance goes from 30 to 60 to leave room for the earlier re-looks.- Tests:
test/cloud-watch-read.test.ts: a timeout, a 503 and a dropped connection are each retried with the right pauses; three misses in a row fail the read; a 401 is tried only once.test/cloud-watch.test.ts: a failed look is not due again at 9 minutes and is due at 10; an account that is no longer watched is never due; a clean look clears it.
Left alone: the 30 s overall fetch limit and the "not known to be clean" wording. A read that still fails after three tries is reported exactly as before. There is no page or terminal change: both still show the same stored reading, which the commit records as "No door".
Checks run: bun x tsc --noEmit and bun scripts/gate.ts are clean. 22 related test files pass, including the cloud watch suites, the duty roster and budgets, timers-named (which caught a bare setTimeout, now Bun.sleep), unused-exports, hollow and fetch-timeout. bun scripts/fast.ts named 328 files (about 20 minutes), so I didn't run all of them; the forge runs the full check on this push.
To try it: bun test test/cloud-watch-read.test.ts test/cloud-watch.test.ts. In production, cloud-watch:hetzner/prod should stay off the degraded list, or clear within about 10 minutes when Hetzner answers late.
🤖 Generated with Claude Code
A single slow answer from a provider no longer leaves a cloud account marked "not known to be clean" for the rest of the hour. Today one Hetzner list page got no answer within 30 s. The watch only looks once an hour, so
cloud-watch:hetzner/prodstayed degraded until the next look, 39 minutes later.src/cloud/watch.ts: if a page read times out, can't connect, or gets 429/502/503/504, the same look tries that page again up to twice. Each try gets 15 s, and it waits 5 s, then 15 s, between tries. A refusal (401, 403, 404, 500) is not retried, since it would get the same answer. The pause is an optional last argument toreadLive/pages(defaultBun.sleep, which is how the repo already pauses), so tests run with no waiting.src/maintain/duties/cloud_watch.ts: if a look still could not read an account the duty watches,dueNowbrings the next look 10 minutes later instead of an hour. It skips accounts the duty no longer watches, because their old failed reading would make it due on every tick. The duty's own timeout is now 10 minutes, so a slow look that does finish isn't recorded as timed out (the runner's default is 30 s). The daily run allowance goes from 30 to 60 to leave room for the earlier re-looks.test/cloud-watch-read.test.ts: a timeout, a 503 and a dropped connection are each retried with the right pauses; three misses in a row fail the read; a 401 is tried only once.test/cloud-watch.test.ts: a failed look is not due again at 9 minutes and is due at 10; an account that is no longer watched is never due; a clean look clears it.Left alone: the 30 s overall fetch limit and the "not known to be clean" wording. A read that still fails after three tries is reported exactly as before. There is no page or terminal change: both still show the same stored reading, which the commit records as "No door".
Checks run:
bun x tsc --noEmitandbun scripts/gate.tsare clean. 22 related test files pass, including the cloud watch suites, the duty roster and budgets,timers-named(which caught a baresetTimeout, nowBun.sleep),unused-exports,hollowandfetch-timeout.bun scripts/fast.tsnamed 328 files (about 20 minutes), so I didn't run all of them; the forge runs the full check on this push.To try it:
bun test test/cloud-watch-read.test.ts test/cloud-watch.test.ts. In production,cloud-watch:hetzner/prodshould stay off the degraded list, or clear within about 10 minutes when Hetzner answers late.🤖 Generated with Claude Code
Closes #17854