Skip to content

Commit b7f45f0

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/semver-7.7.1
2 parents 170d4f3 + ba87750 commit b7f45f0

File tree

250 files changed

+15365
-2432
lines changed

Some content is hidden

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

250 files changed

+15365
-2432
lines changed

.ado/jobs/cli-init-windows.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ parameters:
2222
platform: x64
2323
additionalRunArguments: --no-autolink
2424
useNuGet: true
25+
publishNuGet: true
2526
- Name: FabricX86Debug
2627
template: cpp-app
2728
configuration: Debug
@@ -72,16 +73,6 @@ parameters:
7273
configuration: Debug
7374
platform: x86
7475
additionalInitArguments: --namespace MyCompany.MyApplication.MyComponent
75-
- Name: PaperLibX86DebugCpp
76-
template: old/uwp-cpp-lib
77-
configuration: Debug
78-
platform: x86
79-
additionalRunArguments: --no-autolink --no-deploy
80-
- Name: PaperLibX86DebugCs
81-
template: old/uwp-cpp-lib
82-
configuration: Debug
83-
platform: x86
84-
additionalRunArguments: --no-autolink --no-deploy
8576
- Name: PaperX86DebugCppChakra
8677
template: old/uwp-cpp-app
8778
configuration: Debug
@@ -118,11 +109,14 @@ parameters:
118109
platform: x64
119110
additionalRunArguments: --no-autolink
120111
useNuGet: true
112+
publishNuGet: true
113+
useExperimentalWinUI3: true
121114
- Name: PaperX64ReleaseCpp
122115
template: old/uwp-cpp-app
123116
configuration: Release
124117
platform: x64
125118
runWack: true
119+
useExperimentalWinUI3: true
126120
- BuildEnvironment: Continuous
127121
Matrix:
128122
- Name: FabricX64Debug
@@ -137,6 +131,7 @@ parameters:
137131
platform: x64
138132
additionalRunArguments: --no-autolink
139133
useNuGet: true
134+
publishNuGet: true
140135
- Name: FabricX86Debug
141136
template: cpp-app
142137
configuration: Debug
@@ -148,6 +143,7 @@ parameters:
148143
configuration: Release
149144
platform: x86
150145
useNuGet: true
146+
publishNuGet: true
151147
- Name: FabricArm64Debug
152148
template: cpp-app
153149
configuration: Debug
@@ -160,6 +156,7 @@ parameters:
160156
platform: ARM64
161157
additionalRunArguments: --no-autolink --no-deploy
162158
useNuGet: true
159+
publishNuGet: true
163160
- Name: FabricLibX64Debug
164161
template: cpp-lib
165162
configuration: Debug
@@ -216,16 +213,6 @@ parameters:
216213
configuration: Debug
217214
platform: x86
218215
additionalInitArguments: --namespace MyCompany.MyApplication.MyComponent
219-
- Name: PaperLibX86DebugCpp
220-
template: old/uwp-cpp-lib
221-
configuration: Debug
222-
platform: x86
223-
additionalRunArguments: --no-autolink --no-deploy
224-
- Name: PaperLibX86DebugCs
225-
template: old/uwp-cs-lib
226-
configuration: Debug
227-
platform: x86
228-
additionalRunArguments: --no-autolink --no-deploy
229216
- Name: PaperX86DebugCppChakra
230217
template: old/uwp-cpp-app
231218
configuration: Debug
@@ -343,3 +330,5 @@ jobs:
343330
buildEnvironment: ${{ parameters.buildEnvironment }}
344331
useChakra: ${{ coalesce(matrix.useChakra, false) }}
345332
useNuGet: ${{ coalesce(matrix.useNuGet, false) }}
333+
useExperimentalWinUI3: ${{ coalesce(matrix.useExperimentalWinUI3, false) }}
334+
publishNuGet: ${{ coalesce(matrix.publishNuGet, false) }}

.ado/jobs/desktop.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ parameters:
3535
- Name: X64Debug
3636
BuildConfiguration: Debug
3737
BuildPlatform: x64
38+
UseExperimentalWinUI3: true
3839
- BuildEnvironment: Continuous
3940
Matrix:
4041
- Name: X64Debug
@@ -75,18 +76,34 @@ jobs:
7576
#12714 - Disable for first deployment of test website.
7677
# RNTesterIntegrationTests::WebSocket
7778
# RNTesterIntegrationTests::WebSocketBlob
79+
# RNTesterIntegrationTests::WebSocketMultipleSend
7880
#14217 - Reneable RNTesterIntegrationTests
7981
# RNTesterIntegrationTests::Dummy
8082
# RNTesterIntegrationTests::Fetch
8183
# RNTesterIntegrationTests::XHRSample
8284
# RNTesterIntegrationTests::Blob
8385
# RNTesterIntegrationTests::Logging
86+
# - CI agents show the following server-side errors (local runs succeed):
87+
# - [0x801901f4] Internal server error (500).
88+
# - [0x800710dd] The operation identifier is not valid.
89+
# WebSocketIntegrationTest::ConnectClose)&
90+
# WebSocketIntegrationTest::ConnectNoClose)&
91+
# WebSocketIntegrationTest::SendReceiveClose)&
92+
# WebSocketIntegrationTest::SendConsecutive)&
93+
# WebSocketIntegrationTest::SendReceiveLargeMessage)&
94+
# WebSocketIntegrationTest::SendReceiveSsl)&
8495
- name: Desktop.IntegrationTests.Filter
8596
value: >
8697
(FullyQualifiedName!=RNTesterIntegrationTests::IntegrationTestHarness)&
8798
(FullyQualifiedName!=RNTesterIntegrationTests::WebSocket)&
8899
(FullyQualifiedName!=RNTesterIntegrationTests::WebSocketBlob)&
89-
(FullyQualifiedName!=WebSocketIntegrationTest::SendReceiveSsl)&
100+
(FullyQualifiedName!=RNTesterIntegrationTests::WebSocketMultipleSend)&
101+
(FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::ConnectClose)&
102+
(FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::ConnectNoClose)&
103+
(FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::SendReceiveClose)&
104+
(FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::SendConsecutive)&
105+
(FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::SendReceiveLargeMessage)&
106+
(FullyQualifiedName!=Microsoft::React::Test::WebSocketIntegrationTest::SendReceiveSsl)&
90107
(FullyQualifiedName!=Microsoft::React::Test::HttpOriginPolicyIntegrationTest)&
91108
(FullyQualifiedName!=RNTesterIntegrationTests::Dummy)&
92109
(FullyQualifiedName!=RNTesterIntegrationTests::Fetch)&
@@ -151,6 +168,11 @@ jobs:
151168
Write-Host "##vso[task.setvariable variable=Desktop.IntegrationTests.Filter]$newValue"
152169
displayName: Update Desktop.IntegrationTests.Filter to exclude RNTester integration tests
153170
171+
- ${{ if eq(matrix.UseExperimentalWinUI3, true) }}:
172+
- template: ../templates/enable-experimental-winui3.yml
173+
parameters:
174+
workingDir: vnext
175+
154176
- template: ../templates/msbuild-sln.yml
155177
parameters:
156178
solutionDir: vnext

.ado/jobs/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
- template: ../templates/set-experimental-feature.yml
7272
parameters:
73-
package: packages/e2e-test-app
73+
workingDir: packages/e2e-test-app/windows
7474
feature: UseHermes
7575
${{ if eq(matrix.UseChakra, true) }}:
7676
value: false

.ado/jobs/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484

8585
- template: ../templates/set-experimental-feature.yml
8686
parameters:
87-
package: packages/integration-test-app
87+
workingDir: packages/integration-test-app/windows
8888
feature: UseHermes
8989
${{ if eq(matrix.UseChakra, true) }}:
9090
value: false

.ado/jobs/playground.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -142,22 +142,9 @@ jobs:
142142
certificatePassword: ${{ parameters.certificatePassword }}
143143

144144
- ${{ if eq(matrix.UseExperimentalWinUI3, true) }}:
145-
- template: ../templates/set-experimental-feature.yml
145+
- template: ../templates/enable-experimental-winui3.yml
146146
parameters:
147-
package: packages\playground
148-
feature: UseExperimentalWinUI3
149-
value: true
150-
151-
- task: PowerShell@2
152-
displayName: Enable the internal WinAppSDK Feed
153-
inputs:
154-
targetType: filePath # filePath | inline
155-
filePath: $(Build.SourcesDirectory)\vnext\Scripts\EnableInternalWinAppSDKFeed.ps1
156-
157-
- task: NuGetAuthenticate@1
158-
displayName: 'NuGet Authenticate Internal WinAppSDK Feed'
159-
inputs:
160-
nuGetServiceConnections: 'WinAppSDK Experimental NuGet for RNW'
147+
workingDir: packages\playground\windows
161148

162149
# NuGet ignores packages.config if it detects <PackageReference>.
163150
# Use restore packages.config directly to keep compabitility with ReactNativePicker.

.ado/jobs/universal.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@
5656
BuildConfiguration: Release
5757
BuildPlatform: x64
5858
UseFabric: false
59+
UseExperimentalWinUI3: true
5960
- Name: X64ReleaseFabric
6061
BuildConfiguration: Release
6162
BuildPlatform: x64
6263
UseFabric: true
64+
UseExperimentalWinUI3: true
6365
- Name: X86ReleaseFabric # Specifically built so binskim / tests get run on fabric
6466
BuildConfiguration: Release
6567
BuildPlatform: x86
6668
UseFabric: true
69+
UseExperimentalWinUI3: true
6770
- BuildEnvironment: Continuous
6871
Matrix:
6972
- Name: X64Debug
@@ -145,14 +148,16 @@
145148

146149
- template: ../templates/apply-published-version-vars.yml
147150

148-
- ${{ if eq(matrix.UseFabric, true) }}:
149-
- template: ../templates/enable-fabric-experimental-feature.yml
151+
- ${{ if eq(matrix.UseExperimentalWinUI3, true) }}:
152+
- template: ../templates/enable-experimental-winui3.yml
153+
parameters:
154+
workingDir: vnext
150155

151156
- template: ../templates/msbuild-sln.yml
152157
parameters:
153158
solutionDir: vnext
154159
${{ if eq(matrix.UseFabric, true) }}:
155-
solutionName: Microsoft.ReactNative.CppOnly.slnf
160+
solutionName: Microsoft.ReactNative.NewArch.sln
156161
${{ else }}:
157162
solutionName: Microsoft.ReactNative.sln
158163
buildPlatform: ${{ matrix.BuildPlatform }}
@@ -193,6 +198,7 @@
193198
Microsoft.ReactNative.Cxx.UnitTests\**
194199
Microsoft.ReactNative.IntegrationTests\**
195200
Microsoft.ReactNative.ComponentTests\**
201+
Microsoft.ReactNative.CsWinRT\**
196202
Microsoft.ReactNative.Managed\**
197203
Microsoft.ReactNative.Managed.CodeGen\**
198204
Microsoft.ReactNative.Managed.CodeGen.UnitTests\**

.ado/publish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ extends:
195195

196196
- template: .ado/templates/configure-git.yml@self
197197

198-
- script: |
199-
echo "##vso[task.setvariable variable=SkipNpmPublishArgs]--no-publish"
198+
- pwsh: |
199+
Write-Host "##vso[task.setvariable variable=SkipNpmPublishArgs]--no-publish"
200200
displayName: Enable No-Publish (npm)
201201
condition: ${{ parameters.skipNpmPublish }}
202202
203-
- script: |
204-
echo "##vso[task.setvariable variable=SkipGitPushPublishArgs]--no-push"
203+
- pwsh: |
204+
Write-Host "##vso[task.setvariable variable=SkipGitPushPublishArgs]--no-push"
205205
displayName: Enable No-Publish (git)
206206
condition: ${{ parameters.skipGitPush }}
207207
@@ -316,14 +316,11 @@ extends:
316316

317317
- template: .ado/templates/apply-published-version-vars.yml@self
318318

319-
- ${{ if eq(matrix.UseFabric, true) }}:
320-
- template: .ado/templates/enable-fabric-experimental-feature.yml@self
321-
322319
- template: .ado/templates/msbuild-sln.yml@self
323320
parameters:
324321
solutionDir: vnext
325322
${{ if eq(matrix.UseFabric, true) }}:
326-
solutionName: Microsoft.ReactNative.CppOnly.slnf
323+
solutionName: Microsoft.ReactNative.NewArch.sln
327324
${{ else }}:
328325
solutionName: Microsoft.ReactNative.sln
329326
buildPlatform: ${{ matrix.BuildPlatform }}
@@ -349,6 +346,7 @@ extends:
349346
Microsoft.ReactNative\**
350347
Microsoft.ReactNative.Managed\**
351348
Microsoft.ReactNative.Managed.CodeGen\**
349+
Microsoft.ReactNative.CsWinRT\**
352350
353351
- template: .ado/templates/component-governance.yml@self
354352

@@ -433,7 +431,6 @@ extends:
433431
- platform: ARM64
434432
configuration: Debug
435433

436-
437434
- template: .ado/templates/prep-and-pack-nuget.yml@self
438435
parameters:
439436
artifactName: Desktop

.ado/release.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extends:
4040
artifactName: 'ReactWindows-final-nuget'
4141
targetPath: '$(Pipeline.Workspace)/ReactWindows-final-nuget'
4242
steps:
43+
- checkout: none
4344
- task: NuGetToolInstaller@1
4445
displayName: 'Use NuGet '
4546
- task: NuGetAuthenticate@1
@@ -50,7 +51,7 @@ extends:
5051
displayName: NuGet push (react-native)
5152
inputs:
5253
script: nuget.exe push *.nupkg -ApiKey AzureArtifacts -Source https://pkgs.dev.azure.com/ms/_packaging/react-native/nuget/v3/index.json -NonInteractive -Verbosity Detailed -SkipDuplicate -NoSymbols
53-
workingDirectory: $(System.DefaultWorkingDirectory)/Publish/ReactWindows-final-nuget
54+
workingDirectory: $(Pipeline.Workspace)/ReactWindows-final-nuget
5455
- stage: PushToPublicAdoStage
5556
displayName: ADO - react-native-public
5657
jobs:
@@ -65,6 +66,7 @@ extends:
6566
artifactName: 'ReactWindows-final-nuget'
6667
targetPath: '$(Pipeline.Workspace)/ReactWindows-final-nuget'
6768
steps:
69+
- checkout: none
6870
- task: NuGetToolInstaller@1
6971
displayName: 'Use NuGet '
7072
- task: NuGetAuthenticate@1
@@ -75,15 +77,14 @@ extends:
7577
displayName: NuGet push (react-native-public)
7678
inputs:
7779
script: nuget.exe push *.nupkg -ApiKey AzureArtifacts -Source https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json -NonInteractive -Verbosity Detailed -SkipDuplicate -NoSymbols
78-
workingDirectory: $(System.DefaultWorkingDirectory)/Publish/ReactWindows-final-nuget
80+
workingDirectory: $(Pipeline.Workspace)/ReactWindows-final-nuget
7981
- stage: PushToNuGetStage
8082
displayName: nuget.org - Push nuget packages
8183
variables:
8284
- group: RNW Secrets
8385
jobs:
8486
- job: PushPackages
8587
displayName: Push packages
86-
condition: and(succeeded(), endsWith(variables['Build.SourceBranchName'],'-stable'))
8788
timeoutInMinutes: 0
8889
templateContext:
8990
inputs:
@@ -92,15 +93,20 @@ extends:
9293
artifactName: 'ReactWindows-final-nuget'
9394
targetPath: '$(Pipeline.Workspace)/ReactWindows-final-nuget'
9495
steps:
96+
- checkout: none
9597
- task: NuGetToolInstaller@1
9698
displayName: 'Use NuGet '
9799
- task: CmdLine@2
98100
displayName: NuGet SetApiKey (nuget.org)
99101
inputs:
100102
script: nuget.exe SetApiKey $(nugetorg-apiKey-push)
101-
workingDirectory: $(System.DefaultWorkingDirectory)/Publish/ReactWindows-final-nuget
102-
- task: CmdLine@2
103+
workingDirectory: $(Pipeline.Workspace)/ReactWindows-final-nuget
104+
- task: PowerShell@2
103105
displayName: NuGet push (nuget.org)
104106
inputs:
105-
script: nuget.exe push .\Microsoft.ReactNative.*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -NoSymbol -NonInteractive -Verbosity Detailed
106-
workingDirectory: $(System.DefaultWorkingDirectory)/Publish/ReactWindows-final-nuget
107+
targetType: inline
108+
errorActionPreference: silentlyContinue
109+
script: |
110+
if (Get-ChildItem -Path .\ -Filter '*0.0.0-canary*' -ErrorAction SilentlyContinue) { Write-Output "Canary builds found, exiting."; return 0; }
111+
nuget.exe push .\Microsoft.ReactNative.*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -NoSymbol -NonInteractive -Verbosity Detailed
112+
workingDirectory: $(Pipeline.Workspace)/ReactWindows-final-nuget
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
parameters:
2+
- name: workingDir
3+
type: string
4+
- name: enableInternalFeed
5+
type: boolean
6+
default: false # If WinUI3ExperimentalVersion in WinUI.props is only available on the ProjectReuinion feed, set to true, else if is on nuget.org, set to false
7+
8+
steps:
9+
- template: ../templates/set-experimental-feature.yml
10+
parameters:
11+
workingDir: ${{ parameters.workingDir }}
12+
feature: UseExperimentalWinUI3
13+
value: true
14+
15+
- ${{ if eq(parameters.enableInternalFeed, true) }}:
16+
- task: PowerShell@2
17+
displayName: Enable the internal WinAppSDK Feed
18+
inputs:
19+
targetType: filePath # filePath | inline
20+
filePath: $(Build.SourcesDirectory)\vnext\Scripts\EnableInternalWinAppSDKFeed.ps1
21+
22+
- task: NuGetAuthenticate@1
23+
displayName: 'NuGet Authenticate Internal WinAppSDK Feed'
24+
inputs:
25+
nuGetServiceConnections: 'WinAppSDK Experimental NuGet for RNW'

0 commit comments

Comments
 (0)