Skip to content

Commit b0553d7

Browse files
authored
Merge branch 'main' into fabric/a11y-role
2 parents 3517bb1 + 9ea059c commit b0553d7

File tree

2,310 files changed

+130819
-65276
lines changed

Some content is hidden

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

2,310 files changed

+130819
-65276
lines changed

.ado/ReactApple.nuspec

Lines changed: 356 additions & 0 deletions
Large diffs are not rendered by default.

.ado/apple-pr.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ stages:
2828
- template: /.ado/jobs/test-javascript.yml@self
2929
- template: /.ado/jobs/npm-publish-dry-run.yml@self
3030

31-
- stage: Integration
32-
dependsOn: []
33-
jobs:
34-
- template: /.ado/jobs/test-react-native-macos-init.yml@self
35-
- template: /.ado/jobs/react-native-test-app-integration.yml@self
31+
# https://github.com/microsoft/react-native-macos/issues/2344
32+
# The Verdaccio server consistently hangs on creation, which is required for the integration tests
33+
# - stage: Integration
34+
# dependsOn: []
35+
# jobs:
36+
# - template: /.ado/jobs/test-react-native-macos-init.yml@self
37+
# - template: /.ado/jobs/react-native-test-app-integration.yml@self

.ado/jobs/build-test-rntester.yml

Lines changed: 30 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -2,90 +2,54 @@ parameters:
22
- name: appleBuildMatrix
33
type: object
44
default:
5-
- name: macos_oldarch_jsc
5+
- name: macos_debug_oldarch_jsc
66
friendly_name: 'macOS, Old Arch, JSC'
77
sdk: macosx
8+
configuration: Debug
89
scheme: RNTester-macOS
910
packager_platform: 'macos'
1011
new_arch_enabled: '0'
1112
use_hermes: '0'
12-
- name: macos_newarch_jsc
13+
- name: macos_debug_newarch_jsc
1314
friendly_name: 'macOS, New Arch, JSC'
1415
sdk: macosx
16+
configuration: Debug
1517
scheme: RNTester-macOS
1618
packager_platform: 'macos'
1719
new_arch_enabled: '1'
1820
use_hermes: '0'
19-
# - name: macos_oldarch_hermes
20-
# friendly_name: 'macOS, Old Arch, Hermes'
21-
# sdk: macosx
22-
# scheme: RNTester-macOS
23-
# packager_platform: 'macos'
24-
# new_arch_enabled: '1'
25-
# use_hermes: '1'
26-
# - name: macos_newarch_hermes
27-
# friendly_name: 'macOS, New Arch, Hermes'
28-
# sdk: macosx
29-
# scheme: RNTester-macOS
30-
# packager_platform: 'macos'
31-
# new_arch_enabled: '1'
32-
# use_hermes: '1'
33-
- name: ios_oldarch_jsc
21+
- name: ios_debug_oldarch_jsc
3422
friendly_name: 'iOS, Old Arch, JSC'
3523
sdk: iphonesimulator
24+
configuration: Debug
3625
scheme: RNTester
3726
packager_platform: 'ios'
3827
new_arch_enabled: '0'
3928
use_hermes: '0'
40-
- name: ios_newarch_jsc
29+
- name: ios_debug_newarch_jsc
4130
friendly_name: 'iOS, New Arch, JSC'
4231
sdk: iphonesimulator
32+
configuration: Debug
4333
scheme: RNTester
4434
packager_platform: 'ios'
4535
new_arch_enabled: '1'
4636
use_hermes: '0'
47-
# - name: ios_oldarch_hermes
48-
# friendly_name: 'iOS, Old Arch, Hermes'
49-
# sdk: iphonesimulator
50-
# scheme: RNTester
51-
# packager_platform: 'ios'
52-
# new_arch_enabled: '1'
53-
# use_hermes: '1'
54-
# - name: ios_newarch_hermes
55-
# friendly_name: 'iOS, New Arch, Hermes'
56-
# sdk: iphonesimulator
57-
# scheme: RNTester
58-
# packager_platform: 'ios'
59-
# new_arch_enabled: '1'
60-
# use_hermes: '1'
61-
- name: xros_oldarch_jsc
37+
- name: xros_debug_oldarch_jsc
6238
friendly_name: 'xrOS, Old Arch, JSC'
6339
sdk: xrsimulator
40+
configuration: Debug
6441
scheme: RNTester-visionOS
6542
packager_platform: 'ios'
6643
new_arch_enabled: '0'
6744
use_hermes: '0'
68-
- name: xros_newarch_jsc
45+
- name: xros_debug_newarch_jsc
6946
friendly_name: 'xrOS, New Arch, JSC'
7047
sdk: xrsimulator
48+
configuration: Debug
7149
scheme: RNTester-visionOS
7250
packager_platform: 'ios'
7351
new_arch_enabled: '1'
7452
use_hermes: '0'
75-
# - name: xros_oldarch_hermes
76-
# friendly_name: 'xrOS, Old Arch, Hermes'
77-
# sdk: xrsimulator
78-
# scheme: RNTester-visionOS
79-
# packager_platform: 'ios'
80-
# new_arch_enabled: '1'
81-
# use_hermes: '1'
82-
# - name: xros_newarch_hermes
83-
# friendly_name: 'xrOS, New Arch, Hermes'
84-
# sdk: xrsimulator
85-
# scheme: RNTester-visionOS
86-
# packager_platform: 'ios'
87-
# new_arch_enabled: '1'
88-
# use_hermes: '1'
8953

9054
jobs:
9155
- ${{ each slice in parameters.appleBuildMatrix }}:
@@ -98,68 +62,23 @@ jobs:
9862
steps:
9963
- template: /.ado/templates/apple-tools-setup.yml@self
10064

101-
- ${{ if in(slice.sdk, 'xros', 'xrsimulator') }}:
102-
- script: |
103-
set -eox pipefail
104-
# https://github.com/actions/runner-images/issues/10559
105-
sudo xcodebuild -runFirstLaunch
106-
sudo xcrun simctl list
107-
sudo xcodebuild -downloadPlatform visionOS
108-
sudo xcodebuild -runFirstLaunch
109-
displayName: Download visionOS SDK
110-
11165
- script: |
11266
yarn install
113-
displayName: Install npm dependencies
114-
115-
- script: |
116-
set -eox pipefail
117-
bundle install
118-
bundle exec pod install --verbose
119-
env:
120-
RCT_NEW_ARCH_ENABLED: ${{ slice.new_arch_enabled }}
121-
USE_HERMES: ${{ slice.use_hermes }}
122-
workingDirectory: packages/rn-tester
123-
displayName: Install Pods
124-
125-
- script: |
126-
set -eox pipefail
127-
.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} build
128-
env:
129-
CCACHE_DISABLE: 1
130-
displayName: Build ${{ slice.scheme }}
131-
132-
# Skip testing on visionOS via the conditions below
133-
134-
- ${{ if ne(slice.scheme, 'RNTester-visionOS') }}:
135-
- task: ShellScript@2
136-
displayName: Setup packager and WebSocket test server
137-
inputs:
138-
scriptPath: .ado/scripts/ado-test-setup.sh
139-
disableAutoCwd: true
140-
cwd: ''
141-
142-
- script: |
143-
echo Preparing the packager for platform $PLATFORM
144-
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
145-
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true&minify=false" -o /dev/null
146-
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
147-
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
148-
env:
149-
PLATFORM: ${{ slice.packager_platform }}
150-
displayName: Fetch JS bundles from dev server
151-
152-
- script: |
153-
set -eox pipefail
154-
.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} test
155-
env:
156-
CCACHE_DISABLE: 1
157-
displayName: Test ${{ slice.scheme }}
158-
159-
- task: ShellScript@2
160-
displayName: Cleanup packager and WebSocket test server
161-
inputs:
162-
scriptPath: .ado/scripts/ado-test-cleanup.sh
163-
disableAutoCwd: true
164-
cwd: ''
165-
condition: always()
67+
displayName: yarn install
68+
69+
- template: /.ado/templates/build-rntester-steps.yml@self
70+
parameters:
71+
sdk: ${{ slice.sdk }}
72+
configuration: ${{ slice.configuration }}
73+
scheme: ${{ slice.scheme }}
74+
new_arch_enabled: ${{ slice.new_arch_enabled }}
75+
use_hermes: ${{ slice.use_hermes }}
76+
77+
# https://github.com/microsoft/react-native-macos/issues/2297
78+
# Skip native tests as they tend to be flaky
79+
# - template: /.ado/templates/test-rntester-steps.yml@self
80+
# parameters:
81+
# sdk: ${{ slice.sdk }}
82+
# configuration: ${{ slice.configuration }}
83+
# scheme: ${{ slice.scheme }}
84+
# packager_platform: ${{ slice.packager_platform }}

.ado/jobs/npm-publish-dry-run.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,8 @@ jobs:
33
displayName: NPM Publish Dry Run
44
pool:
55
vmImage: $(VmImageApple)
6-
timeoutInMinutes: 60 # how long to run the job before automatically cancelling
7-
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them
6+
timeoutInMinutes: 60
7+
cancelTimeoutInMinutes: 5
88
steps:
9-
- checkout: self # self represents the repo where the initial Pipelines YAML file was found
10-
clean: true # whether to fetch clean each time
11-
# fetchDepth: 2 # the depth of commits to ask Git to fetch
12-
lfs: false # whether to download Git-LFS files
13-
submodules: recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
14-
persistCredentials: true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
9+
- template: /.ado/templates/npm-publish-steps.yml@self
1510

16-
- template: /.ado/templates/apple-steps-publish.yml@self
17-
parameters:
18-
build_type: 'dry-run'

.ado/jobs/npm-publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
jobs:
2+
- job: NPMPublish
3+
displayName: NPM Publish
4+
pool:
5+
name: cxeiss-ubuntu-20-04-large
6+
image: cxe-ubuntu-20-04-1es-pt
7+
os: linux
8+
variables:
9+
- name: BUILDSECMON_OPT_IN
10+
value: true
11+
timeoutInMinutes: 90
12+
cancelTimeoutInMinutes: 5
13+
templateContext:
14+
outputs:
15+
- output: pipelineArtifact
16+
targetPath: $(System.DefaultWorkingDirectory)
17+
artifactName: github-npm-js-publish
18+
steps:
19+
- template: /.ado/templates/npm-publish-steps.yml@self

0 commit comments

Comments
 (0)