ci: re-enable react-native-test-app integration test using local pack#2941
Merged
Saadnajmi merged 10 commits intoJul 10, 2026
Merged
Conversation
2f234fd to
bcb451c
Compare
1 task
54991be to
43ff8c1
Compare
Replace Verdaccio with local `yarn pack` + tarball install to fix the hanging issue (microsoft#2344). Follows the same pattern already used by the react-native-macos-init integration test. Also moves and converts .ado/scripts/export-versions.mjs to .github/scripts/export-versions.mts with GitHub Actions output support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ructure - Use `yarn workspace react-native-test-app set-react-version` instead of root-level `npm run set-react-version` (script moved to workspace) - Update paths from `example/` to `packages/example-macos/` - Update xcodebuild script path from `scripts/build/` to `scripts/` Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ll requirement The yarn workspace command requires dependencies to be installed first. Run the script directly with node from packages/app instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Yarn auto-enables hardened mode on public PRs, which quarantines @react-native-macos/virtualized-lists. Disable it for this step since we're installing known packages from our own tarball. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The test-app's .yarnrc.yml sets npmMinimalAgeGate: 7d which quarantines recently published packages like @react-native-macos/virtualized-lists. Override with YARN_NPM_MINIMAL_AGE_GATE=0. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The set-react-version script updates packages/app/package.json but not packages/example-macos/package.json, causing two copies of react-native-macos (0.81.5 from npm + tarball). Add a root-level yarn resolution to force all workspaces to use the local tarball. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The pnpm linker creates separate virtual stores per workspace. Override the dependency in both root resolutions and packages/example-macos to ensure a single copy of react-native-macos from the local tarball. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43ff8c1 to
5dde28f
Compare
…icate The react-native-test-app tree carries both @types/react 19.1.x (example-macos) and 19.2.x (app), both of which satisfy react-native-macos's '^19.1.0' peer. Under Yarn's pnpm nodeLinker this virtualizes react-native-macos twice, and the metro duplicate-dependency checker aborts the macOS bundle with 'found 2 copies'. Pin @types/react to ~19.1.0 so react-native-macos resolves to a single virtual. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tido64
reviewed
Jul 9, 2026
Replace the fs.readFileSync + JSON.parse of packages/react-native/package.json with a JSON module import, per review feedback. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
react-native-test-app#2843 fixed set-react-version so it can run directly from a platform example package (added an fs.existsSync guard and pointed the example-macos script at ../app/scripts/internal/set-react-version.mts). Run it from packages/example-macos with the tarball override so the script itself sets example-macos's react-native-macos dependency and resets root resolutions, replacing the hand-rolled 'Force react-native-macos in all workspaces' step. The @types/react pin stays: it collapses the duplicate react-native-macos virtual (19.1.x vs 19.2.x peers), which set-react-version does not address. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tido64
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
yarn pack+ tarball install, following the same pattern used by the react-native-macos-init integration testexport-versions.mjsscript usageTest plan
react-native-test-app-integrationjob on a-stablebranch PRfile:protocol override🤖 Generated with Claude Code