From aa143d79b7f135c2d5ac303e2500c7846ba31c07 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 27 Sep 2026 21:36:12 -0400 Subject: [PATCH] Stop the PR overlay preview failing stale PRs with SIGPIPE 'git status --short | head' under set -o pipefail: once the PR's pkgbuilds/ differs from base in more than ten files, head exits, git takes SIGPIPE and the step fails with 141 before anything builds. Every PR branched far enough behind master hit it (omadev #423, llmman-bin #428 and others on 2026-09-28). sed -n '1,10p' prints the same preview and drains the stream. --- .github/workflows/build-pr.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 76fc6cc..42c34aa 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -202,7 +202,10 @@ jobs: git fetch --no-tags --depth=1 origin "${{ github.event.pull_request.head.sha }}" git checkout "${{ github.event.pull_request.head.sha }}" -- pkgbuilds/ echo "tooling: $(git rev-parse --short HEAD) (base) packages: ${{ github.event.pull_request.head.sha }} (PR head)" - git status --short | head + # A preview only. `head` exits after ten lines and, under pipefail, + # git's SIGPIPE (141) failed the step for any PR far enough behind + # master to differ in more files; sed reads the whole stream. + git status --short | sed -n '1,10p' - name: Build ${{ matrix.package }} (${{ matrix.arch }}, ships to ${{ matrix.channels }}) id: build env: