CI waits out a service's restart instead of failing on its 503 (PIPT-75) #318
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/pipeline-templates!318
Loading…
Reference in a new issue
No description provided.
Delete branch "forgejo-restart-wait"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forgejo is one pod that is stopped before its replacement starts, so during a rollout CI calls get 503s for several seconds and the job failed (PIPT-75). On 2026-11-30 the old pod got SIGTERM at 01:27:15, the new one listened at 01:27:23, and the Gateway logged 26 503s: first its own (the pod refusing the connection), then Forgejo's while it started. nelsong6/forgejo run 552's scope job failed on one,
GET /topics: HTTP 503.Added:
actions/waiting-fetch.js, one fetch for all of CI. On a 502, 503 or 504, or no answer at all, it tries again every 2 s (5 s after the first minute), for up to 10 minutes, the room Forgejo's startup probe gives a new version's migrations. The log names what it saw:upstream connect error ...orno healthy upstream): nothing behind it is answering;None of those says on its own whether the service is restarting or down; how long it lasts does. Back within 10 minutes, a
::notice::says it was restarting and for how long; past 10 minutes the call fails saying it is down, not restarting.Changed: every call CI makes to Forgejo, Artifact Keeper and auth (
request()insuites/lib.mjs, 25 directfetchcalls, and the release-version and prune-releases actions) goes through it, with atimeoutper attempt in place of one fixedsignal.Left alone: a timeout is not repeated, nor a request whose body is a stream. git (actions/checkout retries on its own), docker pushes, the runner's own fetch of actions, and services.mjs's local container poll are untouched.
🤖 Generated with Claude Code
merge-queue stopped this at
4eba615: CI failed: Fleet / align (pull_request). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.merge-queue stopped this at
f0b605b: CI failed: Fleet / align (pull_request). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.merge-queue stopped this at
a4f9ca6: CI failed: Fleet / align (pull_request). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.merge-queue stopped this at
ccd388b: CI failed: CI / service-cancellation (pull_request), CI / service-runtime (one) (pull_request), CI / service-runtime (two) (pull_request), CI / setup-linux (cluster) (pull_request), CI / suite-tests-…. Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.merge-queue stopped this at
ccd388b: CI failed: CI / service-runtime (two) (pull_request). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.