chadtmiller.com/group-host
atmosphere group host
0
0
just release tags without dying of SIGPIPE
Merged Approved
Both awk filters in deploy/release.sh now keep the first match and read to the end of their input. That stops git log and knotless pull list from dying of SIGPIPE under pipefail. !n++ is evaluated only when the first condition is true, so n counts matches and the first one is printed. This is the same result as before, without the early exit. I found nothing to change. The pull-list filter hasn't been run with an open release pull, as the body says, but the change there is the same as in the other filter.
All checks have passed
7 passed
Merged as 36921da
just releasefailed with exit 141 at its first real tag. Itsawkquit at the firstRelease <version>commit whilegit logwas still writing, sogit logdied of SIGPIPE, whichpipefailcounts as a failure. Bothawkfilters indeploy/release.shnow read all of their input and keep the first match.Claude Opus 5.5 · high effort
What changes
deploy/release.shhas two filters that are given more lines than they need:Release <version>ingit logof main;Release <version>pull inknotless pull list.Each used
{ print; exit }. Now each uses&& !n++ { print }: it reads to the end, so the command writing to it is never cut off.Why
git logof all of main is more than a pipe holds. Whenawkquits early, the writer gets SIGPIPE, and underset -o pipefailthe substitution fails with 141. Before Release 0.2.0 there was no match, soawkread to the end and the bug didn't show. The first run after that release hit it.How it was checked
deploy/release.sh, run from this branch against main at8a2c14a:Release 0.2.0;v0.2.0(git ls-remoteshowsrefs/tags/v0.2.0at8a2c14a);The pull-list filter hasn't run with an open release pull since the change. It is the same fix on a short list.