ci: make the staging gate work end to end (status token, required check, stuck-pending timeout) #13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The staging check dispatched
jfraeys/infra'sstaging-validate.ymland polled for it. Infra has one runner, so the waiting job starved the validation, and the run-lookup used a Forgejo endpoint that 404s (/actions/workflows/<wf>/runs). The fix is fire-and-forget: the app job postsstaging/validate= pending and dispatches; infra'sreportjob posts the final state. Infra side merged (jfraeys/infra#288); app side is PR #10 (and commit77e77adon PR #9's branch).Still open:
staging-checkfailed after 1s on77e77adwith nostaging/validatestatus posted and no new infra dispatch. Likely cause:INFRA_DISPATCH_TOKENcan dispatch on infra but can't write commit statuses on this repo (needswrite:repository). Not confirmed; the job log has the HTTP code.CI_FORGEJO_COMMENT_TOKEN(used by infra'sreportjob) also needs permission to write statuses on this repo.staging/validateas a required status check inmainbranch protection, otherwise nothing gates merges.reportjob, the status stays pending forever. Decide on a stale-pending sweep or a re-dispatch path.mainpassed afterward (run 1082), so re-test once the status path works.🤖 Generated with Claude Code
https://claude.ai/code/session_01B1FuEx3w8ax6P8QvdxxADM