Skip to content

Commit 414c817

Browse files
authored
Merge branch 'main' into update-dotnet-sdk-9.0.100-preview.4.24208.2
2 parents 50c0253 + 79ef5e3 commit 414c817

File tree

114 files changed

+1557
-799
lines changed

Some content is hidden

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

114 files changed

+1557
-799
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,10 @@ variables:
5050
value: true
5151
- name: _UseHelixOpenQueues
5252
value: ${{ ne(variables['System.TeamProject'], 'internal') }}
53-
- ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
54-
- name: _BuildArgs
55-
value: /p:TeamName=$(_TeamName)
56-
/p:OfficialBuildId=$(Build.BuildNumber)
57-
/p:SkipTestBuild=true
58-
/p:PostBuildSign=$(PostBuildSign)
59-
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
60-
- group: Publish-Build-Assets
61-
# The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
62-
- name: _PublishArgs
63-
value: /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
64-
- ${{ if ne(parameters.produceBinlogs, 'true') }}:
65-
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
66-
- name: WindowsArm64LogArgs
67-
value: -ExcludeCIBinaryLog
68-
- name: Windows64LogArgs
69-
value: -ExcludeCIBinaryLog
70-
- name: Windows86LogArgs
71-
value: -ExcludeCIBinaryLog
72-
- name: WindowsSignLogArgs
73-
value: -ExcludeCIBinaryLog
74-
- name: WindowsInstallersLogArgs
75-
value: -ExcludeCIBinaryLog
76-
- name: WindowsArm64InstallersLogArgs
77-
value: -ExcludeCIBinaryLog
78-
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
79-
- name: _BuildArgs
80-
value: '/p:SkipTestBuild=true /p:PostBuildSign=$(PostBuildSign)'
81-
- name: _PublishArgs
82-
value: ''
53+
- name: _BuildArgs
54+
value: '/p:SkipTestBuild=true /p:PostBuildSign=$(PostBuildSign)'
55+
- name: _PublishArgs
56+
value: ''
8357
# Write binary logs for all main Windows build steps except the x86 one in public and PR builds.
8458
- name: WindowsArm64LogArgs
8559
value: /bl:artifacts/log/Release/Build.arm64.binlog
@@ -99,6 +73,10 @@ variables:
9973
value: ''
10074
- name: _InternalRuntimeDownloadCodeSignArgs
10175
value: ''
76+
- name: Codeql.Enabled
77+
value: false
78+
- name: Codeql.SkipTaskAutoInjection
79+
value: true
10280
- template: /eng/common/templates/variables/pool-providers.yml
10381

10482
resources:
@@ -503,7 +481,7 @@ stages:
503481
jobDisplayName: "Build: Linux Musl ARM"
504482
agentOs: Linux
505483
useHostedUbuntu: false
506-
container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm-alpine
484+
container: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm-alpine
507485
buildArgs:
508486
--arch arm
509487
--os-name linux-musl
@@ -536,7 +514,7 @@ stages:
536514
jobDisplayName: "Build: Linux Musl ARM64"
537515
agentOs: Linux
538516
useHostedUbuntu: false
539-
container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm64-alpine
517+
container: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64-alpine
540518
buildArgs:
541519
--arch arm64
542520
--os-name linux-musl
@@ -671,4 +649,4 @@ stages:
671649
timeoutInMinutes: 120
672650
variables:
673651
# Log environment variables in binary logs to ease debugging
674-
MSBUILDLOGALLENVIRONMENTVARIABLES: true
652+
MSBUILDLOGALLENVIRONMENTVARIABLES: true

.azure/pipelines/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ extends:
141141
containers:
142142
alpine319WithNode:
143143
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode
144-
ubuntu2204CrossArmAlpine:
145-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm-alpine
146-
ubuntu2204CrossArm64Alpine:
147-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm64-alpine
144+
mariner20CrossArmAlpine:
145+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm-alpine
146+
mariner20CrossArm64Alpine:
147+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64-alpine
148148
stages:
149149
- stage: build
150150
displayName: Build
@@ -540,7 +540,7 @@ extends:
540540
jobDisplayName: "Build: Linux Musl ARM"
541541
agentOs: Linux
542542
useHostedUbuntu: false
543-
container: ubuntu2204CrossArmAlpine
543+
container: mariner20CrossArmAlpine
544544
buildArgs:
545545
--arch arm
546546
--os-name linux-musl
@@ -573,7 +573,7 @@ extends:
573573
jobDisplayName: "Build: Linux Musl ARM64"
574574
agentOs: Linux
575575
useHostedUbuntu: false
576-
container: ubuntu2204CrossArm64Alpine
576+
container: mariner20CrossArm64Alpine
577577
buildArgs:
578578
--arch arm64
579579
--os-name linux-musl

.azure/pipelines/helix-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
jobName: Helix_matrix_x64
3030
jobDisplayName: 'Tests: Helix full matrix x64'
3131
agentOs: Windows
32-
timeoutInMinutes: 480
32+
timeoutInMinutes: 300
3333
steps:
3434
# Build the shared framework
3535
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ jobs:
108108
${{ if eq(parameters.agentOs, 'macOS') }}:
109109
vmImage: macOS-12
110110
${{ if eq(parameters.agentOs, 'Linux') }}:
111-
${{ if and(eq(parameters.useHostedUbuntu, true), in(variables['Build.Reason'], 'Manual', 'PullRequest', 'Schedule')) }}:
111+
${{ if eq(parameters.useHostedUbuntu, true) }}:
112112
vmImage: ubuntu-20.04
113-
${{ if or(eq(parameters.useHostedUbuntu, false), notin(variables['Build.Reason'], 'Manual', 'PullRequest', 'Schedule')) }}:
113+
${{ else }}:
114114
name: $(DncEngPublicBuildPool)
115115
demands: ImageOverride -equals Build.Ubuntu.2004.Amd64.Open
116116
${{ if eq(parameters.agentOs, 'Windows') }}:
@@ -352,7 +352,9 @@ jobs:
352352
- LC_ALL: 'en_US.UTF-8'
353353
- LANG: 'en_US.UTF-8'
354354
- LANGUAGE: 'en_US.UTF-8'
355-
- ${{ if eq(parameters.codeSign, true) }}:
355+
- ${{ if ne(parameters.codeSign, true) }}:
356+
- _SignType: ''
357+
- ${{ else }}:
356358
- ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
357359
- _SignType: real
358360
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:

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

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,38 @@ variables:
88
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
99
- group: DotNet-MSRC-Storage
1010
- group: AzureDevOps-Artifact-Feeds-Pats
11-
- template: /eng/common/templates/variables/pool-providers.yml
11+
- template: /eng/common/templates-official/variables/pool-providers.yml@self
1212

13-
# The only Daily Tests we have run in Sauce Labs and only need to run on one machine (because they just trigger SauceLabs)
14-
# Hence we use the 'default-build.yml' template because it represents a single phase
15-
jobs:
16-
- template: jobs/default-build.yml
13+
resources:
14+
repositories:
15+
# Repo: 1ESPipelineTemplates/1ESPipelineTemplates
16+
- repository: 1esPipelines
17+
type: git
18+
name: 1ESPipelineTemplates/1ESPipelineTemplates
19+
ref: refs/tags/release
20+
21+
extends:
22+
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
1723
parameters:
18-
buildDirectory: src/SignalR
19-
buildArgs: "/p:DailyTests=true /p:SauceUser='$(asplab-sauce-labs-username)' /p:SauceKey='$(asplab-sauce-labs-access-key)' -t"
20-
agentOs: Windows
21-
jobName: SignalRDailyTests
22-
jobDisplayName: "SignalR Daily Tests"
23-
artifacts:
24-
- name: Windows_Logs
25-
path: artifacts/log/
26-
publishOnError: true
24+
sdl:
25+
sourceAnalysisPool:
26+
name: NetCore1ESPool-Svc-Internal
27+
image: 1es-windows-2022-pt
28+
os: windows
29+
stages:
30+
- stage: build
31+
displayName: Build
32+
# The only Daily Tests we have run in Sauce Labs and only need to run on one machine (because they just trigger SauceLabs)
33+
# Hence we use the 'default-build.yml' template because it represents a single phase
34+
jobs:
35+
- template: .azure/pipelines/jobs/default-build.yml@self
36+
parameters:
37+
buildDirectory: src/SignalR
38+
buildArgs: "/p:DailyTests=true /p:SauceUser='$(asplab-sauce-labs-username)' /p:SauceKey='$(asplab-sauce-labs-access-key)' -t"
39+
agentOs: Windows
40+
jobName: SignalRDailyTests
41+
jobDisplayName: "SignalR Daily Tests"
42+
artifacts:
43+
- name: Windows_Logs
44+
path: artifacts/log/
45+
publishOnError: true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
3+
pipelines:
4+
21:
5+
retail:
6+
source:
7+
credscan:
8+
lastModifiedDate: 2024-03-22
9+
eslint:
10+
lastModifiedDate: 2024-03-22
11+
psscriptanalyzer:
12+
lastModifiedDate: 2024-03-22
13+
armory:
14+
lastModifiedDate: 2024-03-22
15+
binary:
16+
credscan:
17+
lastModifiedDate: 2024-03-22
18+
binskim:
19+
lastModifiedDate: 2024-03-22
20+
spotbugs:
21+
lastModifiedDate: 2024-03-22

.config/guardian/.gdnbaselines

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"properties": {
3+
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines"
4+
},
5+
"version": "1.0.0",
6+
"baselines": {
7+
"default": {
8+
"name": "default",
9+
"createdDate": "2024-03-22 19:39:15Z",
10+
"lastUpdatedDate": "2024-03-22 19:39:15Z"
11+
}
12+
},
13+
"results": {
14+
"b225abd0112d9acb60d51b4140e53f850d297b6fbf8a8a16c2bbcbf74e8117ec": {
15+
"signature": "b225abd0112d9acb60d51b4140e53f850d297b6fbf8a8a16c2bbcbf74e8117ec",
16+
"alternativeSignatures": [
17+
"7428887e9b12f8bfcd82f7a3c558516c0ff010dca528c6e14c651e483e481c3e"
18+
],
19+
"target": "src/DataProtection/CreateTestCert.ps1",
20+
"line": 11,
21+
"memberOf": [
22+
"default"
23+
],
24+
"tool": "psscriptanalyzer",
25+
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
26+
"createdDate": "2024-03-22 19:39:15Z",
27+
"expirationDate": "2024-09-08 20:36:51Z",
28+
"justification": "This error is baselined with an expiration date of 180 days from 2024-03-22 20:36:51Z"
29+
},
30+
"4b9e42233bd060f0007b20cdd0d0cade4dc4e67780b5f5b62b0355e96a610dd2": {
31+
"signature": "4b9e42233bd060f0007b20cdd0d0cade4dc4e67780b5f5b62b0355e96a610dd2",
32+
"alternativeSignatures": [
33+
"e2a5a619bd7c6d200340a7d986cd01fec9427c65df0eef321fc8c853f00c8632"
34+
],
35+
"target": "src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemotePSSessionHelper.ps1",
36+
"line": 40,
37+
"memberOf": [
38+
"default"
39+
],
40+
"tool": "psscriptanalyzer",
41+
"ruleId": "PSAvoidUsingConvertToSecureStringWithPlainText",
42+
"createdDate": "2024-03-22 19:39:15Z",
43+
"expirationDate": "2024-09-08 20:36:51Z",
44+
"justification": "This error is baselined with an expiration date of 180 days from 2024-03-22 20:36:51Z"
45+
},
46+
"b3736a918ff8d688843a2c76bfce1661c484e260144140c9df23f1147da102c0": {
47+
"signature": "b3736a918ff8d688843a2c76bfce1661c484e260144140c9df23f1147da102c0",
48+
"alternativeSignatures": [],
49+
"target": "spotbugs.xml",
50+
"memberOf": [
51+
"default"
52+
],
53+
"tool": "spotbugs",
54+
"ruleId": "gdn.unknownFormatResult",
55+
"createdDate": "2024-03-22 20:06:23Z",
56+
"expirationDate": "2024-09-08 20:36:51Z",
57+
"justification": "This error is baselined with an expiration date of 180 days from 2024-03-22 20:36:51Z"
58+
}
59+
}
60+
}

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ dotnet_diagnostic.CA2014.severity = warning
254254
# CA2016: Forward the 'CancellationToken' parameter to methods that take one
255255
dotnet_diagnostic.CA2016.severity = warning
256256

257+
# CA2022: Avoid inexact read with `Stream.Read`
258+
dotnet_diagnostic.CA2022.severity = warning
259+
257260
# CA2200: Rethrow to preserve stack details
258261
dotnet_diagnostic.CA2200.severity = warning
259262

@@ -407,6 +410,8 @@ dotnet_diagnostic.CA2007.severity = suggestion
407410
dotnet_diagnostic.CA2008.severity = suggestion
408411
# CA2012: Use ValueTask correctly
409412
dotnet_diagnostic.CA2012.severity = suggestion
413+
# CA2022: Avoid inexact read with `Stream.Read`
414+
dotnet_diagnostic.CA2022.severity = suggestion
410415
# CA2201: Do not raise reserved exception types
411416
dotnet_diagnostic.CA2201.severity = suggestion
412417
# CA2249: Use string.Contains instead of string.IndexOf to improve readability.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ updates:
4747
include: scope
4848
ignore:
4949
# Don't auto-update the Node-Externals submodule
50-
- dependency-name: "Node-Externals*"
50+
- dependency-name: "src/submodules/Node-Externals"
5151
labels:
5252
- area-infrastructure
5353

.github/policies/resourceManagement.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ configuration:
685685
then:
686686
- removeMilestone
687687
- addMilestone:
688-
milestone: 6.0.29
688+
milestone: 6.0.30
689689
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/6.0 branch'
690690
- if:
691691
- payloadType: Pull_Request
@@ -696,7 +696,7 @@ configuration:
696696
then:
697697
- removeMilestone
698698
- addMilestone:
699-
milestone: 7.0.18
699+
milestone: 7.0.19
700700
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/7.0 branch'
701701
- if:
702702
- payloadType: Pull_Request
@@ -707,7 +707,7 @@ configuration:
707707
then:
708708
- removeMilestone
709709
- addMilestone:
710-
milestone: 8.0.4
710+
milestone: 8.0.5
711711
description: '[Milestone Assignments] Assign Milestone to PRs merged to release/8.0 branch'
712712
- if:
713713
- payloadType: Issues

0 commit comments

Comments
 (0)