Skip to content

Decouple TestFlight distribution to avoid CI hangs - #12

Merged
adborbas merged 1 commit into
mainfrom
fix/decouple-testflight-distribution
Jul 14, 2026
Merged

adborbas merged 1 commit into
mainfrom
fix/decouple-testflight-distribution

Conversation

@adborbas

Copy link
Copy Markdown
Owner

The Upload to TestFlight job was hanging for 25+ minutes (and could run for hours) on the post-upload processing wait — a well-known fastlane bug where pilot polls the oldest build still processing, not the one just uploaded.

Change

  • upload_to_testflight now uses skip_waiting_for_build_processing: true, so the job returns immediately after the upload succeeds (~1 min, no wait).
  • Dropped the in-lane groups assignment (that was the only reason the lane had to wait — assigning a group requires a processed build).
  • Added timeout-minutes: 30 to the job as a safety cap.

Distribution still automatic

The internal group Testers (all builds) is now configured with access to all builds, so every build is delivered to testers automatically once App Store Connect finishes processing it — no in-lane assignment needed. (Apple only allows the "all builds" flag at group creation, so the group was recreated with the same single internal tester.)

Verified locally: Fastfile parses; the ASC group is confirmed has_access_to_all_builds=true with the tester in place.

upload_to_testflight waited for build processing so it could assign the build
to a group, but that wait is a well-known source of CI hangs (pilot polls the
oldest processing build, not the one just uploaded). Switch to
skip_waiting_for_build_processing: true so the job returns right after upload.

Distribution to internal testers is now automatic: the "Testers (all builds)"
group is configured with access to all builds, so every build reaches testers
once App Store Connect finishes processing — no in-lane group assignment (which
forced the wait) needed. Add a 30-minute job timeout as a safety cap.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adborbas
adborbas merged commit fc0d769 into main Jul 14, 2026
1 check passed
@adborbas
adborbas deleted the fix/decouple-testflight-distribution branch July 14, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant