Skip to content

ci: fail upload when a build is in review#30215

Open
tommasini wants to merge 1 commit into
mainfrom
ci/fail-when-build-is-in-review
Open

ci: fail upload when a build is in review#30215
tommasini wants to merge 1 commit into
mainfrom
ci/fail-when-build-is-in-review

Conversation

@tommasini
Copy link
Copy Markdown
Contributor

@tommasini tommasini commented May 14, 2026

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

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

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/Fastfile to stop rejecting builds that are already Waiting for Review by setting reject_build_waiting_for_review: false.

Wraps upload_to_testflight in error handling so that when distribute_external is 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.

@tommasini tommasini requested a review from a team as a code owner May 14, 2026 22:10
@github-actions
Copy link
Copy Markdown
Contributor

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.

@metamaskbotv2 metamaskbotv2 Bot added the team-mobile-platform Mobile Platform team label May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: None (no tests recommended)
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: low
  • AI Confidence: 98%
click to see 🤖 AI reasoning details

E2E Test Selection:
The only changed file is ios/fastlane/Fastfile, which is a CI/CD deployment configuration file for uploading iOS builds to TestFlight. The changes are:

  1. Changed reject_build_waiting_for_review from true to false — this prevents the upload process from cancelling builds already waiting for Apple review.
  2. Added a begin/rescue error handling block around upload_to_testflight to gracefully handle the scenario where Apple rejects a new submission because another build is already in review queue.

These changes are purely operational/infrastructure changes to the iOS build distribution pipeline. They have zero impact on:

  • App source code or functionality
  • E2E test infrastructure or test files
  • Any controllers, components, or user flows
  • Any shared components that could break existing tests

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:
The change is purely to the iOS Fastlane deployment script (TestFlight upload configuration). It has no impact on app performance, rendering, data loading, or any user-facing functionality. No performance tests are needed.

View GitHub Actions results

@sonarqubecloud
Copy link
Copy Markdown

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

Labels

size-S team-mobile-platform Mobile Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant