From cdc9fa8d1f110697fec65cf6213000417bd8c89a Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:17:14 -0500 Subject: [PATCH] fix(#1243): accept an altool validation that passed with a warning altool 26.40.1 reports a pass with a warning as "VERIFY SUCCEEDED with no errors, 1 warning" and "No errors, 1 warnings, validating archive". The check accepted only "VALIDATION SUCCEEDED" or "No errors validating", so it refused the v1.8.1 IPA that Apple had validated, and nothing was uploaded to TestFlight. Any output with an error line is still refused. build.yml's altool test now covers validate as well as upload, with the real v1.8.1 output as a must-accept case. It fails on the old script. Co-Authored-By: Claude Opus 5.5 --- .github/scripts/ios-altool-check.sh | 7 +++++-- .github/workflows/build.yml | 24 +++++++++++++++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/scripts/ios-altool-check.sh b/.github/scripts/ios-altool-check.sh index 488e3230..db37e632 100644 --- a/.github/scripts/ios-altool-check.sh +++ b/.github/scripts/ios-altool-check.sh @@ -10,9 +10,12 @@ mode="${1:?mode}" code="${2:?exit code}" output="${3:?output file}" +# A pass with warnings is still a pass (#1243): altool 26.40 prints +# "VERIFY SUCCEEDED with no errors, 1 warning" and "No errors, 1 warnings, +# validating archive". Any error line is still refused below. case "${mode}" in - validate) success='VALIDATION SUCCEEDED|No errors validating' ;; - upload) success='UPLOAD SUCCEEDED|No errors uploading' ;; + validate) success='VALIDATION SUCCEEDED|VERIFY SUCCEEDED|No errors(, [0-9]+ warnings?,)? validating' ;; + upload) success='UPLOAD SUCCEEDED|No errors(, [0-9]+ warnings?,)? uploading' ;; *) echo "::error::Unknown altool mode '${mode}'." exit 1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13fe7bdf..c41e4811 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -178,7 +178,29 @@ jobs: echo "::error::A non-zero exit was accepted." exit 1 fi - echo "Refused every bad case, as required." + # A pass with a warning is still a pass (#1243). This is altool + # 26.40.1's real output from the v1.8.1 release run, which the check + # refused, so nothing reached TestFlight. + { + printf '==========================================\n' + printf 'VERIFY SUCCEEDED with no errors, 1 warning\n' + printf '==========================================\n' + printf "WARN: [altool] SDK version issue. This app was built with the iOS 26.5 SDK. Starting April 2027, iOS and iPadOS apps must be built with the iOS 27 SDK or later. (90725)\n" + printf "No errors, 1 warnings, validating archive at 'build/ios/ipa/Offband.ipa'.\n" + } > "${T}/validate-warning.txt" + printf "No errors validating archive at 'build/ios/ipa/Offband.ipa'.\n" > "${T}/validate-ok.txt" + printf 'VERIFY FAILED with 1 error\n' > "${T}/validate-failed.txt" + printf "No errors, 1 warnings, validating archive\nERROR: partial\n" > "${T}/validate-mixed.txt" + for f in validate-warning validate-ok; do + bash "${CHECK}" validate 0 "${T}/${f}.txt" || { echo "::error::A clean validation ('${f}') was refused."; exit 1; } + done + for f in validate-failed validate-mixed silent empty; do + if bash "${CHECK}" validate 0 "${T}/${f}.txt" > /dev/null; then + echo "::error::Validate with '${f}' output was accepted." + exit 1 + fi + done + echo "Accepted every pass and refused every bad case, as required." linux: # PINNED, not ubuntu-latest (#929). GitHub moved ubuntu-latest from 24.04