Skip to content

Commit 801ab3f

Browse files
authored
chore: Disable iOS external group distribution by default (#30272)
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until this PR meets the canonical Definition of Ready For Review in `docs/readme/ready-for-review.md`. In short: the template must be materially complete (not just section titles present), all status checks must be currently passing, and the only expected follow-up commits must be reviewer-driven. --> ## **Description** <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> These changes disables iOS external group distribution by default within our workflows. We're going to try relying on internal group distribution instead since it removes the Apple review bottleneck from External builds. Uploaded builds to internal groups will be immediately available. ## **Changelog** <!-- If this PR is not End-User-Facing and should not show up in the CHANGELOG, you can choose to either: 1. Write `CHANGELOG entry: null` 2. Label with `no-changelog` If this PR is End-User-Facing, please write a short User-Facing description in the past tense like: `CHANGELOG entry: Added a new tab for users to see their NFTs` `CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker` (This helps the Release Engineer do their job more quickly and accurately) --> CHANGELOG entry: ## **Related issues** Fixes: https://consensyssoftware.atlassian.net/browse/MCWP-607 ## **Manual testing steps** ```gherkin 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** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **Pre-merge author checklist** <!-- Every checklist item must be consciously assessed before marking this PR as "Ready for review". A checked box means you deliberately considered that responsibility, not that you literally performed every action listed. Unchecked boxes are ambiguous: they are not an implicit "N/A" and they are not a silent "skip". See `docs/readme/ready-for-review.md` for the full checklist semantics. --> - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I've included tests if applicable - [ ] I've documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I've applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. #### 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](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/edit-v2/401401446401?draftShareId=9d77e1e1-4bdc-4be1-9ebb-ccd916988d93) to import wallets with many accounts and tokens - [ ] I've instrumented key operations with Sentry traces for production performance metrics - See [`trace()`](/app/util/trace.ts) for usage and [`addToken`](/app/components/Views/AddAsset/components/AddCustomToken/AddCustomToken.tsx#L274) for an example For performance guidelines and tooling, see the [Performance Guide](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/400085549067/Performance+Guide+for+Engineers). ## **Pre-merge reviewer checklist** <!-- Reviewer checklist items follow the same semantics as the author checklist: an unchecked box is ambiguous, a checked box means the reviewer consciously assessed that responsibility. See `docs/readme/ready-for-review.md`. --> - [ ] 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. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes the default `distribute_external` behavior for iOS TestFlight uploads across GitHub workflows and Fastlane, which could unintentionally stop external tester distribution if callers relied on the prior default. > > **Overview** > iOS TestFlight uploads now **default to internal-only distribution** by setting `distribute_external` to `false` by default in `upload-to-testflight.yml`, `scripts/upload-to-testflight.sh`, and the Fastlane `upload_to_testflight_only` lane. > > Workflow callers (e.g. `nightly-build.yml`, `runway-*-builds.yml`, `auto-rc-ota-build-core.yml`) remove explicit `distribute_external` overrides and update input descriptions to reflect the new default. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d2b15fb. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 667412b commit 801ab3f

8 files changed

Lines changed: 7 additions & 12 deletions

.github/workflows/auto-rc-ota-build-core.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,4 @@ jobs:
142142
build_commit_sha: ${{ needs.trigger-build.outputs.built_commit_sha }}
143143
build_version: ${{ needs.trigger-build.outputs.semantic_version }}
144144
build_number: ${{ needs.trigger-build.outputs.ios_version_code }}
145-
distribute_external: false
146145
secrets: inherit

.github/workflows/build-and-upload-to-testflight.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
type: string
2121
default: 'MetaMask BETA & Release Candidates'
2222
distribute_external:
23-
description: 'Whether to distribute to external testers. Defaults to false; nightly-build.yml relies on the script default (true) so it always distributes externally.'
23+
description: 'Whether to distribute to external testers. (default: false)'
2424
required: false
2525
type: boolean
2626
default: false
@@ -55,7 +55,7 @@ on:
5555
- 'MM Card Team'
5656
- 'Ramp Provider Testing'
5757
distribute_external:
58-
description: 'Whether to distribute to external testers'
58+
description: 'Whether to distribute to external testers (default: false)'
5959
required: false
6060
type: boolean
6161
default: false

.github/workflows/nightly-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
source_branch: main
3232
environment: exp
3333
testflight_group: 'MetaMask BETA & Release Candidates'
34-
distribute_external: true
3534
secrets: inherit
3635

3736
# ── iOS rc: build + TestFlight upload (after exp for sequential versions) ─
@@ -43,7 +42,6 @@ jobs:
4342
source_branch: main
4443
environment: rc
4544
testflight_group: 'MetaMask BETA & Release Candidates'
46-
distribute_external: false
4745
secrets: inherit
4846

4947
# ── Android exp: ephemeral branch + build ──────────────────────────────

.github/workflows/runway-production-builds.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,4 @@ jobs:
6565
build_commit_sha: ${{ needs.build.outputs.built_commit_sha }}
6666
build_version: ${{ needs.build.outputs.semantic_version }}
6767
build_number: ${{ needs.build.outputs.ios_version_code }}
68-
distribute_external: false
6968
secrets: inherit

.github/workflows/runway-rc-builds.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ jobs:
6565
build_commit_sha: ${{ needs.build.outputs.built_commit_sha }}
6666
build_version: ${{ needs.build.outputs.semantic_version }}
6767
build_number: ${{ needs.build.outputs.ios_version_code }}
68-
distribute_external: false
6968
secrets: inherit
7069

7170
slack-notification:

.github/workflows/upload-to-testflight.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ on:
4040
required: true
4141
type: string
4242
distribute_external:
43-
description: 'Whether to distribute to external testers. Set false for nightly/internal builds to avoid expiring previous TestFlight builds.'
43+
description: 'Whether to distribute to external testers. (default: false)'
4444
required: false
4545
type: boolean
46-
default: true
46+
default: false
4747
runner_provider:
4848
description: Runner provider forwarded from the caller
4949
required: false

ios/fastlane/Fastfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ platform :ios do
2020
# Convert groups parameter to array (Fastlane CLI passes strings, not arrays)
2121
groups_param = options[:groups] || ['MetaMask BETA & Release Candidates']
2222
groups = groups_param.is_a?(Array) ? groups_param : [groups_param]
23-
distribute_external = options[:distribute_external].nil? ? true : options[:distribute_external].to_s.downcase == 'true'
23+
distribute_external = options[:distribute_external].nil? ? false : options[:distribute_external].to_s.downcase == 'true'
2424
notify_external_testers = distribute_external
2525

2626
if ipa_path.nil? || ipa_path.empty?

scripts/upload-to-testflight.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# branch - Git branch name (required)
1111
# ipa_path - Optional: Direct path to IPA file (if not provided, uses find-ipa-file.sh)
1212
# testflight_group - Optional: TestFlight external testing group name (default: MetaMask BETA & Release Candidates)
13-
# distribute_external - Optional: Whether to distribute to external testers (default: true)
13+
# distribute_external - Optional: Whether to distribute to external testers (default: false)
1414
#
1515
# Environment variables:
1616
# IPA_PATH - IPA path (set by find-ipa-file.sh if not provided as argument)
@@ -27,7 +27,7 @@ PIPELINE_NAME="$1"
2727
BRANCH="$2"
2828
LOCAL_IPA_PATH="$3"
2929
TESTFLIGHT_GROUP="${4:-MetaMask BETA & Release Candidates}"
30-
DISTRIBUTE_EXTERNAL="${5:-true}"
30+
DISTRIBUTE_EXTERNAL="${5:-false}"
3131

3232
# Get IPA path: use argument if provided, otherwise use find-ipa-file.sh
3333
if [ -n "$LOCAL_IPA_PATH" ]; then

0 commit comments

Comments
 (0)