Skip to content

fix(release): resolve the image digest without a broken pipe - #22

Open
michielvha wants to merge 1 commit into
mainfrom
fix/release-digest-sigpipe
Open

michielvha wants to merge 1 commit into
mainfrom
fix/release-digest-sigpipe

Conversation

@michielvha

Copy link
Copy Markdown
Contributor

The Resolve image digest step ran gh api --paginate ... | head -1 under set -o pipefail. head exits at the first match while gh is still fetching pages, gh dies of SIGPIPE, and the step fails with exit 141 even though the digest was found. It failed this way twice on 2026-11-25 for stackweaver-orchestrator (0.4.206 and 0.4.207, run) and once for stackweaver-api 0.17.92.

sed -n 1p reads every page, so the pipe stays open. Checked locally: set -euo pipefail; d=$(seq 1 500000 | head -1) exits 141, the same with sed -n 1p exits 0.

The same fix goes to every satellite with this step: orchestrator, api, frontend, ansible-runner, secrets-init and zitadel-init. Each satellite keeps its own release.yml; the monorepo sync copies source only.

The digest step piped a paginated gh api call into head -1 under set -o
pipefail. head exits at the first match while gh is still paginating,
gh then dies of SIGPIPE, and the step fails with exit 141 although the
digest was found. sed -n 1p reads every page instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant