Skip to content

Commit 8bfcb40

Browse files
committed
Merge branch 'main' into marc/ocbin
# Conflicts: # AspNetCore.sln # src/Middleware/OutputCaching/OutputCaching.slnf # src/Middleware/OutputCaching/src/OutputCacheEntryFormatter.cs
2 parents c285675 + b640052 commit 8bfcb40

File tree

1,346 files changed

+82259
-24681
lines changed

Some content is hidden

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

1,346 files changed

+82259
-24681
lines changed

.azure/pipelines/ci.yml

Lines changed: 19 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ parameters:
4949
default: false
5050
displayName: Produce binlogs?
5151
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
5852

5953
variables:
6054
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
@@ -71,6 +65,9 @@ variables:
7165
value: true
7266
- name: _UseHelixOpenQueues
7367
value: ${{ ne(variables['System.TeamProject'], 'internal') }}
68+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
69+
- name: enableSourceIndex
70+
value: true
7471
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
7572
- name: _BuildArgs
7673
value: /p:TeamName=$(_TeamName)
@@ -85,12 +82,6 @@ variables:
8582
value: /p:Publish=true
8683
/p:GenerateChecksums=true
8784
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
88-
# Variables for source indexing afterBuild step and job.
89-
- name: sourceIndexPackageVersion
90-
value: 1.0.1-20230228.2
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
9485
- ${{ if ne(parameters.produceBinlogs, 'true') }}:
9586
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
9687
- name: WindowsArm64LogArgs
@@ -353,59 +344,6 @@ stages:
353344
- name: Windows_ANCMIISExpress_Msi
354345
path: artifacts/bin/AncmIISExpressV2
355346

356-
# Build Windows ARM
357-
- template: jobs/default-build.yml
358-
parameters:
359-
codeSign: true
360-
jobName: Windows_arm_build
361-
jobDisplayName: "Build: Windows ARM"
362-
agentOs: Windows
363-
buildArgs:
364-
-arch arm
365-
-sign
366-
-pack
367-
-noBuildNodeJS
368-
-noBuildJava
369-
-binaryLog
370-
/p:DotNetSignType=$(_SignType)
371-
/p:OnlyPackPlatformSpecificPackages=true
372-
/p:AssetManifestFileName=aspnetcore-win-arm.xml
373-
$(_BuildArgs)
374-
$(_PublishArgs)
375-
$(_InternalRuntimeDownloadArgs)
376-
${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(parameters.testSourceIndexing, 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
377-
afterBuild:
378-
- task: UseDotNet@2
379-
displayName: Use .NET Core SDK 6
380-
inputs:
381-
packageType: sdk
382-
version: 6.0.x
383-
installationPath: $(Build.SourcesDirectory)/.dotnet
384-
workingDirectory: $(Build.SourcesDirectory)
385-
- powershell: . $(Build.SourcesDirectory)/activate.ps1;
386-
dotnet tool install BinLogToSln
387-
--version $(SourceIndexPackageVersion)
388-
--add-source $(SourceIndexPackageSource)
389-
--tool-path $(Build.SourcesDirectory)/.tools;
390-
$(Build.SourcesDirectory)/.tools/BinLogToSln
391-
-i $(Build.SourcesDirectory)/artifacts/log/Release/Build.binlog
392-
-r $(Build.SourcesDirectory)
393-
-n $(Build.Repository.Name)
394-
-o $(Build.ArtifactStagingDirectory)/sourceIndex/
395-
displayName: Process binary log into indexable sln
396-
installNodeJs: false
397-
installJdk: false
398-
artifacts:
399-
- name: Windows_arm_Logs
400-
path: artifacts/log/
401-
publishOnError: true
402-
includeForks: true
403-
- name: Windows_arm_Packages
404-
path: artifacts/packages/
405-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(parameters.testSourceIndexing, 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
406-
- name: Windows_arm_SourceIndex
407-
path: $(Build.ArtifactStagingDirectory)/sourceIndex/
408-
409347
# Build MacOS arm64
410348
- template: jobs/default-build.yml
411349
parameters:
@@ -798,13 +736,26 @@ stages:
798736
# Log environment variables in binary logs to ease debugging
799737
MSBUILDLOGALLENVIRONMENTVARIABLES: true
800738

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

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

.config/CredScanSuppressions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"_justification": "Legitimate UT certificate file with private key"
3939
},
4040
{
41-
"file": "\\src\\DataProtection\\DataProtection\\test\\TestFiles\\TestCert1.pfx",
41+
"file": "\\src\\DataProtection\\DataProtection\\test\\Microsoft.AspNetCore.DataProtection.Tests\\TestFiles\\TestCert1.pfx",
4242
"_justification": "Legitimate UT certificate file with private key"
4343
},
4444
{
45-
"file": "\\src\\DataProtection\\DataProtection\\test\\TestFiles\\TestCert2.pfx",
45+
"file": "\\src\\DataProtection\\DataProtection\\test\\Microsoft.AspNetCore.DataProtection.Tests\\TestFiles\\TestCert2.pfx",
4646
"_justification": "Legitimate UT certificate file with private key"
4747
},
4848
{

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
/eng/common/ @dotnet-maestro-bot
1717
/eng/Versions.props @dotnet-maestro-bot @dotnet/aspnet-build @wtgodbe
1818
/eng/Version.Details.xml @dotnet-maestro-bot @dotnet/aspnet-build @wtgodbe
19+
/eng/SourceBuild* @dotnet/source-build-internal
1920
/src/Caching/ @captainsafia @halter73 @mgravell
2021
/src/Caching/**/PublicAPI.*Shipped.txt @dotnet/aspnet-api-review @captainsafia @halter73 @mgravell
2122
/src/Components/ @dotnet/aspnet-blazor-eng

.github/ISSUE_TEMPLATE/50_test_failure.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ Provide the stack trace associated with the test failure, if applicable.
4646

4747
<details>
4848
<!--
49-
Provide the (helix) logs associated with the test failure, if applicable.
49+
If this is a Helix test failure, include the text of the .log artifact from the failing test.
50+
Note that you have to be signed in to Azure DevOps to see the test artifacts.
5051
-->
5152

5253
```text

.github/fabricbot.json

Lines changed: 6 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,30 +1548,6 @@
15481548
]
15491549
}
15501550
},
1551-
{
1552-
"taskType": "trigger",
1553-
"capabilityId": "AutoMerge",
1554-
"subCapability": "AutoMerge",
1555-
"version": "1.0",
1556-
"config": {
1557-
"taskName": "Auto Merge PRs",
1558-
"label": "auto-merge",
1559-
"minMinutesOpen": "60",
1560-
"mergeType": "squash",
1561-
"removeLabelOnPush": true,
1562-
"conditionalMergeTypes": [
1563-
{
1564-
"mergeType": "merge",
1565-
"condition": {
1566-
"placeholder": "labels",
1567-
"operator": "contains",
1568-
"label_name": "Type: Merge Forward :fast_forward:"
1569-
}
1570-
}
1571-
],
1572-
"deleteBranches": true
1573-
}
1574-
},
15751551
{
15761552
"taskType": "trigger",
15771553
"capabilityId": "IssueResponder",
@@ -2015,58 +1991,6 @@
20151991
]
20161992
}
20171993
},
2018-
{
2019-
"taskType": "trigger",
2020-
"capabilityId": "IssueResponder",
2021-
"subCapability": "PullRequestResponder",
2022-
"version": "1.0",
2023-
"config": {
2024-
"conditions": {
2025-
"operator": "and",
2026-
"operands": [
2027-
{
2028-
"name": "isAction",
2029-
"parameters": {
2030-
"action": "opened"
2031-
}
2032-
},
2033-
{
2034-
"name": "isActivitySender",
2035-
"parameters": {
2036-
"user": "dotnet-maestro-bot"
2037-
}
2038-
},
2039-
{
2040-
"name": "titleContains",
2041-
"parameters": {
2042-
"titlePattern": "Merge branch"
2043-
}
2044-
},
2045-
{
2046-
"name": "prTargetsBranch",
2047-
"parameters": {
2048-
"branchName": "main"
2049-
}
2050-
}
2051-
]
2052-
},
2053-
"eventType": "pull_request",
2054-
"eventNames": [
2055-
"pull_request",
2056-
"issues",
2057-
"project_card"
2058-
],
2059-
"taskName": "[Infrastructure PRs] Add auto-merge label to branch merge Pull Requests in main",
2060-
"actions": [
2061-
{
2062-
"name": "addLabel",
2063-
"parameters": {
2064-
"label": "auto-merge"
2065-
}
2066-
}
2067-
]
2068-
}
2069-
},
20701994
{
20711995
"taskType": "scheduled",
20721996
"capabilityId": "ScheduledSearch",
@@ -2567,7 +2491,7 @@
25672491
{
25682492
"name": "addMilestone",
25692493
"parameters": {
2570-
"milestoneName": "8.0-preview5"
2494+
"milestoneName": "8.0-preview7"
25712495
}
25722496
}
25732497
],
@@ -3312,7 +3236,7 @@
33123236
{
33133237
"name": "addMilestone",
33143238
"parameters": {
3315-
"milestoneName": "6.0.18"
3239+
"milestoneName": "6.0.19"
33163240
}
33173241
}
33183242
]
@@ -3356,7 +3280,7 @@
33563280
{
33573281
"name": "addMilestone",
33583282
"parameters": {
3359-
"milestoneName": "7.0.7"
3283+
"milestoneName": "7.0.8"
33603284
}
33613285
}
33623286
]
@@ -3380,7 +3304,7 @@
33803304
{
33813305
"name": "prTargetsBranch",
33823306
"parameters": {
3383-
"branchName": "release/8.0-preview4"
3307+
"branchName": "release/8.0-preview6"
33843308
}
33853309
}
33863310
]
@@ -3391,7 +3315,7 @@
33913315
"issues",
33923316
"project_card"
33933317
],
3394-
"taskName": "[Milestone Assignments] Assign Milestone to PRs merged to release/8.0-preview4 branch",
3318+
"taskName": "[Milestone Assignments] Assign Milestone to PRs merged to release/8.0-preview6 branch",
33953319
"actions": [
33963320
{
33973321
"name": "removeMilestone",
@@ -3400,7 +3324,7 @@
34003324
{
34013325
"name": "addMilestone",
34023326
"parameters": {
3403-
"milestoneName": "8.0-preview4"
3327+
"milestoneName": "8.0-preview6"
34043328
}
34053329
}
34063330
]

0 commit comments

Comments
 (0)