Skip to content

Commit 94c789b

Browse files
New build pools for official builds (dotnet#6103)
1 parent faaa3de commit 94c789b

File tree

4 files changed

+73
-56
lines changed

4 files changed

+73
-56
lines changed

Diff for: build/vsts-ci.yml

+54-42
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ jobs:
2424
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
2525
DOTNET_MULTILEVEL_LOOKUP: 0
2626
pool:
27-
name: DotnetBuild-1ES-Linux
28-
demands:
29-
- agent.os -equals linux
27+
name: NetCore1ESPool-Internal
28+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
3029
container: CentosContainer
3130
steps:
3231
- script: ./restore.sh
@@ -57,9 +56,8 @@ jobs:
5756
DOTNET_MULTILEVEL_LOOKUP: 0
5857
ROOTFS_DIR: '/crossrootfs/arm'
5958
pool:
60-
name: DotnetBuild-1ES-Linux
61-
demands:
62-
- agent.os -equals linux
59+
name: NetCore1ESPool-Internal
60+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
6361
container: UbuntuCrossArmContainer
6462
steps:
6563
- script: ./restore.sh
@@ -90,9 +88,8 @@ jobs:
9088
DOTNET_MULTILEVEL_LOOKUP: 0
9189
ROOTFS_DIR: '/crossrootfs/arm64'
9290
pool:
93-
name: DotnetBuild-1ES-Linux
94-
demands:
95-
- agent.os -equals linux
91+
name: NetCore1ESPool-Internal
92+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
9693
container: UbuntuCrossArm64Container
9794
steps:
9895
- script: ./restore.sh
@@ -197,17 +194,17 @@ jobs:
197194
_UseEsrpSigning: true
198195
_TeamName: DotNetCore
199196
pool:
200-
name: DotNetCore-Build-1ES
201-
demands:
202-
- agent.os -equals Windows_NT
197+
name: NetCore1ESPool-Internal
198+
demands: ImageOverride -equals Build.Server.Amd64.VS2019
203199
steps:
204200

205-
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
201+
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@4
206202
displayName: Install MicroBuild Signing Plugin
207203
inputs:
208204
signType: '$(_SignType)'
209205
zipSources: false
210206
esrpSigning: '$(_UseEsrpSigning)'
207+
feedSource: 'https://dnceng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
211208
env:
212209
TeamName: $(_TeamName)
213210
continueOnError: false
@@ -250,17 +247,17 @@ jobs:
250247
_UseEsrpSigning: true
251248
_TeamName: DotNetCore
252249
pool:
253-
name: DotNetCore-Build-1ES
254-
demands:
255-
- agent.os -equals Windows_NT
250+
name: NetCore1ESPool-Internal
251+
demands: ImageOverride -equals Build.Server.Amd64.VS2019
256252
steps:
257253

258-
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
254+
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@4
259255
displayName: Install MicroBuild Signing Plugin
260256
inputs:
261257
signType: '$(_SignType)'
262258
zipSources: false
263259
esrpSigning: '$(_UseEsrpSigning)'
260+
feedSource: 'https://dnceng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
264261
env:
265262
TeamName: $(_TeamName)
266263
continueOnError: false
@@ -305,32 +302,51 @@ jobs:
305302
- Windows_x64
306303
- MacOS_Apple_Silicon
307304
variables:
308-
BuildConfig: Release
309-
OfficialBuildId: $(BUILD.BUILDNUMBER)
310-
DotnetVersionKind: $[variables.VERSIONKIND] # If no "VERSIONKIND" variable is set when queuing the publishing task, this defaults to empty string.
311-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
312-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
313-
DOTNET_MULTILEVEL_LOOKUP: 0
314-
NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages
315-
_SignType: real
316-
_UseEsrpSigning: true
317-
_TeamName: DotNetCore
318-
_AzureDevopsFeedUrl: https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json
319-
_SymwebSymbolServerPath: https://microsoft.artifacts.visualstudio.com/DefaultCollection
320-
_MsdlSymbolServerPath: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection
305+
- name: BuildConfig
306+
value: Release
307+
- name: OfficialBuildId
308+
value: $(BUILD.BUILDNUMBER)
309+
- name: DotnetVersionKind
310+
value: $[variables.VERSIONKIND] # If no "VERSIONKIND" variable is set when queuing the publishing task, this defaults to empty string.
311+
- name: DOTNET_CLI_TELEMETRY_OPTOUT
312+
value: 1
313+
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
314+
value: 1
315+
- name: DOTNET_MULTILEVEL_LOOKUP
316+
value: 0
317+
- name: NUGET_PACKAGES
318+
value: $(Build.SourcesDirectory)/.packages
319+
- name: _SignType
320+
value: real
321+
- name: _UseEsrpSigning
322+
value: true
323+
- name: _TeamName
324+
value: DotNetCore
325+
- name: _AzureDevopsFeedUrl
326+
value: https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json
327+
- name: _SymwebSymbolServerPath
328+
value: https://microsoft.artifacts.visualstudio.com/DefaultCollection
329+
- name: _MsdlSymbolServerPath
330+
value: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection
331+
332+
# Only enable publishing in non-public, non PR scenarios.
333+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
334+
# DotNet-Symbol-Server-Pats provides: microsoft-symbol-server-pat symweb-symbol-server-pat
335+
- group: DotNet-Symbol-Server-Pats
336+
321337
pool:
322-
name: DotNetCore-Build-1ES
323-
demands:
324-
- agent.os -equals Windows_NT
338+
name: NetCore1ESPool-Internal
339+
demands: ImageOverride -equals Build.Server.Amd64.VS2019
325340
steps:
326341

327342
# Install MicroBuild plugin
328-
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
343+
- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@4
329344
displayName: Install MicroBuild Signing Plugin
330345
inputs:
331346
signType: '$(_SignType)'
332347
zipSources: false
333348
esrpSigning: '$(_UseEsrpSigning)'
349+
feedSource: 'https://dnceng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
334350
env:
335351
TeamName: $(_TeamName)
336352
continueOnError: false
@@ -373,31 +389,27 @@ jobs:
373389
artifactType: container
374390
continueOnError: true
375391

376-
- task: NuGetAuthenticate@0
377-
inputs:
378-
nuGetServiceConnections: machinelearning-dnceng-public-feed # To allow publishing to a feed of another organization
379-
380392
- task: NuGetCommand@2
381393
displayName: Push packages to AzureDevOps feed
382394
inputs:
383395
command: push
396+
nuGetFeedType: 'internal'
397+
publishVstsFeed: 'public/MachineLearning'
384398
packagesToPush: $(Build.SourcesDirectory)/artifacts/**/*.nupkg;!$(Build.SourcesDirectory)/artifacts/**/*.snupkg
385-
nuGetFeedType: external
386-
publishFeedCredentials: machinelearning-dnceng-public-feed
387399

388400
- task: MSBuild@1
389401
displayName: Publish Symbols to SymWeb Symbol Server
390402
inputs:
391403
solution: build/publish.proj
392-
msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_SymwebSymbolServerPath) /p:SymbolServerPAT=$(SymwebSymbolServerPAT)
404+
msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_SymwebSymbolServerPath) /p:SymbolServerPAT=$(symweb-symbol-server-pat)
393405
msbuildVersion: 15.0
394406
continueOnError: true
395407

396408
- task: MSBuild@1
397409
displayName: Publish Symbols to Msdl Symbol Server
398410
inputs:
399411
solution: build/publish.proj
400-
msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_MsdlSymbolServerPath) /p:SymbolServerPAT=$(MsdlSymbolServerPAT)
412+
msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_MsdlSymbolServerPath) /p:SymbolServerPAT=$(microsoft-symbol-server-pat)
401413
msbuildVersion: 15.0
402414
continueOnError: true
403415

Diff for: src/Microsoft.ML.TensorFlow/Microsoft.ML.TensorFlow.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="$(SystemIOFileSystemAccessControl)" />
1414
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindows)" />
1515
<PackageReference Include="TensorFlow.NET" Version="$(TensorflowDotNETVersion)" />
16+
<PackageReference Include="Google.Protobuf" Version="$(GoogleProtobufPackageVersion)" />
1617
</ItemGroup>
1718

1819
<ItemGroup>

Diff for: test/Microsoft.ML.FSharp.Tests/Microsoft.ML.FSharp.Tests.fsproj

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
<PropertyGroup>
44
<!-- NU1604 inclusive lower bound for dependencies.
5-
.NET Framework 4.6.1 includes System.ValueTuple without a version, so we need to ignore the warning here -->
6-
<NoWarn>NU1604;2003;$(NoWarn)</NoWarn>
5+
.NET Framework 4.6.1 includes System.ValueTuple without a version, so we need to ignore the warning here.
6+
Bug in the latest version of VS points to a Version of FSharp.Core that doesn't exist. Temporarily ignoring
7+
NU1603 so it will use the latest version found.-->
8+
<NoWarn>NU1603;NU1604;2003;$(NoWarn)</NoWarn>
79
<PublicSign>false</PublicSign>
810
<SourceLink></SourceLink>
911
<PlatformTarget>$(TargetArchitecture)</PlatformTarget>
@@ -26,6 +28,7 @@
2628
<ProjectReference Include="..\..\src\Microsoft.ML.FastTree\Microsoft.ML.FastTree.csproj" />
2729
<ProjectReference Include="..\..\src\Microsoft.ML.Transforms\Microsoft.ML.Transforms.csproj" />
2830
</ItemGroup>
31+
2932
<ItemGroup>
3033
<NativeAssemblyReference Include="FastTreeNative" />
3134
<NativeAssemblyReference Include="CpuMathNative" />

Diff for: tools-local/Microsoft.ML.StableApi/Microsoft.ML.StableApi.csproj

+13-12
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.Extensions.ML" Version="1.4.0" />
10-
<PackageReference Include="Microsoft.ML" Version="1.4.0" />
11-
<PackageReference Include="Microsoft.ML.DataView" Version="1.4.0" />
12-
<PackageReference Include="Microsoft.ML.CpuMath" Version="1.4.0" />
13-
<PackageReference Include="Microsoft.ML.FastTree" Version="1.4.0" />
14-
<PackageReference Include="Microsoft.ML.LightGbm" Version="1.4.0" />
15-
<PackageReference Include="Microsoft.ML.ImageAnalytics" Version="1.4.0" />
16-
<PackageReference Include="Microsoft.ML.Mkl.Components" Version="1.4.0" />
17-
<PackageReference Include="Microsoft.ML.TimeSeries" Version="1.4.0" />
18-
<PackageReference Include="Microsoft.ML.TensorFlow" Version="1.4.0" />
19-
<PackageReference Include="Microsoft.ML.OnnxTransformer" Version="1.4.0" />
20-
<PackageReference Include="Microsoft.ML.Vision" Version="1.4.0" />
9+
<PackageReference Include="Microsoft.Extensions.ML" Version="1.7.0" />
10+
<PackageReference Include="Microsoft.ML" Version="1.7.0" />
11+
<PackageReference Include="Microsoft.ML.DataView" Version="1.7.0" />
12+
<PackageReference Include="Microsoft.ML.CpuMath" Version="1.7.0" />
13+
<PackageReference Include="Microsoft.ML.FastTree" Version="1.7.0" />
14+
<PackageReference Include="Microsoft.ML.LightGbm" Version="1.7.0" />
15+
<PackageReference Include="Microsoft.ML.ImageAnalytics" Version="1.7.0" />
16+
<PackageReference Include="Microsoft.ML.Mkl.Components" Version="1.7.0" />
17+
<PackageReference Include="Microsoft.ML.TimeSeries" Version="1.7.0" />
18+
<PackageReference Include="Microsoft.ML.TensorFlow" Version="1.7.0" />
19+
<PackageReference Include="Microsoft.ML.OnnxTransformer" Version="1.7.0" />
20+
<PackageReference Include="Microsoft.ML.Vision" Version="1.7.0" />
21+
<PackageReference Include="Google.Protobuf" Version="$(GoogleProtobufPackageVersion)" />
2122
</ItemGroup>
2223

2324
<!-- The purpose of this target is to return a path from a referenced

0 commit comments

Comments
 (0)