Skip to content

[Due for payment 2026-07-01] iOS production deploys fail to complete the previous version's phased rollout to 100% #94241

Closed

Description

@blimpich

Problem

On every iOS production deploy, the "Submit previous production build to 100%" step crashes. Because of this, the previously-live App Store version's phased release is never force-completed to 100% by our automation. Apple still auto-advances phased releases to 100% over ~7 days on its own, so users are not blocked — but every production deploy shows a red error annotation, and rollout completion is effectively no longer automated.

Reproduction Steps

These apply to real production deploys (the step only runs during a deploy.yml production run).

  1. Trigger or open any recent iOS production deploy, e.g. run 27989565406.
  2. Open the Submit iOS for production rollout job (example).
  3. Expand the Submit previous production build to 100% step.

Expected Behavior: The step finds the live App Store version and completes its phased release to 100% (or cleanly skips if already at 100%).

Actual Behavior: The step errors with a NoMethodError and exits code 1:

Fastfile:543: undefined method 'get_live_app_store_version' for nil (NoMethodError)

The step is continue-on-error, so the job still shows green and the deploy proceeds — which is why this went unnoticed.

Solution

The "Submit previous production build to 100%" step in deploy.yml does not set APPLE_ID in its env: block, so the lane runs Spaceship::ConnectAPI::App.find(nil), which returns nil. Add the env var (matching the sibling submit_hybrid_for_rollout step, which already has it):

- name: Submit previous production build to 100%
  run: bundle exec fastlane ios complete_hybrid_rollout
  continue-on-error: true
  env:
    APPLE_ID: ${{ vars.APPLE_ID }}
Extra context

Where: fastlane/Fastfile, lane complete_hybrid_rollout:

app = Spaceship::ConnectAPI::App.find(ENV["APPLE_ID"])   # ENV["APPLE_ID"] is nil -> returns nil
version = app.get_live_app_store_version(...)            # nil.get_live... -> NoMethodError

Confirmed root cause (from the job logs): the failing step's env: block contains only IS_APP_REPO, DEPLOY_ENV, and PATH — no APPLE_ID. The working submit_hybrid_for_rollout step's env: block includes APPLE_ID: com.expensify.expensifylite and VERSION, which is why it resolves the same app and succeeds seconds later with the same credentials.

Ruled out:

  • Not the fastlane-auto-suggested fastlane/fastlane#26626 — that's an Apple-side, transient Oct-2024 bug about app store version ordering (wrong/old versions returned), a different symptom.
  • Not a fastlane regression — Spaceship::ConnectAPI::App.find / get_apps are byte-for-byte unchanged across 2.229.0→2.236.1, and nothing in that changelog touches app lookup. A fastlane bump would not fix this.
  • Android's complete_hybrid_rollout is unaffected because it uses google_play_track_version_codes + upload_to_play_store with a hardcoded package_name, not an env-supplied identifier.

Secondary hardening: the lane calls a method on the result of App.find without a nil check, which is why the failure surfaced as a cryptic NoMethodError rather than a clear message. Adding nil guards makes any future lookup failure self-explanatory.

Surfaced by: the BrowserStack "production version not older than 48h" check failing on v9.4.15-3 — Slack thread. (That 48h failure itself was mainly a 3-day deploy gap + rollout latency; this crash is a separate, real issue found while investigating.)

– written by Claude on Ben's behalf

Activity

  1. self-assigned this
    on Jun 23, 2026
  2. added
    Reviewing
    Weekly
    Daily
    and removed
    Daily
    Reviewing
    Weekly
    on Jun 23, 2026
  3. changed the title [-]iOS production deploys fail to complete the previous version's phased rollout to 100%[/-] [+][Due for payment 2026-07-01] iOS production deploys fail to complete the previous version's phased rollout to 100%[/+] on Jun 24, 2026
  4. melvin-bot commented on Jun 24, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  5. melvin-bot commented on Jun 24, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.18-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-07-01. 🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Daily

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions