ci: fail upload when a build is in review#30215
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes are purely operational/infrastructure changes to the iOS build distribution pipeline. They have zero impact on:
No E2E tests need to run for this change. It's a deployment script adjustment that only affects how TestFlight uploads are handled in CI. Performance Test Selection: |
|



Description
Instead of rejecting a build in review, fail uploading while there is a build in review.
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes CI release behavior for TestFlight external distribution by swallowing specific submission failures, which could mask real upload issues if the error matching is too broad.
Overview
Updates
ios/fastlane/Fastfileto stop rejecting builds that are already Waiting for Review by settingreject_build_waiting_for_review: false.Wraps
upload_to_testflightin error handling so that whendistribute_externalis enabled and Apple rejects submission due to an existing in-review build, the lane logs a warning and continues (keeping the build uploaded for internal testers) while re-raising all other errors.Reviewed by Cursor Bugbot for commit 3230953. Bugbot is set up for automated code reviews on this repo. Configure here.