Skip to content

[0.86] Use macOS 26 runners for iOS E2E tests - #58057

Merged
cipolleschi merged 1 commit into
0.86-stablefrom
cipolleschi/fix-ios-e2e-macos-26-086
Aug 21, 2026
Merged

[0.86] Use macOS 26 runners for iOS E2E tests#58057
cipolleschi merged 1 commit into
0.86-stablefrom
cipolleschi/fix-ios-e2e-macos-26-086

Conversation

@cipolleschi

Copy link
Copy Markdown
Contributor

Summary:
Backports #57993 to 0.86-stable.

Moves the RNTester and template app iOS E2E jobs from macos-15-large to macos-26-large, which provides the Xcode 26 environment now required by idb-companion. The workflows use the image default Xcode so the hosted simulator platform is available.

The Maestro runner now discovers an available iPhone Pro simulator from the newest installed runtime and boots it by UDID instead of depending on the iPhone 16 Pro device name. Since this stable branch predates the Maestro flow-runner refactor from main, the conflict was resolved by preserving its existing retry behavior and adding a focused simulator-selection test.

Changelog:

[INTERNAL] [FIXED] - Run iOS E2E tests on macOS 26 runners with Xcode 26.

Test Plan:

  • git diff --check origin/0.86-stable...HEAD
  • node --check .github/workflow-scripts/maestro-ios.js
  • Prettier check for the four changed files
  • Ruby YAML parse for both changed workflows
  • yarn jest .github/workflow-scripts/__tests__/maestro-ios-test.js --runInBand --config '{"testEnvironment":"node","transform":{}}'

Summary:
Moves the RNTester and template app iOS E2E jobs from `macos-15-large` to `macos-26-large`. The new runner image ships with Xcode 26, which is now required by `idb-companion`, and the jobs use the image default Xcode so its hosted simulator platform is available. The Maestro runner discovers an available iPhone Pro simulator and boots it by UDID instead of depending on a device name tied to an older runner image.

- `test_e2e_ios_templateapp / test (Debug)` failed before the E2E tests because the explicitly selected Xcode 26.0.1 installation did not include the iOS Simulator platform. Removed the explicit Xcode selection from both E2E workflows so `macos-26-large` uses its default Xcode 26.6 installation and hosted simulator setup.
- The RNTester E2E attempts then installed `idb-companion` successfully but failed to boot the hardcoded `iPhone 16 Pro`, which is not present on the macOS 26 image. Updated the Maestro iOS runner to discover an available iPhone Pro from the newest installed runtime and boot it by UDID, with a unit test covering selection across runtimes.

[INTERNAL] [FIXED] - Run iOS E2E tests on macOS 26 runners with Xcode 26.

Pull Request resolved: #57993

Test Plan:
- `git diff --check`
- `yarn prettier --check .github/workflow-scripts/maestro-ios.js .github/workflow-scripts/__tests__/maestro-ios-test.js .github/workflows/e2e-ios-rntester.yml .github/workflows/e2e-ios-templateapp.yml`
- `ruby -ryaml -e "ARGV.each { |path| YAML.parse_file(path) }" .github/workflows/e2e-ios-rntester.yml .github/workflows/e2e-ios-templateapp.yml`
- `node --check .github/workflow-scripts/maestro-ios.js`
- `yarn jest .github/workflow-scripts/__tests__/maestro-ios-test.js --runInBand --config '{"testEnvironment":"node","transform":{}}'`

Reviewed By: alanleedev, mdvacca

Differential Revision: D116460922

Pulled By: cipolleschi

fbshipit-source-id: e769f017b874c9da76d63f19727c358719dbdbc6
(cherry picked from commit 2dd6d4b)
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 21, 2026
@cipolleschi
cipolleschi merged commit 3fa695a into 0.86-stable Aug 21, 2026
47 checks passed
@cipolleschi
cipolleschi deleted the cipolleschi/fix-ios-e2e-macos-26-086 branch August 21, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant