Skip to content

Commit 166b43b

Browse files
authored
Merge branch 'dotnet:main' into ladeak-canhavemessagebody
2 parents a6be382 + 7641b9f commit 166b43b

File tree

380 files changed

+8652
-2442
lines changed

Some content is hidden

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

380 files changed

+8652
-2442
lines changed

.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

.github/policies/resourceManagement.yml

Lines changed: 71 additions & 6 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:
@@ -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@7a09c1144283309440a7966c664199944198c920 # 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@7a09c1144283309440a7966c664199944198c920 # 2024-06-24

0 commit comments

Comments
 (0)