Skip to content

Commit 2e4756c

Browse files
committed
Merge branch 'main' into improve-stopping-renderer
2 parents 3c28ae7 + debb78a commit 2e4756c

File tree

209 files changed

+4658
-2437
lines changed

Some content is hidden

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

209 files changed

+4658
-2437
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ pr:
1919
branches:
2020
include:
2121
- '*'
22+
paths:
23+
exclude:
24+
- .devcontainer/*
25+
- .github/*
26+
- .vscode/*
27+
- docs/*
28+
- '**/*.md'
29+
- LICENSE.TXT
30+
- THIRD-PARTY-NOTICES.TXT
2231

2332
parameters:
2433
# Choose whether to skip tests when running pipeline manually.
@@ -632,8 +641,8 @@ stages:
632641
platform:
633642
name: 'Managed'
634643
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-build-amd64'
635-
buildScript: './eng/build.sh --publish --no-build-repo-tasks $(_PublishArgs) $(_InternalRuntimeDownloadArgs)'
636-
skipPublishValidation: true
644+
buildScript: './eng/build.sh'
645+
buildArguments: '--source-build $(_InternalRuntimeDownloadArgs)'
637646
jobProperties:
638647
timeoutInMinutes: 120
639648
variables:

.azure/pipelines/ci.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ extends:
173173
$(_BuildArgs)
174174
$(_InternalRuntimeDownloadArgs)
175175
$(Windows64LogArgs)
176+
env:
177+
MSBUILDUSESERVER: "1"
176178
displayName: Build x64
177179

178180
# Build the x86 shared framework
@@ -190,6 +192,8 @@ extends:
190192
$(_BuildArgs)
191193
$(_InternalRuntimeDownloadArgs)
192194
$(Windows86LogArgs)
195+
env:
196+
MSBUILDUSESERVER: "1"
193197
displayName: Build x86
194198

195199
# Build the arm64 shared framework
@@ -207,6 +211,8 @@ extends:
207211
$(_BuildArgs)
208212
$(_InternalRuntimeDownloadArgs)
209213
$(WindowsArm64LogArgs)
214+
env:
215+
MSBUILDUSESERVER: "1"
210216
displayName: Build ARM64
211217

212218
- script: .\src\SiteExtensions\build.cmd
@@ -218,6 +224,8 @@ extends:
218224
-noBuildNative
219225
$(_BuildArgs)
220226
$(_InternalRuntimeDownloadArgs)
227+
env:
228+
MSBUILDUSESERVER: "1"
221229
displayName: Build SiteExtension
222230

223231
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If
@@ -233,6 +241,8 @@ extends:
233241
/p:DotNetSignType=$(_SignType)
234242
$(_BuildArgs)
235243
$(WindowsSignLogArgs)
244+
env:
245+
MSBUILDUSESERVER: "1"
236246
displayName: Code sign packages
237247

238248
# Windows installers bundle x86/x64/arm64 assets
@@ -247,6 +257,8 @@ extends:
247257
$(_BuildArgs)
248258
$(_InternalRuntimeDownloadArgs)
249259
$(WindowsInstallersLogArgs)
260+
env:
261+
MSBUILDUSESERVER: "1"
250262
displayName: Build Installers
251263

252264
# Windows installers bundle and sharedfx msi for arm64
@@ -265,6 +277,8 @@ extends:
265277
$(_PublishArgs)
266278
$(_InternalRuntimeDownloadArgs)
267279
$(WindowsArm64InstallersLogArgs)
280+
env:
281+
MSBUILDUSESERVER: "1"
268282
displayName: Build ARM64 Installers
269283

270284
artifacts:
@@ -540,6 +554,7 @@ extends:
540554
jobDisplayName: "Test: Windows Server x64"
541555
agentOs: Windows
542556
isAzDOTestingJob: true
557+
continueOnError: true
543558
# Just uploading artifacts/logs/ files can take 15 minutes. Doubling the cancel timeout for this job.
544559
cancelTimeoutInMinutes: 30
545560
buildArgs: -all -pack -test -binaryLog /p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true
@@ -615,6 +630,8 @@ extends:
615630
# Build the shared framework
616631
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64
617632
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
633+
env:
634+
MSBUILDUSESERVER: "1"
618635
displayName: Build shared fx
619636
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
620637
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test
@@ -668,16 +685,15 @@ extends:
668685
path: artifacts/log/
669686
publishOnError: true
670687
includeForks: true
671-
672688
# Source build
673689
- template: /eng/common/templates-official/job/source-build.yml@self
674690
parameters:
675691
enableInternalSources: true
676692
platform:
677693
name: 'Managed'
678-
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'
679-
buildScript: './eng/build.sh --publish --no-build-repo-tasks $(_PublishArgs) $(_InternalRuntimeDownloadArgs)'
680-
skipPublishValidation: true
694+
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream-10-amd64'
695+
buildScript: './eng/build.sh'
696+
buildArguments: '--source-build $(_InternalRuntimeDownloadArgs)'
681697
jobProperties:
682698
timeoutInMinutes: 120
683699
variables:
@@ -748,4 +764,4 @@ extends:
748764
enableSigningValidation: false
749765
enableNugetValidation: false
750766
publishInstallersAndChecksums: true
751-
publishAssetsImmediately: true
767+
publishAssetsImmediately: true

.azure/pipelines/jobs/default-build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ parameters:
6262
isAzDOTestingJob: false
6363
enablePublishTestResults: ''
6464
enableSbom: true
65+
continueOnError: false
6566
variables: []
6667

6768
configuration: 'Release'
@@ -128,6 +129,8 @@ jobs:
128129
- TeamName: AspNetCore
129130
- ${{ if ne(parameters.codeSign, true) }}:
130131
- _SignType: ''
132+
- ${{ if ne(parameters.isAzDOTestingJob, true) }}:
133+
- MSBUILDUSESERVER: "1"
131134
- LC_ALL: 'en_US.UTF-8'
132135
- LANG: 'en_US.UTF-8'
133136
- LANGUAGE: 'en_US.UTF-8'
@@ -207,13 +210,15 @@ jobs:
207210
- script: $(BuildDirectory)\build.cmd -ci -prepareMachine -nativeToolsOnMachine -Configuration $(BuildConfiguration) $(BuildScriptArgs)
208211
/p:DotNetSignType=$(_SignType)
209212
displayName: Run build.cmd
213+
continueOnError: ${{ parameters.continueOnError }}
210214
env:
211215
COMPlus_DbgEnableMiniDump: 1
212216
COMPlus_DbgMiniDumpName: "$(System.DefaultWorkingDirectory)/dotnet-%d.%t.core"
213217
DotNetBuildsInternalReadSasToken: $(dotnetbuilds-internal-container-read-token)
214218
- ${{ if ne(parameters.agentOs, 'Windows') }}:
215219
- script: $(BuildDirectory)/build.sh --ci --configuration $(BuildConfiguration) $(BuildScriptArgs)
216220
displayName: Run build.sh
221+
continueOnError: ${{ parameters.continueOnError }}
217222
env:
218223
COMPlus_DbgEnableMiniDump: 1
219224
COMPlus_DbgMiniDumpName: "$(System.DefaultWorkingDirectory)/dotnet-%d.%t.core"
@@ -345,6 +350,8 @@ jobs:
345350
- LANGUAGE: 'en_US.UTF-8'
346351
- ${{ if ne(parameters.codeSign, true) }}:
347352
- _SignType: ''
353+
- ${{ if ne(parameters.isAzDOTestingJob, true) }}:
354+
- MSBUILDUSESERVER: "1"
348355
- ${{ else }}:
349356
- ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
350357
- _SignType: real
@@ -443,13 +450,15 @@ jobs:
443450
- script: $(BuildDirectory)\build.cmd -ci -prepareMachine -nativeToolsOnMachine -Configuration $(BuildConfiguration) $(BuildScriptArgs)
444451
/p:DotNetSignType=$(_SignType)
445452
displayName: Run build.cmd
453+
continueOnError: ${{ parameters.continueOnError }}
446454
env:
447455
COMPlus_DbgEnableMiniDump: 1
448456
COMPlus_DbgMiniDumpName: "$(System.DefaultWorkingDirectory)/dotnet-%d.%t.core"
449457
DotNetBuildsInternalReadSasToken: $(dotnetbuilds-internal-container-read-token)
450458
- ${{ if ne(parameters.agentOs, 'Windows') }}:
451459
- script: $(BuildDirectory)/build.sh --ci --configuration $(BuildConfiguration) $(BuildScriptArgs)
452460
displayName: Run build.sh
461+
continueOnError: ${{ parameters.continueOnError }}
453462
env:
454463
COMPlus_DbgEnableMiniDump: 1
455464
COMPlus_DbgMiniDumpName: "$(System.DefaultWorkingDirectory)/dotnet-%d.%t.core"

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ dotnet_diagnostic.IDE0161.severity = silent
464464
# IDE0005: Remove unused usings. Ignore for shared src files since imports for those depend on the projects in which they are included.
465465
dotnet_diagnostic.IDE0005.severity = silent
466466

467+
[{**/microsoft.dotnet.hotreload.agent*/**.cs}]
468+
# IDE0005: Remove unused usings. Ignore for shared src files coming from nuget package.
469+
dotnet_diagnostic.IDE0005.severity = silent
470+
# IDE0073: A source file is missing a required header. Ignore for shared src files coming from nuget package.
471+
dotnet_diagnostic.IDE0073.severity = silent
472+
473+
467474
# Verify settings
468475
[*.{received,verified}.{txt,xml,json}]
469476
charset = "utf-8-bom"

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
/eng/ @dotnet/aspnet-build @wtgodbe
1515
/eng/Versions.props @dotnet/aspnet-build @wtgodbe
1616
/eng/Version.Details.xml @dotnet/aspnet-build @wtgodbe
17-
/eng/SourceBuild* @dotnet/source-build
1817
/src/Caching/ @captainsafia @halter73 @mgravell
1918
/src/Components/ @dotnet/aspnet-blazor-eng
2019
/src/DefaultBuilder/ @halter73

.github/policies/resourceManagement.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,13 @@ configuration:
232232
- isActivitySender:
233233
user: dotnet-maestro[bot]
234234
issueAuthor: False
235-
- titleContains:
236-
pattern: Update dependencies
237-
isRegex: False
235+
- or:
236+
- titleContains:
237+
pattern: Update dependencies
238+
isRegex: False
239+
- titleContains:
240+
pattern: Source code updates
241+
isRegex: False
238242
- targetsBranch:
239243
branch: main
240244
then:
@@ -551,7 +555,7 @@ configuration:
551555
then:
552556
- removeMilestone
553557
- addMilestone:
554-
milestone: 9.0.5
558+
milestone: 9.0.6
555559
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/9.0 branch'
556560
- if:
557561
- payloadType: Pull_Request
@@ -562,7 +566,7 @@ configuration:
562566
then:
563567
- removeMilestone
564568
- addMilestone:
565-
milestone: 8.0.16
569+
milestone: 8.0.17
566570
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/8.0 branch'
567571
- if:
568572
- payloadType: Issues
@@ -642,13 +646,36 @@ configuration:
642646
- titleContains:
643647
pattern: Update .NET SDK
644648
isRegex: False
649+
- targetsBranch:
650+
branch: main
645651
then:
646652
- addLabel:
647653
label: area-infrastructure
648654
- addLabel:
649655
label: 'Type: Dependency Update :arrow_up_small:'
650656
- approvePullRequest:
651657
comment: Auto-approving SDK update.
652-
description: '[Infrastructure PRs] Add area-infrastructure label to SDK update Pull Requests'
658+
- enableAutoMerge:
659+
mergeMethod: "squash"
660+
description: '[Infrastructure PRs] Add area-infrastructure label to SDK update Pull Requests & enable auto-merge'
661+
- if:
662+
- payloadType: Pull_Request
663+
- isAction:
664+
action: Opened
665+
- isActivitySender:
666+
user: dependabot[bot]
667+
issueAuthor: False
668+
- targetsBranch:
669+
branch: main
670+
then:
671+
- addLabel:
672+
label: area-infrastructure
673+
- addLabel:
674+
label: 'Type: Dependency Update :arrow_up_small:'
675+
- approvePullRequest:
676+
comment: Auto-approving dependabot update.
677+
- enableAutoMerge:
678+
mergeMethod: "squash"
679+
description: '[Infrastructure PRs] Add area-infrastructure label to dependabot update Pull Requests & enable auto-merge'
653680
onFailure:
654681
onSuccess:

.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@e80f44b15b3050d868dc8fb58d0fa514ca8c7451 # 2025-01-13
17+
uses: dotnet/arcade/.github/workflows/backport-base.yml@d7540e540636883d3d080d087223d28b6b7395ae # 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@e80f44b15b3050d868dc8fb58d0fa514ca8c7451 # 2024-06-24
13+
uses: dotnet/arcade/.github/workflows/backport-base.yml@d7540e540636883d3d080d087223d28b6b7395ae # 2024-06-24
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Workflow template imported and updated from:
2+
# https://github.com/dotnet/issue-labeler/wiki/Onboarding
3+
#
4+
# See labeler.md for more information
5+
#
6+
# Regularly restore the prediction models from cache to prevent cache eviction
7+
name: "Labeler: Cache Retention"
8+
9+
# For more information about GitHub's action cache limits and eviction policy, see:
10+
# https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
11+
12+
on:
13+
schedule:
14+
- cron: "32 16 * * *" # 16:32 every day (arbitrary time daily)
15+
16+
workflow_dispatch:
17+
inputs:
18+
cache_key:
19+
description: "The cache key suffix to use for restoring the model from cache. Defaults to 'ACTIVE'."
20+
required: true
21+
default: "ACTIVE"
22+
23+
env:
24+
CACHE_KEY: ${{ inputs.cache_key || 'ACTIVE' }}
25+
26+
jobs:
27+
restore-cache:
28+
# Do not automatically run the workflow on forks outside the 'dotnet' org
29+
if: ${{ github.event_name == 'workflow_dispatch' || github.repository_owner == 'dotnet' }}
30+
runs-on: ubuntu-latest
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
type: ["issues", "pulls"]
35+
steps:
36+
- uses: dotnet/issue-labeler/restore@46125e85e6a568dc712f358c39f35317366f5eed # v2.0.0
37+
with:
38+
type: ${{ matrix.type }}
39+
cache_key: ${{ env.CACHE_KEY }}
40+
fail-on-cache-miss: true

0 commit comments

Comments
 (0)