Skip to content

Commit 8ba3a6e

Browse files
authored
Merge branch 'dotnet:main' into fix-producesresponsetype-minimal-api-again
2 parents 548055e + 20d4a00 commit 8ba3a6e

File tree

863 files changed

+23226
-3382
lines changed

Some content is hidden

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

863 files changed

+23226
-3382
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ parameters:
4747
variables:
4848
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
4949
value: true
50+
- name: GRADLE_USER_HOME
51+
value: $(Build.SourcesDirectory)/.gradle
5052
- name: _TeamName
5153
value: AspNetCore
5254
- name: _PublishUsingPipelines
@@ -582,10 +584,10 @@ stages:
582584
/p:VsTestUseMSBuildOutput=false
583585
displayName: Build shared fx
584586
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
585-
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test
587+
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -all -noBuildRepoTasks -noBuildNative -noBuild -test
586588
-projects eng\helix\helix.proj /p:IsHelixPRCheck=true /p:IsHelixJob=true
587589
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
588-
/p:VsTestUseMSBuildOutput=false
590+
/p:VsTestUseMSBuildOutput=false /p:RunTemplateTests=false
589591
displayName: Run build.cmd helix target
590592
env:
591593
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues

.azure/pipelines/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ parameters:
3131
variables:
3232
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
3333
value: true
34+
- name: GRADLE_USER_HOME
35+
value: $(Build.SourcesDirectory)/.gradle
3436
- name: _TeamName
3537
value: AspNetCore
3638
- name: _PublishUsingPipelines
@@ -634,9 +636,9 @@ extends:
634636
MSBUILDUSESERVER: "1"
635637
displayName: Build shared fx
636638
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
637-
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test
639+
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -all -noBuildRepoTasks -noBuildNative -noBuild -test
638640
-projects eng\helix\helix.proj /p:IsHelixPRCheck=true /p:IsHelixJob=true
639-
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
641+
/p:CrossgenOutput=false /p:RunTemplateTests=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
640642
displayName: Run build.cmd helix target
641643
env:
642644
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues

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

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,35 @@ jobs:
5858
displayName: Build JS
5959
- script: .dotnet/dotnet build ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-restore
6060
displayName: Build
61-
- script: .dotnet/dotnet test ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-build --filter 'Quarantined!=true|Quarantined=false'
62-
-p:VsTestUseMSBuildOutput=false
63-
--logger:"trx%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.trx"
64-
--logger:"html%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.html"
65-
--results-directory $(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Unquarantined
61+
- script: |
62+
set -eo pipefail
63+
64+
.dotnet/dotnet test ./src/Components/test/E2ETest \
65+
-c $(BuildConfiguration) \
66+
--no-build \
67+
--filter 'Quarantined!=true|Quarantined=false' \
68+
-p:VsTestUseMSBuildOutput=false \
69+
--logger:"trx%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.trx" \
70+
--logger:"html%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.html" \
71+
--results-directory $(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Unquarantined \
72+
| tee e2e-test-output.log
73+
74+
if grep -q "No test matches the given testcase filter" e2e-test-output.log
75+
then
76+
echo "##vso[task.logissue type=error] No tests matched the filter."
77+
78+
exit 1
79+
fi
80+
81+
# Check total tests run to detect abnormalities. In case the number of tests changes significantly, we should adjust the threshold.
82+
# Extract total from the summary line "Failed: xx, Passed: yy, Skipped: zz, Total: NNN, Duration: ..."
83+
total=$(sed -nE 's/.*Failed:[[:space:]]*[0-9]+,[[:space:]]*Passed:[[:space:]]*[0-9]+,[[:space:]]*Skipped:[[:space:]]*[0-9]+,[[:space:]]*Total:[[:space:]]*([0-9]+).*/\1/p' e2e-test-output.log)
84+
min_total=1000
85+
if [ -z "$total" ] || [ "$total" -lt "$min_total" ]
86+
then
87+
echo "##vso[task.logissue type=error] Insufficient total test count: $total. We expect at least $min_total tests to run."
88+
exit 1
89+
fi
6690
displayName: Run E2E tests
6791
- script: .dotnet/dotnet test ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-build --filter 'Quarantined=true' -p:RunQuarantinedTests=true
6892
-p:VsTestUseMSBuildOutput=false

.azure/pipelines/identitymodel-helix-matrix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ extends:
3737
compiled:
3838
enabled: false
3939
justificationForDisabling: 'This is a test-only pipeline. The same product code is already scanned in the main pipeline (aspnetcore-ci)'
40+
featureFlags:
41+
autoEnablePREfastWithNewRuleset: false
4042

4143
stages:
4244
- stage: build

.azure/pipelines/report-green.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This CI job only runs on PRs where all other jobs are skipped.
2+
# This allows Build Analysis to report green. Without this, no jobs would run,
3+
# causing Build Analysis to hang indefinitely (or until someone commented "ba-g {justification}" on the PR).
4+
5+
# Only run this on PRs
6+
trigger: none
7+
# Run for all branches, only on paths that no-op other jobs
8+
pr:
9+
autoCancel: true
10+
branches:
11+
include:
12+
- '*'
13+
paths:
14+
include:
15+
- .devcontainer/*
16+
- .github/*
17+
- .vscode/*
18+
- docs/*
19+
- '**/*.md'
20+
- LICENSE.TXT
21+
- THIRD-PARTY-NOTICES.TXT
22+
23+
# ABG - Always Be Green
24+
jobs:
25+
- template: /eng/common/templates/jobs/jobs.yml
26+
parameters:
27+
enableTelemetry: true
28+
helixRepo: dotnet/aspnetcore
29+
jobs:
30+
- job: Report_Green
31+
enableSBOM: false
32+
pool:
33+
vmImage: ubuntu-22.04
34+
steps:
35+
- powershell: |
36+
exit 0
37+
displayName: Exit 0
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Configure which branches trigger builds
2+
# We want to run template tests on release/8.0 and later as well as on certain PRs
3+
trigger:
4+
batch: true
5+
branches:
6+
include:
7+
- main
8+
- release/*
9+
10+
# Run PR validation on branches that include Helix tests
11+
pr:
12+
autoCancel: true
13+
branches:
14+
include:
15+
- main
16+
- release/*
17+
paths:
18+
include:
19+
- src/ProjectTemplates/*
20+
- src/Components/*
21+
- src/Mvc/*
22+
23+
variables:
24+
- name: _UseHelixOpenQueues
25+
value: ${{ ne(variables['System.TeamProject'], 'internal') }}
26+
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
27+
- group: DotNet-HelixApi-Access
28+
- template: /eng/common/templates/variables/pool-providers.yml
29+
30+
jobs:
31+
- template: jobs/default-build.yml
32+
parameters:
33+
jobName: Helix_templates_x64
34+
jobDisplayName: 'Tests: Helix template tests x64'
35+
agentOs: Windows
36+
timeoutInMinutes: 180
37+
steps:
38+
- script: git submodule update --init
39+
displayName: Update submodules
40+
# Build the shared framework
41+
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64
42+
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log /p:VsTestUseMSBuildOutput=false
43+
displayName: Build shared fx
44+
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
45+
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -all -noBuildRepoTasks -noBuildNative -noBuild -test
46+
-projects eng\helix\helix.proj /p:IsHelixPRCheck=true /p:IsHelixJob=true
47+
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
48+
/p:VsTestUseMSBuildOutput=false /p:OnlyTestProjectTemplates=true
49+
displayName: Run build.cmd helix target
50+
env:
51+
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
52+
artifacts:
53+
- name: Helix_logs
54+
path: artifacts/log/
55+
publishOnError: true

.github/policies/resourceManagement.yml

Lines changed: 73 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,45 @@ configuration:
168168
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an `/azp run` comment here (requires commit rights), or by simply closing and reopening.
169169
- addLabel:
170170
label: pending-ci-rerun
171+
- description: '[Idle Issue Management] Tag aspnet-build on dependency PRs (non-weekend)'
172+
frequencies:
173+
- weekday:
174+
day: Tuesday
175+
time: 0:0
176+
- weekday:
177+
day: Wednesday
178+
time: 0:0
179+
- weekday:
180+
day: Thursday
181+
time: 0:0
182+
- weekday:
183+
day: Friday
184+
time: 0:0
185+
filters:
186+
- isPullRequest
187+
- isOpen
188+
- hasLabel:
189+
label: 'build-ops'
190+
- noActivitySince:
191+
days: 1
192+
actions:
193+
- addReply:
194+
reply: This dependency PR has had no activity for a full business day - @dotnet/aspnet-build please take a look if you are on build-ops.
195+
- description: '[Idle Issue Management] Tag aspnet-build on dependency PRs (weekend)'
196+
frequencies:
197+
- weekday:
198+
day: Monday
199+
time: 0:0
200+
filters:
201+
- isPullRequest
202+
- isOpen
203+
- hasLabel:
204+
label: 'build-ops'
205+
- noActivitySince:
206+
days: 3
207+
actions:
208+
- addReply:
209+
reply: This dependency PR has had no activity for a full business day - @dotnet/aspnet-build please take a look if you are on build-ops.
171210
eventResponderTasks:
172211
- if:
173212
- payloadType: Issue_Comment
@@ -247,6 +286,26 @@ configuration:
247286
- approvePullRequest:
248287
comment: Auto-approving dependency update.
249288
description: '[Infrastructure PRs] Add area-infrastructure label to dependency update Pull Requests'
289+
- if:
290+
- payloadType: Pull_Request
291+
- isAction:
292+
action: Opened
293+
- isActivitySender:
294+
user: dotnet-maestro[bot]
295+
issueAuthor: False
296+
- targetsBranch:
297+
branch: main
298+
- or:
299+
- titleContains:
300+
pattern: Update dependencies
301+
isRegex: False
302+
- titleContains:
303+
pattern: Source code updates
304+
isRegex: False
305+
then:
306+
- addLabel:
307+
label: 'build-ops'
308+
description: '[Infrastructure PRs] Add build-ops label to dependency update Pull Requests against main'
250309
- if:
251310
- payloadType: Pull_Request
252311
- isAction:
@@ -264,6 +323,8 @@ configuration:
264323
label: area-infrastructure
265324
- addLabel:
266325
label: 'Type: Merge Forward :fast_forward:'
326+
- addLabel:
327+
label: 'build-ops'
267328
- approvePullRequest:
268329
comment: Auto-approving branch merge.
269330
description: '[Infrastructure PRs] Add area-infrastructure label to auto-merge Pull Requests'
@@ -380,18 +441,18 @@ configuration:
380441
branch: main
381442
then:
382443
- addMilestone:
383-
milestone: 10.0-preview6
444+
milestone: 10.0-preview7
384445
description: '[Milestone Assignments] Assign Milestone to PRs merged to the `main` branch'
385446
- if:
386447
- payloadType: Pull_Request
387448
- isAction:
388449
action: Closed
389450
- targetsBranch:
390-
branch: release/10.0-preview5
451+
branch: release/10.0-preview6
391452
then:
392453
- removeMilestone
393454
- addMilestone:
394-
milestone: 10.0-preview5
455+
milestone: 10.0-preview6
395456
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/10.0-preview1 branch'
396457
- if:
397458
- payloadType: Issues
@@ -495,16 +556,16 @@ configuration:
495556
- isAction:
496557
action: Opened
497558
- targetsBranch:
498-
branch: release/2.1
559+
branch: release/2.3
499560
then:
500561
- addMilestone:
501-
milestone: 2.1.x
562+
milestone: 2.3.x
502563
- addReply:
503564
reply: >-
504565
Hi @${issueAuthor}. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the [servicing process](https://aka.ms/aspnet/servicing) document.
505566
506567
Otherwise, please add `tell-mode` label.
507-
description: Add release/2.1 targeting PRs to the servicing project
568+
description: Add release/2.3 targeting PRs to the servicing project
508569
- if:
509570
- payloadType: Pull_Request
510571
- labelAdded:
@@ -553,7 +614,7 @@ configuration:
553614
then:
554615
- removeMilestone
555616
- addMilestone:
556-
milestone: 9.0.6
617+
milestone: 9.0.7
557618
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/9.0 branch'
558619
- if:
559620
- payloadType: Pull_Request
@@ -564,7 +625,7 @@ configuration:
564625
then:
565626
- removeMilestone
566627
- addMilestone:
567-
milestone: 8.0.17
628+
milestone: 8.0.18
568629
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/8.0 branch'
569630
- if:
570631
- payloadType: Issues
@@ -651,6 +712,8 @@ configuration:
651712
label: area-infrastructure
652713
- addLabel:
653714
label: 'Type: Dependency Update :arrow_up_small:'
715+
- addLabel:
716+
label: 'build-ops'
654717
- approvePullRequest:
655718
comment: Auto-approving SDK update.
656719
- enableAutoMerge:
@@ -670,6 +733,8 @@ configuration:
670733
label: area-infrastructure
671734
- addLabel:
672735
label: 'Type: Dependency Update :arrow_up_small:'
736+
- addLabel:
737+
label: 'build-ops'
673738
- approvePullRequest:
674739
comment: Auto-approving dependabot update.
675740
- enableAutoMerge:

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
backport:
17-
uses: dotnet/arcade/.github/workflows/backport-base.yml@fdcda9b4919dd16bd2388b5421cc5d55afac0e88 # 2025-01-13
17+
uses: dotnet/arcade/.github/workflows/backport-base.yml@aea743edf7c9345cfdbdf9593756973baadc6b37 # 2025-01-13
1818
with:
1919
pr_description_template: |
2020
Backport of #%source_pr_number% to %target_branch%

.github/workflows/inter-branch-merge-flow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ permissions:
1010

1111
jobs:
1212
Merge:
13-
uses: dotnet/arcade/.github/workflows/backport-base.yml@fdcda9b4919dd16bd2388b5421cc5d55afac0e88 # 2024-06-24
13+
uses: dotnet/arcade/.github/workflows/backport-base.yml@aea743edf7c9345cfdbdf9593756973baadc6b37 # 2024-06-24

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ artifacts/
33
bin/
44
obj/
55
.dotnet/
6+
.gradle/
67
.nuget/
78
.packages/
89
.tools/
@@ -13,6 +14,7 @@ BenchmarkDotNet.Artifacts/
1314
src/SignalR/clients/**/dist/
1415
modules/
1516
.ionide/
17+
TestResults/
1618

1719
# File extensions
1820
*.aps
@@ -33,9 +35,11 @@ modules/
3335
*.suo
3436
*.svclog
3537
*.tlog
38+
*.trx
3639
*.user
3740
*.userprefs
3841
*.vspx
42+
*.json.bak
3943

4044
# Specific files, typically generated by tools
4145
.config/dotnet-tools.json

0 commit comments

Comments
 (0)