From 239c3d2319cbff293375cf6948b8549f26657ce5 Mon Sep 17 00:00:00 2001 From: hyochan Date: Wed, 18 Nov 2026 04:28:55 +0900 Subject: [PATCH] fix(ci): stop the store-build checks failing on SIGPIPE The artifact checks piped unzip and keytool into grep -q. grep -q exits on the first match, the writer then dies of SIGPIPE, and pipefail reports 141. The second android-production run built and signed its AAB and then failed there. grep -c reads to the end and keeps the same zero-match failure. Co-Authored-By: Claude Opus 5.5 --- codemagic.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/codemagic.yaml b/codemagic.yaml index 6a1fe60..98dcea3 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -173,7 +173,9 @@ workflows: set -euo pipefail host=$(node -p 'new URL(process.env.EXPO_PUBLIC_CONVEX_URL).host') ipa=$(ls build/ios/ipa/*.ipa) - unzip -p "$ipa" 'Payload/BooKoo.app/main.jsbundle' | grep -a -q "$host" + # grep -c reads to the end; grep -q would close the pipe early and + # pipefail would turn the writer's SIGPIPE (141) into a failure. + unzip -p "$ipa" 'Payload/BooKoo.app/main.jsbundle' | grep -a -c "$host" > /dev/null echo "main.jsbundle targets $host" artifacts: - build/ios/ipa/*.ipa @@ -235,9 +237,11 @@ workflows: script: | set -euo pipefail aab=android/app/build/outputs/bundle/release/app-release.aab - keytool -printcert -jarfile "$aab" | grep -q "SHA256: $UPLOAD_CERT_SHA256" + # grep -c reads to the end; grep -q would close the pipe early and + # pipefail would turn the writer's SIGPIPE (141) into a failure. + keytool -printcert -jarfile "$aab" | grep -c "SHA256: $UPLOAD_CERT_SHA256" > /dev/null host=$(node -p 'new URL(process.env.EXPO_PUBLIC_CONVEX_URL).host') - unzip -p "$aab" base/assets/index.android.bundle | grep -a -q "$host" + unzip -p "$aab" base/assets/index.android.bundle | grep -a -c "$host" > /dev/null echo "Signed with the upload key; bundle targets $host" artifacts: - android/app/build/outputs/bundle/release/*.aab