Skip to content

Commit 50d64f3

Browse files
authored
[release/3.1] Switch to consolidated Windows build images and Svc pool (#44348)
- [release/3.1] Switch to consolidated Windows build images and Svc pool - Switch to consolidated Windows build images under eng/common/ - will be overwritten by next Arcade update w/ same changes - Increase a timeout in `AppCanHandleClientAbortingConnectionMidRequest(...)` - was` timing out fairly consistently on macOS
1 parent 05afda1 commit 50d64f3

File tree

7 files changed

+22
-21
lines changed

7 files changed

+22
-21
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ jobs:
9494
vmImage: ubuntu-20.04
9595
${{ if eq(parameters.agentOs, 'Windows') }}:
9696
${{ if eq(variables['System.TeamProject'], 'public') }}:
97-
name: NetCore-Public
97+
name: NetCore-Svc-Public
9898
demands: ImageOverride -equals 1es-windows-2019-open
9999
${{ if eq(variables['System.TeamProject'], 'internal') }}:
100100
name: NetCore1ESPool-Svc-Internal
101101
# Visual Studio Enterprise - contains some stuff, like SQL Server and IIS Express, that we use for testing
102-
demands: ImageOverride -equals Build.Server.Amd64.VS2019
102+
demands: ImageOverride -equals 1es-windows-2019
103103
variables:
104104
- AgentOsName: ${{ parameters.agentOs }}
105105
- ASPNETCORE_TEST_LOG_MAXPATH: "200" # Keep test log file name length low enough for artifact zipping

eng/common/templates/job/onelocbuild.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ parameters:
2222

2323
jobs:
2424
- job: OneLocBuild
25-
25+
2626
dependsOn: ${{ parameters.dependsOn }}
2727

2828
displayName: OneLocBuild
@@ -38,7 +38,7 @@ jobs:
3838
- ${{ if eq(parameters.UseCheckedInLocProjectJson, 'true') }}:
3939
- name: _GenerateLocProjectArguments
4040
value: ${{ variables._GenerateLocProjectArguments }} -UseCheckedInLocProjectJson
41-
41+
4242

4343
steps:
4444
- task: Powershell@2
@@ -81,4 +81,4 @@ jobs:
8181
PathtoPublish: '$(Build.SourcesDirectory)/Localize/'
8282
PublishLocation: Container
8383
ArtifactName: Loc
84-
condition: ${{ parameters.condition }}
84+
condition: ${{ parameters.condition }}

eng/common/templates/jobs/jobs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ parameters:
2222
enabled: false
2323
# Optional: Include toolset dependencies in the generated graph files
2424
includeToolset: false
25-
25+
2626
# Optional: Include PublishTestResults task
2727
enablePublishTestResults: false
2828

@@ -49,7 +49,7 @@ parameters:
4949
jobs:
5050
- ${{ each job in parameters.jobs }}:
5151
- template: ../job/job.yml
52-
parameters:
52+
parameters:
5353
# pass along parameters
5454
${{ each parameter in parameters }}:
5555
${{ if ne(parameter.key, 'jobs') }}:
@@ -79,7 +79,7 @@ jobs:
7979
runAsPublic: ${{ parameters.runAsPublic }}
8080
publishUsingPipelines: ${{ parameters.enablePublishUsingPipelines }}
8181
enablePublishBuildArtifacts: ${{ parameters.enablePublishBuildArtifacts }}
82-
82+
8383
- ${{ if and(eq(parameters.graphFileGeneration.enabled, true), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
8484
- template: ../job/generate-graph-files.yml
8585
parameters:

eng/common/templates/post-build/darc-gather-drop.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
displayName: Darc gather-drop
1818
inputs:
1919
filePath: $(Build.SourcesDirectory)/eng/common/post-build/darc-gather-drop.ps1
20-
arguments: -BarBuildId $(BARBuildId)
21-
-DropLocation $(Agent.BuildDirectory)/Temp/Drop/
20+
arguments: -BarBuildId $(BARBuildId)
21+
-DropLocation $(Agent.BuildDirectory)/Temp/Drop/
2222
-MaestroApiAccessToken $(MaestroApiAccessToken)
2323
-MaestroApiEndPoint $(MaestroApiEndPoint)
2424
-MaestroApiVersion $(MaestroApiVersion)

eng/common/templates/post-build/post-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ stages:
4141
displayName: Validate
4242
inputs:
4343
filePath: $(Build.SourcesDirectory)/eng/common/post-build/nuget-validation.ps1
44-
arguments: -PackagesPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/
45-
-ToolDestinationPath $(Agent.BuildDirectory)/Extract/
44+
arguments: -PackagesPath $(Build.ArtifactStagingDirectory)/PackageArtifacts/
45+
-ToolDestinationPath $(Agent.BuildDirectory)/Extract/
4646

4747
- ${{ if eq(parameters.enableSigningValidation, 'true') }}:
4848
- job:
@@ -70,7 +70,7 @@ stages:
7070
arguments: -task SigningValidation -restore -msbuildEngine dotnet
7171
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
7272
/p:SignCheckExclusionsFile='$(Build.SourcesDirectory)/eng/SignCheckExclusionsFile.txt'
73-
/p:Configuration=Release
73+
/p:Configuration=Release
7474
${{ parameters.signingValidationAdditionalParameters }}
7575

7676
- ${{ if eq(parameters.enableSourceLinkValidation, 'true') }}:
@@ -92,9 +92,9 @@ stages:
9292
displayName: Validate
9393
inputs:
9494
filePath: $(Build.SourcesDirectory)/eng/common/post-build/sourcelink-validation.ps1
95-
arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/
96-
-ExtractPath $(Agent.BuildDirectory)/Extract/
97-
-GHRepoName $(Build.Repository.Name)
95+
arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/
96+
-ExtractPath $(Agent.BuildDirectory)/Extract/
97+
-GHRepoName $(Build.Repository.Name)
9898
-GHCommit $(Build.SourceVersion)
9999
-SourcelinkCliVersion $(SourceLinkCLIVersion)
100100
continueOnError: true
@@ -309,7 +309,7 @@ stages:
309309
transportFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v3/index.json'
310310
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v3/index.json'
311311
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-symbols/nuget/v3/index.json'
312-
312+
313313
- template: \eng\common\templates\post-build\channels\generic-public-channel.yml
314314
parameters:
315315
artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }}
@@ -428,4 +428,4 @@ stages:
428428
channelId: 1012
429429
transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-transport/nuget/v3/index.json'
430430
shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'
431-
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json'
431+
symbolsFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-symbols/nuget/v3/index.json'

eng/common/templates/post-build/promote-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
displayName: Add Build to Channel
2020
inputs:
2121
filePath: $(Build.SourcesDirectory)/eng/common/post-build/promote-build.ps1
22-
arguments: -BuildId $(BARBuildId)
23-
-ChannelId $(ChannelId)
22+
arguments: -BuildId $(BARBuildId)
23+
-ChannelId $(ChannelId)
2424
-MaestroApiAccessToken $(MaestroApiAccessToken)
2525
-MaestroApiEndPoint $(MaestroApiEndPoint)
2626
-MaestroApiVersion $(MaestroApiVersion)

src/Servers/Kestrel/test/FunctionalTests/RequestTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,8 @@ await connection.Send(
832832
connection.Reset();
833833
}
834834

835-
await Assert.ThrowsAnyAsync<IOException>(() => readTcs.Task).DefaultTimeout();
835+
// Has a tendency to timeout on macOS in CI. Doubling TaskConstants.DefaultTimeout.
836+
await Assert.ThrowsAnyAsync<IOException>(() => readTcs.Task).TimeoutAfter(TimeSpan.FromMinutes(1));
836837
await server.StopAsync();
837838
}
838839

0 commit comments

Comments
 (0)