A failed release run fails the release status it left pending, so it never reads as running for good #322

Merged
merge-queue merged 2 commits from pipt-79-release-assets-fail into main 2026-11-30 17:13:40 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/PIPT-79

Problem. The release suite's reserve job posts a Release assets/<tag> commit status as pending ("Building the declared release parts"); only a successful or callback-failed finalize ever moves it. When the run fails before that (in reserve itself, a build leg, or finalize), the status stays pending on the merge commit forever. strip-owner reads a pending status as the release still running, so the PR shows "Release running" indefinitely: its session is never told the release failed and its work package is never dealt with. shows-phone's two merges today (run 3 and run 6, both failing in reserve's dispatch step) and phone's run 4 sit this way.

Added.

  • protocol.mjs abandon: reads the source commit's combined status and fails each Release assets/* status still pending there, naming the run in target_url.
  • A last step in reserve, build and finalize: if: failure(), runs abandon. It uses the same job token those jobs already post statuses and release edits with.
  • Tests: abandon fails only a pending release status and names the run; each of the three jobs ends with the step.

Unchanged. A run that passes with an external part still in flight leaves the status pending, as now: the part's callback finalizes it. Nothing in strip-owner changes; it already reads a failed status as a failed release and tells the session.

Not done here. The commits already stuck (shows-phone 93bf797 and e46be6f, phone's run 4 commit) keep their pending status; a rerun or a new release run on those repos settles them.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/PIPT-79 **Problem.** The release suite's `reserve` job posts a `Release assets/<tag>` commit status as pending ("Building the declared release parts"); only a successful or callback-failed `finalize` ever moves it. When the run fails before that (in `reserve` itself, a `build` leg, or `finalize`), the status stays pending on the merge commit forever. strip-owner reads a pending status as the release still running, so the PR shows "Release running" indefinitely: its session is never told the release failed and its work package is never dealt with. shows-phone's two merges today (run 3 and run 6, both failing in `reserve`'s dispatch step) and phone's run 4 sit this way. **Added.** - `protocol.mjs abandon`: reads the source commit's combined status and fails each `Release assets/*` status still pending there, naming the run in `target_url`. - A last step in `reserve`, `build` and `finalize`: `if: failure()`, runs `abandon`. It uses the same job token those jobs already post statuses and release edits with. - Tests: `abandon` fails only a pending release status and names the run; each of the three jobs ends with the step. **Unchanged.** A run that passes with an external part still in flight leaves the status pending, as now: the part's callback finalizes it. Nothing in strip-owner changes; it already reads a failed status as a failed release and tells the session. **Not done here.** The commits already stuck (shows-phone 93bf797 and e46be6f, phone's run 4 commit) keep their pending status; a rerun or a new release run on those repos settles them. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A failed release run fails the release status it left pending (PIPT-79)
Some checks are pending
CI / changes (pull_request) Successful in 9s
CI / cached-images (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 16s
CI / home-cache-windows (pull_request) Has been skipped
CI / release-version (pull_request) Has been skipped
CI / container-health (pull_request) Has been skipped
CI / check-versions (pull_request) Has been skipped
CI / check-image-digests (pull_request) Has been skipped
CI / home-cache-linux (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 19s
CI / service-runtime (two) (pull_request) Successful in 21s
CI / service-runtime (one) (pull_request) Successful in 27s
Suite default / reused-checks (pull_request) Successful in 7s
CI / service-cancellation (pull_request) Successful in 25s
Fleet / align (pull_request) Successful in 6s
CI / azure-cli (pull_request) Has been skipped
CI / cache-save (windows-latest) (pull_request) Has been skipped
CI / setup-linux (cluster) (pull_request) Successful in 1m20s
Tofu providers / lock (pull_request) Successful in 7s
CI / prune-releases (pull_request) Has been skipped
CI / check-fetches (pull_request) Has been skipped
CI / manifest-check-linux (pull_request) Has been skipped
CI / cache-save (ubuntu-latest) (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
CI / actionlint (pull_request) Successful in 17s
CI / suite-tests-linux (pull_request) Successful in 29s
merge-queue 2nd in line, behind #321: Suites read each repository's topics from Forgejo, never the list; nas and applier become topics (PIPT-78)
CI / suite-tests-windows (pull_request) Successful in 1m48s
CI / setup-windows (pull_request) Successful in 5m16s
1e60105824
First-time contributor

merge-queue stopped this at 1e60105: CI failed: CI / suite-tests-windows (pull_request). Push a fix. A failure fixed on main lands once the queue label is removed and added again: the queue merges main in and CI runs on the new head.

merge-queue stopped this at 1e60105: CI failed: CI / suite-tests-windows (pull_request). Push a fix. A failure fixed on main lands once the `queue` label is removed and added again: the queue merges main in and CI runs on the new head.
First-time contributor

merge-queue stopped this at 1e60105: CI failed: CI / suite-tests-windows (pull_request). Push a fix. A failure fixed on main lands once the queue label is removed and added again: the queue merges main in and CI runs on the new head.

merge-queue stopped this at 1e60105: CI failed: CI / suite-tests-windows (pull_request). Push a fix. A failure fixed on main lands once the `queue` label is removed and added again: the queue merges main in and CI runs on the new head.
Merge branch 'main' into pipt-79-release-assets-fail
All checks were successful
CI / changes (pull_request) Successful in 6s
CI / check-image-digests (pull_request) Has been skipped
Fleet / align (pull_request) Successful in 4s
CI / prune-releases (pull_request) Has been skipped
CI / check-versions (pull_request) Has been skipped
CI / check-fetches (pull_request) Has been skipped
CI / home-cache-linux (pull_request) Has been skipped
CI / cache-save (windows-latest) (pull_request) Has been skipped
Tofu providers / lock (pull_request) Successful in 3s
CI / release-version (pull_request) Has been skipped
CI / azure-cli (pull_request) Has been skipped
CI / home-cache-windows (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 12s
Suite default / check-fetches (pull_request) Has been skipped
CI / container-health (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
CI / cached-images (pull_request) Has been skipped
CI / cache-save (ubuntu-latest) (pull_request) Has been skipped
CI / manifest-check-linux (pull_request) Has been skipped
CI / suite-tests-windows (pull_request) Successful in 1m45s
CI / setup-windows (pull_request) Successful in 3m36s
Suite default / check-logs (pull_request) Successful in 32s
CI / service-runtime (two) (pull_request) Successful in 57s
CI / service-runtime (one) (pull_request) Successful in 1m0s
CI / suite-tests-linux (pull_request) Successful in 1m28s
CI / actionlint (pull_request) Successful in 24s
CI / service-cancellation (pull_request) Successful in 1m10s
CI / setup-linux (cluster) (pull_request) Successful in 3m58s
merge-queue landed on main
Suite default / reused-checks (pull_request) Successful in 11s
75a1f95fc3
merge-queue deleted branch pipt-79-release-assets-fail 2026-11-30 17:13:40 -08:00
Sign in to join this conversation.
No description provided.