ci(release): publish from the Pi; surface API 422s #37

Merged
sirius merged 2 commits from wt/t_2c84cd13 into main 2026-09-12 13:23:16 +00:00
Owner

Summary

Run 116 built both Linux binaries (aarch64 19,307,312 bytes ARM aarch64; x86_64 21,138,640 bytes x86-64) then POST /releases returned HTTP 422 six times with no body because publish-release.sh used curl -sf --retry-all-errors. Publish was also queued ~1h on docker-amd64 behind android-release (runner capacity=1). Cleanup did delete the dangling v0.1.0 tag (fail-closed worked).

This PR:

  • Moves the publish job to the Pi (runs-on: docker) — same network path as the version job that already creates tags over the public API. x86_64 still builds on docker-amd64.
  • Stops retrying 4xx; prints the Forgejo JSON on failure; joins 409/422 if the release already exists.
  • README: core-only paths (src/, crates/, Cargo.toml, Cargo.lock, scripts/release-body.md); dry_run=true is how you test release.yml without minting a release; concurrency is onionwire-ci-pi shared with ci.yml (cancel-in-progress: false). Amd64 overlap is runner capacity=1, not a second Forgejo concurrency group.
  • Did not bake pkg-config/libssl-dev into a custom image (dind PVC would make that the durable apt-loop fix — file separately).

Loop guard

push: tags: was already dropped. This workflow creates the tag via the API; a tag-push trigger would start a second run. main + workflow_dispatch cover the cases.

Paths (do not mint on CI-file edits)

Kept: src/**, crates/**, Cargo.toml, Cargo.lock, scripts/release-body.md (shapes the published notes).
Dropped earlier: .forgejo/workflows/release.yml, scripts/build-release-local.sh.

Test plan

  • workflow_dispatch dry_run=true on this branch (optional — run 116 already proved both cargo builds)
  • workflow_dispatch non-dry produces v0.1.0 with four non-empty assets
  • file shows ARM aarch64 and x86-64; sha256sum -c green
  • PR CI (.forgejo/workflows/ci.yml) — this diff is workflow/docs only, so the cargo suite should skip
## Summary Run 116 built both Linux binaries (aarch64 19,307,312 bytes ARM aarch64; x86_64 21,138,640 bytes x86-64) then `POST /releases` returned **HTTP 422** six times with no body because `publish-release.sh` used `curl -sf --retry-all-errors`. Publish was also queued ~1h on `docker-amd64` behind android-release (runner capacity=1). Cleanup did delete the dangling `v0.1.0` tag (fail-closed worked). This PR: - Moves the **publish** job to the Pi (`runs-on: docker`) — same network path as the version job that already creates tags over the public API. x86_64 still builds on `docker-amd64`. - Stops retrying 4xx; prints the Forgejo JSON on failure; joins 409/422 if the release already exists. - README: core-only `paths` (`src/`, `crates/`, `Cargo.toml`, `Cargo.lock`, `scripts/release-body.md`); `dry_run=true` is how you test `release.yml` without minting a release; concurrency is `onionwire-ci-pi` shared with `ci.yml` (`cancel-in-progress: false`). Amd64 overlap is runner `capacity=1`, not a second Forgejo concurrency group. - Did **not** bake pkg-config/libssl-dev into a custom image (dind PVC would make that the durable apt-loop fix — file separately). ## Loop guard `push: tags:` was already dropped. This workflow creates the tag via the API; a tag-push trigger would start a second run. `main` + `workflow_dispatch` cover the cases. ## Paths (do not mint on CI-file edits) Kept: `src/**`, `crates/**`, `Cargo.toml`, `Cargo.lock`, `scripts/release-body.md` (shapes the published notes). Dropped earlier: `.forgejo/workflows/release.yml`, `scripts/build-release-local.sh`. ## Test plan - [ ] `workflow_dispatch` `dry_run=true` on this branch (optional — run 116 already proved both cargo builds) - [ ] `workflow_dispatch` non-dry produces **v0.1.0** with four non-empty assets - [ ] `file` shows ARM aarch64 and x86-64; `sha256sum -c` green - [ ] PR CI (`.forgejo/workflows/ci.yml`) — this diff is workflow/docs only, so the cargo suite should skip
Run 116 built both arches then POST /releases returned 422 six times
(--retry-all-errors) with no body, while sitting on docker-amd64 behind
android. Move publish to the Pi runner (same path as tag create) and
print the Forgejo error instead of retrying 4xx. README now matches the
core-only path filter and onionwire-ci-pi concurrency.
Author
Owner

Evidence (run 135, then this follow-up)

Non-dry workflow_dispatch on 9b7e72b: https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/135

job result wall
version success 3s — created v0.1.0 on 9b7e72b
aarch64 success ~3m (Pi)
x86_64 success ~2m after android 134 freed amd64
publish success (Pi docker, not amd64) ~26s
cleanup failure / Early termination — act still scheduled it after a green publish

Release: https://forgejo.siriusdevops.com/sirius/onionwire/releases/tag/v0.1.0

asset bytes
onionwire-aarch64-unknown-linux-gnu 19307312
onionwire-aarch64-unknown-linux-gnu.sha256 102
onionwire-x86_64-unknown-linux-gnu 21138640
onionwire-x86_64-unknown-linux-gnu.sha256 101

file:

  • ARM aarch64: ELF 64-bit LSB pie executable, ARM aarch64, ... stripped
  • x86-64: ELF 64-bit LSB pie executable, x86-64, ... stripped

sha256sum -c: both OK

  • 360fceaa915128aa8178d3b6ec7836f4a3aae93085466b938a6ccd5927e42681 onionwire-aarch64-unknown-linux-gnu
  • 9e4f8d258e435f1c541ec8c3ca8e62316579069c1ad703a81c2eab37758b6adf onionwire-x86_64-unknown-linux-gnu

This follow-up commit drops the sibling cleanup job (that is what failed run 135 overall) and deletes a dangling tag from publish with if: failure() instead. Do not re-dispatch a non-dry run: v0.1.0 is the first published release and must stay.

Loop guard: creating tag v0.1.0 did not start a second release run (only dispatch 135). Merge of #32 (fecec6c, ci.yml only) produced no release run.

dry_run=true is how to test further release.yml edits without minting v0.1.1.

## Evidence (run 135, then this follow-up) Non-dry `workflow_dispatch` on `9b7e72b`: https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/135 | job | result | wall | |---|---|---| | version | success | 3s — created `v0.1.0` on `9b7e72b` | | aarch64 | success | ~3m (Pi) | | x86_64 | success | ~2m after android 134 freed amd64 | | publish | **success** (Pi `docker`, not amd64) | ~26s | | cleanup | **failure / Early termination** — act still scheduled it after a green publish | Release: https://forgejo.siriusdevops.com/sirius/onionwire/releases/tag/v0.1.0 | asset | bytes | |---|---| | `onionwire-aarch64-unknown-linux-gnu` | 19307312 | | `onionwire-aarch64-unknown-linux-gnu.sha256` | 102 | | `onionwire-x86_64-unknown-linux-gnu` | 21138640 | | `onionwire-x86_64-unknown-linux-gnu.sha256` | 101 | `file`: - ARM aarch64: `ELF 64-bit LSB pie executable, ARM aarch64, ... stripped` - x86-64: `ELF 64-bit LSB pie executable, x86-64, ... stripped` `sha256sum -c`: both **OK** - `360fceaa915128aa8178d3b6ec7836f4a3aae93085466b938a6ccd5927e42681 onionwire-aarch64-unknown-linux-gnu` - `9e4f8d258e435f1c541ec8c3ca8e62316579069c1ad703a81c2eab37758b6adf onionwire-x86_64-unknown-linux-gnu` This follow-up commit drops the sibling `cleanup` job (that is what failed run 135 overall) and deletes a dangling tag from `publish` with `if: failure()` instead. Do not re-dispatch a non-dry run: `v0.1.0` is the first published release and must stay. Loop guard: creating tag `v0.1.0` did not start a second release run (only dispatch 135). Merge of #32 (`fecec6c`, ci.yml only) produced no release run. `dry_run=true` is how to test further `release.yml` edits without minting `v0.1.1`.
The sibling cleanup job ran after a successful v0.1.0 publish (run 135)
because act leaves needs.publish.result unset, so != success is true.
It Early-terminated before deleting, but that is not a guard. Fold
fail-closed delete into publish as if: failure() and drop the extra job.
sirius merged commit 81ae8556b9 into main 2026-09-12 13:23:16 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!37
No description provided.