Skip to content

Commit 579ac6b

Browse files
authored
Merge branch 'main' into davidfowl/remove-logging-scopes
2 parents 40b24fc + 1121b2b commit 579ac6b

File tree

5,241 files changed

+210836
-114799
lines changed

Some content is hidden

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

5,241 files changed

+210836
-114799
lines changed

.azure/pipelines/azure-pipelines-mirror-within-azdo.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ parameters:
1313
type: boolean
1414

1515
variables:
16-
- group: Mirror-Credentials
16+
- group: Mirror-Credentials
17+
- template: /eng/common/templates/variables/pool-providers.yml
1718

1819
# Merges code from one AzDO branch into another
1920
jobs:
@@ -26,7 +27,7 @@ jobs:
2627
- job: Merge_Azure_DevOps_Branches
2728
enableSBOM: false
2829
pool:
29-
name: NetCore1ESPool-Internal
30+
name: $(DncEngInternalBuildPool)
3031
demands: ImageOverride -equals 1es-windows-2019
3132
variables:
3233
- name: WorkingDirectoryName

.azure/pipelines/benchmarks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ trigger: none
66
pr:
77
- '*'
88

9+
variables:
10+
- template: /eng/common/templates/variables/pool-providers.yml
11+
912
jobs:
1013
- template: jobs/default-build.yml
1114
parameters:

.azure/pipelines/blazor-daily-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uses Scheduled Triggers, which aren't supported in YAML yet.
2-
# https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=vsts&tabs=yaml#scheduled
2+
# https://learn.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=vsts&tabs=yaml#scheduled
33

44
# Daily Tests for Blazor
55
# These use Sauce Labs resources, hence they run daily rather than per-commit.
@@ -17,6 +17,7 @@ variables:
1717
value: 'blazor-e2e-sc-proxy-tunnel'
1818
- name: E2ETESTS_Sauce__HostName
1919
value: 'sauce.local'
20+
- template: /eng/common/templates/variables/pool-providers.yml
2021

2122
jobs:
2223
- template: jobs/default-build.yml

.azure/pipelines/ci.yml

Lines changed: 29 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details on this file.
2+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema for details on this file.
33
#
44

55
# Configure which branches trigger builds
@@ -12,6 +12,9 @@ trigger:
1212
- internal/release/*
1313

1414
# Run PR validation on all branches
15+
# This doesn't have any path exclusions, even for things like docs, because
16+
# we have it configured in GitHub as a required check, and for it to pass
17+
# it must actually run, even if it's not relevant to a particular change.
1518
pr:
1619
autoCancel: true
1720
branches:
@@ -49,12 +52,6 @@ parameters:
4952
default: false
5053
displayName: Produce binlogs?
5154
type: boolean
52-
# Choose whether to test source indexing.
53-
# Will cause inaccessible links on https://source.dot.net/ unless commits are also available in GitHub.
54-
- name: testSourceIndexing
55-
default: false
56-
displayName: Test source indexing? !Danger! see comments in YAML.
57-
type: boolean
5855

5956
variables:
6057
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
@@ -71,6 +68,9 @@ variables:
7168
value: true
7269
- name: _UseHelixOpenQueues
7370
value: ${{ ne(variables['System.TeamProject'], 'internal') }}
71+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
72+
- name: enableSourceIndex
73+
value: true
7474
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
7575
- name: _BuildArgs
7676
value: /p:TeamName=$(_TeamName)
@@ -85,12 +85,6 @@ variables:
8585
value: /p:Publish=true
8686
/p:GenerateChecksums=true
8787
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
88-
# Variables for source indexing afterBuild step and job.
89-
- name: sourceIndexPackageVersion
90-
value: 1.0.1-20210614.1
91-
- name: sourceIndexPackageSource
92-
value: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
93-
- group: source-dot-net stage1 variables
9488
- ${{ if ne(parameters.produceBinlogs, 'true') }}:
9589
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
9690
- name: WindowsArm64LogArgs
@@ -152,6 +146,7 @@ variables:
152146
value: test
153147
- name: runCodeQL3000
154148
value: ${{ or(eq(variables['Build.Reason'], 'Schedule'), and(eq(variables['Build.Reason'], 'Manual'), eq(parameters.runCodeQL3000, 'true'))) }}
149+
- template: /eng/common/templates/variables/pool-providers.yml
155150

156151
stages:
157152
- stage: build
@@ -352,59 +347,6 @@ stages:
352347
- name: Windows_ANCMIISExpress_Msi
353348
path: artifacts/bin/AncmIISExpressV2
354349

355-
# Build Windows ARM
356-
- template: jobs/default-build.yml
357-
parameters:
358-
codeSign: true
359-
jobName: Windows_arm_build
360-
jobDisplayName: "Build: Windows ARM"
361-
agentOs: Windows
362-
buildArgs:
363-
-arch arm
364-
-sign
365-
-pack
366-
-noBuildNodeJS
367-
-noBuildJava
368-
-binaryLog
369-
/p:DotNetSignType=$(_SignType)
370-
/p:OnlyPackPlatformSpecificPackages=true
371-
/p:AssetManifestFileName=aspnetcore-win-arm.xml
372-
$(_BuildArgs)
373-
$(_PublishArgs)
374-
$(_InternalRuntimeDownloadArgs)
375-
${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(parameters.testSourceIndexing, 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
376-
afterBuild:
377-
- task: UseDotNet@2
378-
displayName: Use .NET Core sdk 3.1
379-
inputs:
380-
packageType: sdk
381-
version: 3.1.x
382-
installationPath: $(Build.SourcesDirectory)/.dotnet
383-
workingDirectory: $(Build.SourcesDirectory)
384-
- powershell: . $(Build.SourcesDirectory)/activate.ps1;
385-
dotnet tool install BinLogToSln
386-
--version $(SourceIndexPackageVersion)
387-
--add-source $(SourceIndexPackageSource)
388-
--tool-path $(Build.SourcesDirectory)/.tools;
389-
$(Build.SourcesDirectory)/.tools/BinLogToSln
390-
-i $(Build.SourcesDirectory)/artifacts/log/Release/Build.binlog
391-
-r $(Build.SourcesDirectory)
392-
-n $(Build.Repository.Name)
393-
-o $(Build.ArtifactStagingDirectory)/sourceIndex/
394-
displayName: Process binary log into indexable sln
395-
installNodeJs: false
396-
installJdk: false
397-
artifacts:
398-
- name: Windows_arm_Logs
399-
path: artifacts/log/
400-
publishOnError: true
401-
includeForks: true
402-
- name: Windows_arm_Packages
403-
path: artifacts/packages/
404-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(parameters.testSourceIndexing, 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
405-
- name: Windows_arm_SourceIndex
406-
path: $(Build.ArtifactStagingDirectory)/sourceIndex/
407-
408350
# Build MacOS arm64
409351
- template: jobs/default-build.yml
410352
parameters:
@@ -486,13 +428,13 @@ stages:
486428
$(_InternalRuntimeDownloadArgs)
487429
displayName: Run build.sh
488430
- script: git clean -xfd src/**/obj/;
489-
./dockerbuild.sh bionic --ci --nobl --arch x64 --build-installers --no-build-deps --no-build-nodejs --init-nuget
431+
./dockerbuild.sh bionic --ci --nobl --arch x64 --build-installers --no-build-deps --no-build-nodejs
490432
-p:OnlyPackPlatformSpecificPackages=true -p:BuildRuntimeArchive=false -p:LinuxInstallerType=deb
491433
$(_BuildArgs)
492434
$(_InternalRuntimeDownloadArgs)
493435
displayName: Build Debian installers
494436
- script: git clean -xfd src/**/obj/;
495-
./dockerbuild.sh rhel --ci --nobl --arch x64 --build-installers --no-build-deps --no-build-nodejs --init-nuget
437+
./dockerbuild.sh rhel --ci --nobl --arch x64 --build-installers --no-build-deps --no-build-nodejs
496438
-p:OnlyPackPlatformSpecificPackages=true -p:BuildRuntimeArchive=false -p:LinuxInstallerType=rpm
497439
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml
498440
$(_BuildArgs)
@@ -563,7 +505,7 @@ stages:
563505
$(_InternalRuntimeDownloadArgs)
564506
displayName: Run build.sh
565507
- script: git clean -xfd src/**/obj/;
566-
./dockerbuild.sh rhel --ci --nobl --arch arm64 --build-installers --no-build-deps --no-build-nodejs --init-nuget
508+
./dockerbuild.sh rhel --ci --nobl --arch arm64 --build-installers --no-build-deps --no-build-nodejs
567509
-p:OnlyPackPlatformSpecificPackages=true -p:BuildRuntimeArchive=false -p:LinuxInstallerType=rpm
568510
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
569511
$(_BuildArgs)
@@ -697,7 +639,7 @@ stages:
697639
# Just uploading artifacts/logs/ files can take 15 minutes. Doubling the cancel timeout for this job.
698640
cancelTimeoutInMinutes: 30
699641
buildArgs: -all -pack -test -binaryLog /p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true
700-
/p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false
642+
/p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false /p:RunBlazorPlaywrightTemplateTests=true
701643
$(_InternalRuntimeDownloadArgs)
702644
beforeBuild:
703645
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
@@ -797,13 +739,26 @@ stages:
797739
# Log environment variables in binary logs to ease debugging
798740
MSBUILDLOGALLENVIRONMENTVARIABLES: true
799741

742+
- ${{ if eq(variables.enableSourceIndex, 'true') }}:
743+
- template: /eng/common/templates/job/source-index-stage1.yml
744+
parameters:
745+
sourceIndexBuildCommand: ./eng/build.cmd -Configuration Release -ci -noBuildJava -binaryLog /p:OnlyPackPlatformSpecificPackages=true
746+
binlogPath: artifacts/log/Release/Build.binlog
747+
presteps:
748+
- task: NodeTool@0
749+
displayName: Install Node 18.x
750+
inputs:
751+
versionSpec: 18.x
752+
pool:
753+
name: $(DncEngInternalBuildPool)
754+
demands: ImageOverride -equals 1es-windows-2022
755+
800756
# Publish to the BAR and perform source indexing. Wait until everything else is done.
801757
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
802758
- template: /eng/common/templates/job/publish-build-assets.yml
803759
parameters:
804760
dependsOn:
805761
- Windows_build
806-
- Windows_arm_build
807762
- ${{ if ne(variables.PostBuildSign, 'true') }}:
808763
- CodeSign_Xplat_MacOS_arm64
809764
- CodeSign_Xplat_MacOS_x64
@@ -830,74 +785,15 @@ stages:
830785
- MacOS_Test
831786
- Linux_Test
832787
- Helix_x64
788+
- ${{ if eq(variables.enableSourceIndex, 'true') }}:
789+
- SourceIndexStage1
833790
- Source_Build_Managed
834791
pool:
835-
name: NetCore1ESPool-Internal
792+
name: $(DncEngInternalBuildPool)
836793
demands: ImageOverride -equals 1es-windows-2019
837794
publishUsingPipelines: ${{ variables._PublishUsingPipelines }}
838795
enablePublishBuildArtifacts: true # publish artifacts/log files
839796
publishAssetsImmediately: true # Don't use a separate stage for darc publishing.
840-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(parameters.testSourceIndexing, 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
841-
- job: SourceIndexUpload
842-
displayName: Upload indexable solution
843-
dependsOn:
844-
- Windows_arm_build
845-
# In addition to the dependency above that provides assets, ensure the build was successful overall.
846-
- Windows_build
847-
- ${{ if ne(variables.PostBuildSign, 'true') }}:
848-
- CodeSign_Xplat_MacOS_arm64
849-
- CodeSign_Xplat_MacOS_x64
850-
- CodeSign_Xplat_Linux_x64
851-
- CodeSign_Xplat_Linux_arm
852-
- CodeSign_Xplat_Linux_arm64
853-
- CodeSign_Xplat_Linux_musl_x64
854-
- CodeSign_Xplat_Linux_musl_arm
855-
- CodeSign_Xplat_Linux_musl_arm64
856-
- ${{ if eq(variables.PostBuildSign, 'true') }}:
857-
- MacOs_arm64_build
858-
- MacOs_x64_build
859-
- Linux_x64_build
860-
- Linux_arm_build
861-
- Linux_arm64_build
862-
- Linux_musl_x64_build
863-
- Linux_musl_arm_build
864-
- Linux_musl_arm64_build
865-
- ${{ if in(variables['Build.Reason'], 'Manual') }}:
866-
- Code_check
867-
- ${{ if ne(parameters.skipTests, 'true') }}:
868-
- Windows_Test
869-
- MacOS_Test
870-
- Linux_Test
871-
- Helix_x64
872-
- Source_Build_Managed
873-
pool:
874-
name: NetCore1ESPool-Internal
875-
# Visual Studio Enterprise - no BuildTools agents exist internally and job must run on Windows
876-
demands: ImageOverride -equals 1es-windows-2019
877-
steps:
878-
- task: DownloadBuildArtifacts@0
879-
inputs:
880-
artifactName: Windows_arm_SourceIndex
881-
cleanDestinationFolder: true
882-
# Ignore repository's global.json and any existing .NET SDK.
883-
- task: UseDotNet@2
884-
displayName: Use .NET Core sdk 3.1
885-
inputs:
886-
packageType: sdk
887-
version: 3.1.x
888-
installationPath: $(Agent.TempDirectory)/.dotnet
889-
workingDirectory: $(Agent.TempDirectory)
890-
- script: $(Agent.TempDirectory)/.dotnet/dotnet tool install UploadIndexStage1
891-
--version $(SourceIndexPackageVersion)
892-
--add-source $(SourceIndexPackageSource)
893-
--tool-path $(Agent.TempDirectory)/.tools &&
894-
$(Agent.TempDirectory)/.tools/UploadIndexStage1
895-
-i $(System.ArtifactsDirectory)/Windows_arm_SourceIndex/
896-
-n $(Build.Repository.Name)
897-
displayName: Upload indexable solution
898-
workingDirectory: $(Agent.TempDirectory)
899-
env:
900-
BLOB_CONTAINER_URL: $(source-dot-net-stage1-blob-container-url)
901797

902798
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), ne(variables.runCodeQL3000, 'true')) }}:
903799
- template: /eng/common/templates/post-build/post-build.yml

.azure/pipelines/components-e2e-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details on this file.
2+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema for details on this file.
33
#
44

55
# Configure which branches trigger builds
@@ -25,6 +25,7 @@ variables:
2525
value: true
2626
- name: _TeamName
2727
value: AspNetCore
28+
- template: /eng/common/templates/variables/pool-providers.yml
2829

2930
jobs:
3031
- template: jobs/default-build.yml
@@ -34,13 +35,13 @@ jobs:
3435
agentOs: Linux
3536
isAzDOTestingJob: true
3637
enablePublishTestResults: false
37-
timeoutInMinutes: 75
38+
timeoutInMinutes: 120
3839
steps:
3940
- script: git submodule update --init
4041
displayName: Update submodules
4142
- script: ./restore.sh
4243
displayName: Run restore.sh
43-
- script: yarn install --frozen-lockfile --cwd ./src/Components/test/E2ETest
44+
- script: yarn install --frozen-lockfile --cwd ./src/Components/test/E2ETest || yarn install --frozen-lockfile --cwd ./src/Components/test/E2ETest
4445
displayName: NPM install
4546
- script: .dotnet/dotnet build ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-restore
4647
displayName: Build
@@ -74,6 +75,10 @@ jobs:
7475
condition: always()
7576

7677
artifacts:
78+
- name: Components_E2E_Logs
79+
path: artifacts/log/
80+
publishOnError: true
81+
includeForks: true
7782
- name: Components_E2E_Test_Logs
7883
path: '$(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)'
7984
includeForks: true

.azure/pipelines/devBuilds.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details on this file.
2+
# See https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema for details on this file.
33
#
44

55
# Configure which branches trigger builds
@@ -8,6 +8,9 @@ trigger: none
88
# no PR builds
99
pr: none
1010

11+
variables:
12+
- template: /eng/common/templates/variables/pool-providers.yml
13+
1114
stages:
1215
- stage: build_components
1316
displayName: Build Components

.azure/pipelines/helix-matrix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ variables:
2020
value: ${{ ne(variables['System.TeamProject'], 'internal') }}
2121
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
2222
- group: DotNet-HelixApi-Access
23+
- template: /eng/common/templates/variables/pool-providers.yml
2324

2425
jobs:
2526
- template: jobs/default-build.yml

0 commit comments

Comments
 (0)