Skip to content

Commit cd8fcba

Browse files
authored
test(react-native): fix react-navigation tests and dependencies (#2650)
1 parent 1ed92a9 commit cd8fcba

79 files changed

Lines changed: 252 additions & 111 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildkite/basic/react-native-android-full-pipeline.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ steps:
1919
RN_VERSION: "{{matrix.reactnative}}"
2020
RCT_NEW_ARCH_ENABLED: "0"
2121
BUILD_ANDROID: "true"
22+
REACT_NAVIGATION: "true"
2223
artifact_paths:
2324
- "test/react-native/features/fixtures/generated/old-arch/**/reactnative.apk"
2425
commands:
@@ -51,17 +52,18 @@ steps:
5152
- exit_status: "*"
5253
limit: 1
5354

54-
- label: ':android: Build RN {{matrix}} test fixture APK (New Arch)'
55+
- label: ':android: Build RN {{matrix.reactnative}} test fixture APK (New Arch)'
5556
key: "build-react-native-android-fixture-new-arch-full"
5657
timeout_in_minutes: 15
5758
agents:
5859
queue: macos-15
5960
env:
6061
JAVA_VERSION: "17"
6162
NODE_VERSION: "22"
62-
RN_VERSION: "{{matrix}}"
63+
RN_VERSION: "{{matrix.reactnative}}"
6364
RCT_NEW_ARCH_ENABLED: "1"
6465
BUILD_ANDROID: "true"
66+
REACT_NAVIGATION: "{{matrix.reactnavigation}}"
6567
artifact_paths:
6668
- "test/react-native/features/fixtures/generated/new-arch/**/reactnative.apk"
6769
commands:
@@ -72,12 +74,19 @@ steps:
7274
- exit_status: "*"
7375
limit: 1
7476
matrix:
75-
- "0.72"
76-
- "0.74"
77-
- "0.76"
78-
- "0.78"
79-
- "0.80"
80-
- "0.81"
77+
setup:
78+
reactnative:
79+
- "0.74"
80+
- "0.76"
81+
- "0.78"
82+
- "0.80"
83+
- "0.81"
84+
reactnavigation:
85+
- "true"
86+
adjustments:
87+
- with:
88+
reactnative: "0.72"
89+
reactnavigation: "false"
8190

8291
- label: ':android: Build react-native-navigation {{matrix}} test fixture APK (Old Arch)'
8392
skip: true # Skipped pending PLAT-15027
@@ -165,6 +174,7 @@ steps:
165174
env:
166175
RN_VERSION: "{{matrix}}"
167176
RCT_NEW_ARCH_ENABLED: "0"
177+
REACT_NAVIGATION: "true"
168178
concurrency: 25
169179
concurrency_group: "bitbar"
170180
concurrency_method: eager
@@ -181,19 +191,19 @@ steps:
181191
# current latest version (v7.40.1) of react-native-navigation's autolinking tool doesn't support RN 0.73+,
182192
# causing a build failure - see https://github.com/wix/react-native-navigation/issues/7821
183193
# TODO: Investigate and try to re-enable when we add tests for more recent React Native versions
184-
- label: ":bitbar: :android: RN {{matrix}} Android 12 (New Arch) end-to-end tests"
194+
- label: ":bitbar: :android: RN {{matrix.reactnative}} Android 12 (New Arch) end-to-end tests"
185195
depends_on: "build-react-native-android-fixture-new-arch-full"
186196
timeout_in_minutes: 30
187197
plugins:
188198
artifacts#v1.9.0:
189-
download: "test/react-native/features/fixtures/generated/new-arch/{{matrix}}/reactnative.apk"
199+
download: "test/react-native/features/fixtures/generated/new-arch/{{matrix.reactnative}}/reactnative.apk"
190200
upload: ./test/react-native/maze_output/**/*
191201
docker-compose#v4.12.0:
192202
pull: react-native-maze-runner
193203
run: react-native-maze-runner
194204
service-ports: true
195205
command:
196-
- --app=/app/features/fixtures/generated/new-arch/{{matrix}}/reactnative.apk
206+
- --app=/app/features/fixtures/generated/new-arch/{{matrix.reactnative}}/reactnative.apk
197207
- --farm=bb
198208
- --device=ANDROID_12
199209
- --appium-version=1.22
@@ -213,17 +223,25 @@ steps:
213223
limit: 2
214224
env:
215225
RCT_NEW_ARCH_ENABLED: "1"
216-
RN_VERSION: "{{matrix}}"
226+
RN_VERSION: "{{matrix.reactnative}}"
227+
REACT_NAVIGATION: "{{matrix.reactnavigation}}"
217228
concurrency: 25
218229
concurrency_group: "bitbar"
219230
concurrency_method: eager
220231
matrix:
221-
- "0.72"
222-
- "0.74"
223-
- "0.76"
224-
- "0.78"
225-
- "0.80"
226-
- "0.81"
232+
setup:
233+
reactnative:
234+
- "0.74"
235+
- "0.76"
236+
- "0.78"
237+
- "0.80"
238+
- "0.81"
239+
reactnavigation:
240+
- "true"
241+
adjustments:
242+
- with:
243+
reactnative: "0.72"
244+
reactnavigation: "false"
227245

228246
- label: ":bitbar: :android: react-native-navigation {{matrix}} Android 12 (Old Arch) end-to-end tests"
229247
skip: true # Skipped pending PLAT-15027

.buildkite/basic/react-native-android-pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ steps:
1515
RN_VERSION: "{{matrix}}"
1616
RCT_NEW_ARCH_ENABLED: "1"
1717
BUILD_ANDROID: "true"
18+
REACT_NAVIGATION: "true"
1819
artifact_paths:
1920
- "test/react-native/features/fixtures/generated/new-arch/**/reactnative.apk"
2021
commands:
@@ -63,6 +64,7 @@ steps:
6364
env:
6465
RCT_NEW_ARCH_ENABLED: "1"
6566
RN_VERSION: "{{matrix}}"
67+
REACT_NAVIGATION: "true"
6668
concurrency: 25
6769
concurrency_group: "bitbar"
6870
concurrency_method: eager

.buildkite/basic/react-native-ios-full-pipeline.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ steps:
2020
RCT_NEW_ARCH_ENABLED: "0"
2121
BUILD_IOS: "true"
2222
XCODE_VERSION: "16.2.0"
23+
REACT_NAVIGATION: "true"
2324
artifact_paths:
2425
- "test/react-native/features/fixtures/generated/old-arch/**/output/reactnative.ipa"
2526
commands:
@@ -48,29 +49,37 @@ steps:
4849
- exit_status: "*"
4950
limit: 1
5051

51-
- label: ':mac: Build RN {{matrix}} test fixture ipa (New Arch)'
52+
- label: ':mac: Build RN {{matrix.reactnative}} test fixture ipa (New Arch)'
5253
key: "build-react-native-ios-fixture-new-arch-full"
5354
timeout_in_minutes: 30
5455
agents:
5556
queue: "macos-15"
5657
env:
5758
NODE_VERSION: "22"
58-
RN_VERSION: "{{matrix}}"
59+
RN_VERSION: "{{matrix.reactnative}}"
5960
RCT_NEW_ARCH_ENABLED: "1"
6061
BUILD_IOS: "true"
6162
XCODE_VERSION: "16.2.0"
63+
REACT_NAVIGATION: "{{matrix.reactnavigation}}"
6264
artifact_paths:
6365
- "test/react-native/features/fixtures/generated/new-arch/**/output/reactnative.ipa"
6466
commands:
6567
- "bundle install"
6668
- "node scripts/generate-react-native-fixture.js"
6769
matrix:
68-
- "0.72"
69-
- "0.74"
70-
- "0.76"
71-
- "0.78"
72-
- "0.80"
73-
- "0.81"
70+
setup:
71+
reactnative:
72+
- "0.74"
73+
- "0.76"
74+
- "0.78"
75+
- "0.80"
76+
- "0.81"
77+
reactnavigation:
78+
- "true"
79+
adjustments:
80+
- with:
81+
reactnative: "0.72"
82+
reactnavigation: "false"
7483
retry:
7584
automatic:
7685
- exit_status: "*"
@@ -162,6 +171,7 @@ steps:
162171
env:
163172
RN_VERSION: "{{matrix}}"
164173
RCT_NEW_ARCH_ENABLED: "0"
174+
REACT_NAVIGATION: "true"
165175
concurrency: 25
166176
concurrency_group: "bitbar"
167177
concurrency_method: eager
@@ -175,19 +185,19 @@ steps:
175185
- "0.80"
176186
- "0.81"
177187

178-
- label: ":bitbar: :mac: RN {{matrix}} iOS (New Arch) end-to-end tests"
188+
- label: ":bitbar: :mac: RN {{matrix.reactnative}} iOS (New Arch) end-to-end tests"
179189
depends_on: "build-react-native-ios-fixture-new-arch-full"
180190
timeout_in_minutes: 60
181191
plugins:
182192
artifacts#v1.9.0:
183-
download: "test/react-native/features/fixtures/generated/new-arch/{{matrix}}/output/reactnative.ipa"
193+
download: "test/react-native/features/fixtures/generated/new-arch/{{matrix.reactnative}}/output/reactnative.ipa"
184194
upload: ./test/react-native/maze_output/**/*
185195
docker-compose#v4.12.0:
186196
pull: react-native-maze-runner
187197
run: react-native-maze-runner
188198
service-ports: true
189199
command:
190-
- --app=/app/features/fixtures/generated/new-arch/{{matrix}}/output/reactnative.ipa
200+
- --app=/app/features/fixtures/generated/new-arch/{{matrix.reactnative}}/output/reactnative.ipa
191201
- --farm=bb
192202
- --device=IOS_15
193203
- --fail-fast
@@ -200,7 +210,8 @@ steps:
200210
api-token-env-name: "REACT_NATIVE_BUILDKITE_ANALYTICS_TOKEN"
201211
env:
202212
RCT_NEW_ARCH_ENABLED: "1"
203-
RN_VERSION: "{{matrix}}"
213+
RN_VERSION: "{{matrix.reactnative}}"
214+
REACT_NAVIGATION: "{{matrix.reactnavigation}}"
204215
retry:
205216
manual:
206217
permit_on_passed: true
@@ -211,12 +222,19 @@ steps:
211222
concurrency_group: "bitbar"
212223
concurrency_method: eager
213224
matrix:
214-
- "0.72"
215-
- "0.74"
216-
- "0.76"
217-
- "0.78"
218-
- "0.80"
219-
- "0.81"
225+
setup:
226+
reactnative:
227+
- "0.74"
228+
- "0.76"
229+
- "0.78"
230+
- "0.80"
231+
- "0.81"
232+
reactnavigation:
233+
- "true"
234+
adjustments:
235+
- with:
236+
reactnative: "0.72"
237+
reactnavigation: "false"
220238

221239
# current latest version (v7.40.1) of react-native-navigation's autolinking tool doesn't currently support RN 0.73+,
222240
# causing a build failure - see https://github.com/wix/react-native-navigation/issues/7821

.buildkite/basic/react-native-ios-pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ steps:
1919
RCT_NEW_ARCH_ENABLED: "1"
2020
BUILD_IOS: "true"
2121
XCODE_VERSION: "16.2.0"
22+
REACT_NAVIGATION: "true"
2223
artifact_paths:
2324
- "test/react-native/features/fixtures/generated/new-arch/**/output/reactnative.ipa"
2425
commands:
@@ -59,6 +60,7 @@ steps:
5960
env:
6061
RCT_NEW_ARCH_ENABLED: "1"
6162
RN_VERSION: "{{matrix}}"
63+
REACT_NAVIGATION: "true"
6264
retry:
6365
manual:
6466
permit_on_passed: true

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ services:
121121
BITBAR_ACCESS_KEY:
122122
HERMES:
123123
RN_VERSION:
124+
REACT_NAVIGATION:
124125
REACT_NATIVE_NAVIGATION:
125126
MAZE_REPEATER_API_KEY: "${MAZE_REPEATER_API_KEY_RN:-}"
126127
MAZE_HUB_REPEATER_API_KEY: "${MAZE_HUB_REPEATER_API_KEY_RN:-}"

0 commit comments

Comments
 (0)