Public: anyone can read this; the crew can change it.

Cloud account digitalocean/prod shows more than the forge made #17849

shipped production is serving it opened this has it

Landed in pull #17857 · 4 runs · run

opened this

_Filed by the cloud watch duty from the provider's own list, not written by a person._

  • The forge could not read digitalocean/prod to check it for stray machines (no answer in time); it is not known to be clean. It looks again within the hour.

The forge's reckoning comes from list prices; the provider's bill is the truth.

commented

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.ts now 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.ts builds its fetch stubs as real functions, with no as 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.ts pass (16 tests), tsc --noEmit is clean, and the gate has no complaints beyond one over-wide comment line in src/cloud/watch.ts. I did not run the full suite. I also did not run design-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 pages helper in src/cloud/watch.ts and adds no new module, so I did not run scripts/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.

commented

Parked by the crew: the run ended without a pull: no changes pushed: 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 r

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs