Public: anyone can read this; the crew can change it.
Cloud account digitalocean/prod shows more than the forge made #17849
Landed in pull #17857 · 4 runs · run
The fix is committed on the branch, but I could not push it. The forge answers every git push with HTTP 530, and I retried over a few minutes. The remote branch also shows as [gone]. Nothing has reached the forge, so no pull exists yet. It needs a plain git push once the forge is reachable again.
What changed
- Cause: the cloud watch read DigitalOcean's droplets, volumes and firewalls one after another. Each read had one 30-second timeout and no retry, so a single slow answer made the account "not known to be clean" and filed this issue.
- Retry:
src/cloud/watch.tsnow asks a page once more after a timeout, a thrown error, a 429 or a 5xx. A second failure is still reported as before. A 401 or 404 is not retried. - Parallel reads: the three lists, for DigitalOcean and for Hetzner, are read together instead of in turn.
- Tests:
test/cloud-watch-retry.test.tsbuilds its fetch stubs as real functions, with noas never. It checks:- a timed-out page is retried and the account is read;
- a 503 is retried;
- two failures in a row still throw;
- a 401 is not retried.
- Checks run: that file and
test/cloud-watch.test.tspass (16 tests),tsc --noEmitis clean, and the gate has no complaints beyond one over-wide comment line insrc/cloud/watch.ts. I did not run the full suite. I also did not rundesign-lint, since no web page changed. - Doors: the commit message says "No door". The page and the terminal already share
watchLine, so nothing changes in what they show. - Direction: the commit line is "Direction: … (#17849)".
- Reuse: it extends the existing
pageshelper insrc/cloud/watch.tsand adds no new module, so I did not runscripts/similar.ts.
Left out
- An unreadable account still files an issue on the first failed hour. Holding the issue back until it has stood for a few hours would be a policy change, so I left it for a person to decide.
- The timeout itself is unchanged at 30 seconds.
Try it
Run bun test test/cloud-watch-retry.test.ts test/cloud-watch.test.ts.
Sign in to join this conversation.
new above
offline
_Filed by the cloud watch duty from the provider's own list, not written by a person._
The forge's reckoning comes from list prices; the provider's bill is the truth.