From 49197152df5987adf603f016323c393f84eb7644 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Mon, 23 Nov 2026 20:39:36 +0000 Subject: [PATCH 1/2] Backflow from https://github.com/dotnet/dotnet / 3619558 build 342796 Diff: https://github.com/dotnet/dotnet/compare/581758a812b7fb92a42a1608b5770a0130b36ccd..3619558858a84d291617f0d01d0b452b367f17eb From: https://github.com/dotnet/dotnet/commit/581758a812b7fb92a42a1608b5770a0130b36ccd To: https://github.com/dotnet/dotnet/commit/3619558858a84d291617f0d01d0b452b367f17eb [[ commit created by automation ]] --- src/coreclr/tools/ILVerification/ILVerification.csproj | 2 +- .../nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/Sdk.targets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/tools/ILVerification/ILVerification.csproj b/src/coreclr/tools/ILVerification/ILVerification.csproj index 5dda4f7c4b9c3a..de70750da733af 100644 --- a/src/coreclr/tools/ILVerification/ILVerification.csproj +++ b/src/coreclr/tools/ILVerification/ILVerification.csproj @@ -6,7 +6,7 @@ true false false - $(NetCoreAppToolCurrent) + $(NetCoreAppMinimum) true Open false diff --git a/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/Sdk.targets b/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/Sdk.targets index d8864f69b5c488..1c418bfdff01d6 100644 --- a/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/Sdk.targets +++ b/src/mono/nuget/Microsoft.NET.Runtime.WebAssembly.Sdk/Sdk/Sdk.targets @@ -20,6 +20,6 @@ eng/OSArch.props derives them from the RID. --> - + From 492c16f033e244da9d1da4afe6d5983243e13754 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Mon, 23 Nov 2026 20:39:44 +0000 Subject: [PATCH 2/2] Update dependencies from build 342796 Updated Dependencies: Microsoft.CodeAnalysis, Microsoft.CodeAnalysis.Analyzers, Microsoft.CodeAnalysis.BannedApiAnalyzers, Microsoft.CodeAnalysis.CSharp, Microsoft.CodeAnalysis.CSharp.Workspaces, Microsoft.CodeAnalysis.Workspaces.MSBuild, Microsoft.Net.Compilers.Toolset (Version 5.14.0-1.26561.116 -> 5.14.0-1.26573.102) Microsoft.CodeAnalysis.NetAnalyzers, Microsoft.DotNet.ApiCompat.Task, Microsoft.DotNet.GenAPI.Task (Version 12.0.100-alpha.1.26561.116 -> 12.0.100-alpha.1.26573.102) Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Archives, Microsoft.DotNet.Build.Tasks.Feed, Microsoft.DotNet.Build.Tasks.FileCatalog, Microsoft.DotNet.Build.Tasks.Installers, Microsoft.DotNet.Build.Tasks.Packaging, Microsoft.DotNet.Build.Tasks.TargetFramework, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.CodeAnalysis, Microsoft.DotNet.GenAPI, Microsoft.DotNet.GenFacades, Microsoft.DotNet.Helix.JobMonitor, Microsoft.DotNet.Helix.Sdk, Microsoft.DotNet.PackageTesting, Microsoft.DotNet.RemoteExecutor, Microsoft.DotNet.SharedFramework.Sdk, Microsoft.DotNet.XliffTasks, Microsoft.DotNet.XUnitExtensions (Version 12.0.0-beta.26561.116 -> 12.0.0-beta.26573.102) Microsoft.DotNet.Cecil (Version 0.11.5-preview.26561.116 -> 0.11.5-preview.26573.102) Microsoft.DotNet.XUnitConsoleRunner (Version 2.9.3-beta.26561.116 -> 2.9.3-beta.26573.102) Microsoft.NET.Runtime.Emscripten.Internal, Microsoft.NET.Sdk.IL, Microsoft.NETCore.App.Ref, Microsoft.NETCore.ILAsm, runtime.native.System.IO.Ports, System.Reflection.Metadata, System.Reflection.MetadataLoadContext, System.Text.Json (Version 12.0.0-alpha.1.26561.116 -> 12.0.0-alpha.1.26573.102) NuGet.Frameworks, NuGet.Packaging, NuGet.ProjectModel, NuGet.Versioning (Version 8.2.0-rc.56216 -> 8.2.0-rc.57402) System.CommandLine (Version 4.0.0-alpha.1.26561.116 -> 4.0.0-alpha.1.26573.102) runtime.linux-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.win-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.win-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.osx-arm64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.osx-x64.Microsoft.NETCore.Runtime.JIT.Tools, runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.win-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.osx-arm64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools, runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Libclang, runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Sdk, runtime.osx-x64.Microsoft.NETCore.Runtime.Mono.LLVM.Tools (Version 23.1.0-alpha.1.26552.1 -> 23.1.0-alpha.1.26566.1) runtime.linux-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.linux-musl-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.linux-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.linux-musl-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.osx-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.osx-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.win-arm64.Microsoft.NETCore.Runtime.Wasm.Node.Transport, runtime.win-x64.Microsoft.NETCore.Runtime.Wasm.Node.Transport (Version 12.0.0-alpha.1.26555.1 -> 12.0.0-alpha.1.26567.1) [[ commit created by automation ]] --- .config/dotnet-tools.json | 2 +- eng/Version.Details.props | 160 ++++----- eng/Version.Details.xml | 322 +++++++++--------- eng/common/Get-GitHubAppToken.ps1 | 103 +++--- eng/common/core-templates/job/onelocbuild.yml | 4 +- .../core-templates/steps/astred-artifacts.yml | 55 ++- .../steps/get-github-app-token.yml | 19 +- .../core-templates/steps/source-build.yml | 2 +- eng/common/cross/build-rootfs.sh | 15 +- eng/common/tools.ps1 | 37 +- eng/common/tools.sh | 29 +- global.json | 8 +- 12 files changed, 424 insertions(+), 332 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 2c9453f216e656..766aee852372d6 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -27,7 +27,7 @@ ] }, "microsoft.dotnet.helix.jobmonitor": { - "version": "12.0.0-beta.26561.116", + "version": "12.0.0-beta.26573.102", "commands": [ "dotnet-helix-job-monitor" ] diff --git a/eng/Version.Details.props b/eng/Version.Details.props index e706f75b4cb73e..5d84251e618d6c 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -6,90 +6,90 @@ This file should be imported by eng/Versions.props - 5.14.0-1.26561.116 - 5.14.0-1.26561.116 - 5.14.0-1.26561.116 - 5.14.0-1.26561.116 - 5.14.0-1.26561.116 - 12.0.100-alpha.1.26561.116 - 5.14.0-1.26561.116 - 12.0.100-alpha.1.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 0.11.5-preview.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.100-alpha.1.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 12.0.0-beta.26561.116 - 2.9.3-beta.26561.116 - 12.0.0-beta.26561.116 - 5.14.0-1.26561.116 - 12.0.0-alpha.1.26561.116 - 12.0.0-alpha.1.26561.116 - 12.0.0-alpha.1.26561.116 - 12.0.0-alpha.1.26561.116 - 8.2.0-rc.56216 - 8.2.0-rc.56216 - 8.2.0-rc.56216 - 8.2.0-rc.56216 - 12.0.0-alpha.1.26561.116 - 4.0.0-alpha.1.26561.116 - 12.0.0-alpha.1.26561.116 - 12.0.0-alpha.1.26561.116 - 12.0.0-alpha.1.26561.116 + 5.14.0-1.26573.102 + 5.14.0-1.26573.102 + 5.14.0-1.26573.102 + 5.14.0-1.26573.102 + 5.14.0-1.26573.102 + 12.0.100-alpha.1.26573.102 + 5.14.0-1.26573.102 + 12.0.100-alpha.1.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 0.11.5-preview.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.100-alpha.1.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 12.0.0-beta.26573.102 + 2.9.3-beta.26573.102 + 12.0.0-beta.26573.102 + 5.14.0-1.26573.102 + 12.0.0-alpha.1.26573.102 + 12.0.0-alpha.1.26573.102 + 12.0.0-alpha.1.26573.102 + 12.0.0-alpha.1.26573.102 + 8.2.0-rc.57402 + 8.2.0-rc.57402 + 8.2.0-rc.57402 + 8.2.0-rc.57402 + 12.0.0-alpha.1.26573.102 + 4.0.0-alpha.1.26573.102 + 12.0.0-alpha.1.26573.102 + 12.0.0-alpha.1.26573.102 + 12.0.0-alpha.1.26573.102 12.0.0-alpha.1.26569.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 - 23.1.0-alpha.1.26552.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 + 23.1.0-alpha.1.26566.1 - 12.0.0-alpha.1.26555.1 - 12.0.0-alpha.1.26555.1 - 12.0.0-alpha.1.26555.1 - 12.0.0-alpha.1.26555.1 - 12.0.0-alpha.1.26555.1 - 12.0.0-alpha.1.26555.1 - 12.0.0-alpha.1.26555.1 - 12.0.0-alpha.1.26555.1 + 12.0.0-alpha.1.26567.1 + 12.0.0-alpha.1.26567.1 + 12.0.0-alpha.1.26567.1 + 12.0.0-alpha.1.26567.1 + 12.0.0-alpha.1.26567.1 + 12.0.0-alpha.1.26567.1 + 12.0.0-alpha.1.26567.1 + 12.0.0-alpha.1.26567.1 1.0.0-prerelease.26502.1 1.0.0-prerelease.26451.1 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 3c6c038eed1981..e47ccb5c1b11ac 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,127 +1,127 @@ - + https://github.com/dotnet/icu 0d85fcb46da6eca41b48c96fd8f6b7c927d383be - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb https://github.com/dotnet/runtime-assets @@ -175,117 +175,117 @@ https://github.com/dotnet/runtime-assets a974fe964198fc1b9388375b2d51b0eff2f27ad8 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/llvm-project - b7cbe9c6cf3ea97cc5822cf324cbcef06f54a397 + 7de62a913d7e7d624a03af82dcf3ef993c6496f6 - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb https://github.com/dotnet/xharness @@ -299,9 +299,9 @@ https://github.com/dotnet/xharness 3aef03a84ca48d693e99157858c6d5d1f0b9ee57 - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb https://dev.azure.com/dnceng/internal/_git/dotnet-optimization @@ -327,41 +327,41 @@ https://github.com/dotnet/runtime-assets a974fe964198fc1b9388375b2d51b0eff2f27ad8 - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb https://dev.azure.com/dnceng/internal/_git/dotnet-optimization @@ -373,53 +373,53 @@ - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 - + https://github.com/dotnet/node - d94453aacd8c82c25af60b2bac86b15064cda30b + b58884415cbefc9225a57ef4c3f436e3cce3b971 https://github.com/dotnet/runtime-assets @@ -429,9 +429,9 @@ https://github.com/dotnet/runtime-assets a974fe964198fc1b9388375b2d51b0eff2f27ad8 - + https://github.com/dotnet/dotnet - 60864f1c9f7bc774d1c191ef6f1630e81607cd62 + 3619558858a84d291617f0d01d0b452b367f17eb diff --git a/eng/common/Get-GitHubAppToken.ps1 b/eng/common/Get-GitHubAppToken.ps1 index ec005e487c38e2..8b26d303b4f0c8 100644 --- a/eng/common/Get-GitHubAppToken.ps1 +++ b/eng/common/Get-GitHubAppToken.ps1 @@ -1,11 +1,12 @@ # Mints a short-lived GitHub App installation access token by signing a JWT -# with an RSA private key (RS256). The signed JWT is exchanged with the GitHub -# API for a token scoped to a single installation. +# via Azure Key Vault's RSA signing operation (RS256). The private key never +# leaves Key Vault. The JWT is exchanged for a single installation's token. # # Requirements: -# - A GitHub App ID and PEM private key stored as Azure Key Vault secrets. -# - The federated Azure service connection running this script must have -# `Get` access to those two secrets. +# - The GitHub App's private key imported as a Key Vault RSA key. +# - Read access to the configured App-ID secret projection. +# - The federated Azure service connection must have the `Sign` action on +# that key. Reading private-key secrets is neither required nor supported. # - The App must be installed on the target organization/account # (`InstallationOwner`) with the permissions/repositories it needs. # @@ -14,17 +15,19 @@ [CmdletBinding()] param( - # Name of the Key Vault holding the GitHub App credentials. + # Key Vault holding the App-ID projection and RSA signing key. [Parameter(Mandatory = $true)] [string] $KeyVaultName, - # Secret Manager projection containing the GitHub App ID. + # Name of the RSA signing key, not a Key Vault secret. [Parameter(Mandatory = $true)] - [string] $AppIdSecretName, + [ValidateNotNullOrEmpty()] + [string] $KeyName, - # Secret Manager projection containing the PEM private key. + # Secret Manager projection containing the GitHub App's public ID. [Parameter(Mandatory = $true)] - [string] $AppPrivateKeySecretName, + [ValidateNotNullOrEmpty()] + [string] $AppIdSecretName, # Login of the organization or user account whose installation we should # mint the token for (e.g. `dotnet`, `microsoft`). @@ -51,55 +54,33 @@ function ConvertTo-Base64Url([byte[]] $bytes) { return [Convert]::ToBase64String($bytes).TrimEnd('=').Replace('+', '-').Replace('/', '_') } +Write-Host "Reading GitHub App ID from secret '$AppIdSecretName' in vault '$KeyVaultName'..." $previousNativeCommandErrorPreference = $PSNativeCommandUseErrorActionPreference try { - # Azure CLI can emit non-fatal Python warnings to stderr. $PSNativeCommandUseErrorActionPreference = $false - $keyVaultAccessToken = az account get-access-token ` + # az keyvault secret show fails for this projection with Errno 22; az rest keeps authentication in Azure CLI. + $escapedSecretName = [Uri]::EscapeDataString($AppIdSecretName) + $appId = az rest ` + --method get ` + --url "https://$KeyVaultName.vault.azure.net/secrets/${escapedSecretName}?api-version=7.4" ` --resource https://vault.azure.net ` - --query accessToken ` + --query value ` --output tsv ` --only-show-errors - $tokenExitCode = $LASTEXITCODE + $secretExitCode = $LASTEXITCODE } catch { - Write-PipelineTelemetryError -Category 'Build' -Message "Failed to acquire an Azure Key Vault access token: $_" + Write-PipelineTelemetryError -Category 'Build' -Message "Failed to read App ID secret '$AppIdSecretName' from vault '$KeyVaultName' with Azure CLI: $_" exit 1 } finally { $PSNativeCommandUseErrorActionPreference = $previousNativeCommandErrorPreference } -if ($tokenExitCode -ne 0 -or [string]::IsNullOrWhiteSpace($keyVaultAccessToken)) { - Write-PipelineTelemetryError -Category 'Build' -Message "'az account get-access-token' exited with code $tokenExitCode while acquiring an Azure Key Vault access token." +if ($secretExitCode -ne 0 -or [string]::IsNullOrWhiteSpace($appId)) { + Write-PipelineTelemetryError -Category 'Build' -Message "'az rest' failed with exit code $secretExitCode while reading App ID secret '$AppIdSecretName' from vault '$KeyVaultName'. Verify the service connection can read this App-ID projection." exit 1 } -function Get-KeyVaultSecret([string] $SecretName) { - # Use the data-plane REST API because `az keyvault secret show` can fail - # with Errno 22 on hosted Windows agents when reading these projections. - $escapedSecretName = [Uri]::EscapeDataString($SecretName) - $secretUri = "https://$KeyVaultName.vault.azure.net/secrets/$escapedSecretName`?api-version=7.4" - try { - $response = Invoke-RestMethod ` - -Uri $secretUri ` - -Headers @{ Authorization = "Bearer $keyVaultAccessToken" } ` - -Method Get - } - catch { - Write-PipelineTelemetryError -Category 'Build' -Message "Failed to read secret '$SecretName' from vault '$KeyVaultName': $_. Verify the secret exists and the service connection has 'Key Vault Secrets User' access to it." - exit 1 - } - if ([string]::IsNullOrWhiteSpace($response.value)) { - Write-PipelineTelemetryError -Category 'Build' -Message "Secret '$SecretName' in vault '$KeyVaultName' is empty." - exit 1 - } - return [string] $response.value -} - -Write-Host "Reading GitHub App credentials from vault '$KeyVaultName'..." -$appId = Get-KeyVaultSecret $AppIdSecretName -$privateKey = Get-KeyVaultSecret $AppPrivateKeySecretName - # Build JWT header and payload. Use [ordered] hashtables so JSON # serialization is deterministic. $jwtHeader = [ordered]@{ @@ -125,23 +106,34 @@ finally { $sha256.Dispose() } -Write-Host 'Signing JWT with the GitHub App private key...' -$rsa = [System.Security.Cryptography.RSA]::Create() +$digestBase64 = [Convert]::ToBase64String($digestBytes) +Write-Host "Signing JWT with key '$KeyName' in vault '$KeyVaultName'..." +$previousNativeCommandErrorPreference = $PSNativeCommandUseErrorActionPreference try { - $rsa.ImportFromPem($privateKey) - $signatureBytes = $rsa.SignHash( - $digestBytes, - [System.Security.Cryptography.HashAlgorithmName]::SHA256, - [System.Security.Cryptography.RSASignaturePadding]::Pkcs1) - $signatureUrl = ConvertTo-Base64Url $signatureBytes + # Azure CLI can emit non-fatal Python warnings to stderr. + $PSNativeCommandUseErrorActionPreference = $false + $signatureBase64 = az keyvault key sign ` + --vault-name $KeyVaultName ` + --name $KeyName ` + --algorithm RS256 ` + --digest $digestBase64 ` + --query signature ` + --output tsv ` + --only-show-errors + $signExitCode = $LASTEXITCODE } catch { - Write-PipelineTelemetryError -Category 'Build' -Message "Failed to sign the GitHub App JWT with the supplied private key: $_" + Write-PipelineTelemetryError -Category 'Build' -Message "Failed to sign the JWT via Key Vault (key '$KeyName', vault '$KeyVaultName'): $_. Verify the service connection has the Sign action on the key." exit 1 } finally { - $rsa.Dispose() + $PSNativeCommandUseErrorActionPreference = $previousNativeCommandErrorPreference +} +if ($signExitCode -ne 0 -or [string]::IsNullOrWhiteSpace($signatureBase64)) { + Write-PipelineTelemetryError -Category 'Build' -Message "'az keyvault key sign' exited with code $signExitCode for key '$KeyName' in vault '$KeyVaultName'. Verify the service connection has the Sign action on the key." + exit 1 } +$signatureUrl = $signatureBase64.Trim().TrimEnd('=').Replace('+', '-').Replace('/', '_') $jwt = "$signingInput.$signatureUrl" $headers = @{ @@ -198,6 +190,11 @@ catch { exit 1 } +if ([string]::IsNullOrWhiteSpace($tokenResponse.token)) { + Write-PipelineTelemetryError -Category 'Build' -Message "GitHub returned an empty installation token for '$InstallationOwner'." + exit 1 +} + Write-Host "Got installation token for '$InstallationOwner' (expires $($tokenResponse.expires_at))." if ($OutputVariableName) { Write-Host "Setting pipeline variable '$OutputVariableName'." diff --git a/eng/common/core-templates/job/onelocbuild.yml b/eng/common/core-templates/job/onelocbuild.yml index bd11c2e08cb5f0..555a656289f0c0 100644 --- a/eng/common/core-templates/job/onelocbuild.yml +++ b/eng/common/core-templates/job/onelocbuild.yml @@ -12,7 +12,7 @@ parameters: GitHubAppServiceConnection: 'dnceng-oneloc-githubapp' GitHubAppKeyVaultName: 'EngKeyVault' GitHubAppIdSecretName: 'oneloc-localization-app-app-id' - GitHubAppPrivateKeySecretName: 'oneloc-localization-app-app-private-key' + GitHubAppKeyName: 'oneloc-localization-app-key' SourcesDirectory: $(System.DefaultWorkingDirectory) CreatePr: true @@ -101,7 +101,7 @@ jobs: azureSubscription: ${{ parameters.GitHubAppServiceConnection }} keyVaultName: ${{ parameters.GitHubAppKeyVaultName }} appIdSecretName: ${{ parameters.GitHubAppIdSecretName }} - appPrivateKeySecretName: ${{ parameters.GitHubAppPrivateKeySecretName }} + keyName: ${{ parameters.GitHubAppKeyName }} installationOwner: ${{ parameters.GitHubOrg }} outputVariableName: 'GitHubAppInstallationToken' condition: ${{ parameters.condition }} diff --git a/eng/common/core-templates/steps/astred-artifacts.yml b/eng/common/core-templates/steps/astred-artifacts.yml index 86420925b44095..adcf2a9281b666 100644 --- a/eng/common/core-templates/steps/astred-artifacts.yml +++ b/eng/common/core-templates/steps/astred-artifacts.yml @@ -9,6 +9,13 @@ parameters: - name: binlogDir type: string default: $(Build.ArtifactStagingDirectory)/AstredCapture/binlogs +- name: compilationDatabaseDir + type: string + default: '' +# Optional Windows setup command to obtain INCLUDE for compilation database imports. +- name: nativeEnvironmentCommand + type: string + default: '' - name: capturePath type: string default: $(Build.ArtifactStagingDirectory)/AstredCapture @@ -17,7 +24,7 @@ steps: - task: AstredInstaller@0 displayName: Install Astred CLI inputs: - Version: '2.14.1' + Version: '2.14.37' FeedUrl: 'https://pkgs.dev.azure.com/dnceng/_packaging/dotnet-internal-FoSSE/nuget/v3/index.json' - pwsh: | @@ -25,19 +32,51 @@ steps: $apjOut = Join-Path $env:ASTRED_CAPTURE_PATH 'apj' New-Item -ItemType Directory -Force -Path $apjOut | Out-Null - $binlogs = Get-ChildItem -Path $env:ASTRED_BINLOG_DIR -Recurse -Force -Filter *.binlog ` - -ErrorAction SilentlyContinue + $binlogs = @(Get-ChildItem -Path $env:ASTRED_BINLOG_DIR -Recurse -Force -Filter *.binlog ` + -ErrorAction SilentlyContinue) if (-not $binlogs) { Write-Host "##vso[task.logissue type=warning]No binlogs found in $env:ASTRED_BINLOG_DIR. Check the calling job's Astred header configuration for MSBUILDDEBUGENGINE / MSBuildDebugEngine and MSBUILDDEBUGPATH." + } + + $compilationDatabases = @() + if ($env:ASTRED_COMPILATION_DATABASE_DIR) { + if (Test-Path -LiteralPath $env:ASTRED_COMPILATION_DATABASE_DIR -PathType Container) { + $compilationDatabases = @(Get-ChildItem -LiteralPath $env:ASTRED_COMPILATION_DATABASE_DIR ` + -Recurse -Force -File -Filter compile_commands.json) + } + if (-not $compilationDatabases) { + Write-Host "##vso[task.logissue type=warning]No compilation databases found in $env:ASTRED_COMPILATION_DATABASE_DIR. Native code built outside MSBuild will not be captured." + } + } + + if (-not $binlogs -and -not $compilationDatabases) { exit 0 } + if ($compilationDatabases -and $env:ASTRED_NATIVE_ENVIRONMENT_COMMAND) { + $nativeEnvironmentOutput = & $env:ComSpec /d /c "$env:ASTRED_NATIVE_ENVIRONMENT_COMMAND && set INCLUDE" + $nativeEnvironmentExitCode = $LASTEXITCODE + $nativeEnvironmentOutput | Where-Object { $_ -notlike 'INCLUDE*=*' } | + ForEach-Object { Write-Host $_ } + if ($nativeEnvironmentExitCode -ne 0) { + throw "Native compiler environment setup failed (exit $nativeEnvironmentExitCode)." + } + + $nativeInclude = $nativeEnvironmentOutput | + Where-Object { $_ -like 'INCLUDE=*' } | + ForEach-Object { $_.Substring('INCLUDE='.Length) } | + Select-Object -Last 1 + if ([string]::IsNullOrWhiteSpace($nativeInclude)) { + throw 'Native compiler environment setup did not define INCLUDE.' + } + $env:INCLUDE = $nativeInclude + } + $project = Join-Path $apjOut '.astred.project.json' - $binlogPaths = @($binlogs.FullName) - $responseFile = Join-Path $apjOut 'binlogs.rsp' - $binlogPaths | ForEach-Object { '"{0}"' -f $_ } | + $responseFile = Join-Path $apjOut 'astproj-inputs.rsp' + ($binlogs + $compilationDatabases) | ForEach-Object { '"{0}"' -f $_.FullName } | Set-Content -LiteralPath $responseFile -Encoding utf8 - Write-Host "astproj: processing $($binlogPaths.Count) binlog(s)" + Write-Host "astproj: processing $($binlogs.Count) binlog(s) and $($compilationDatabases.Count) compilation database(s)" astred astproj -nofolders "@$responseFile" "-o:$project" if ($LASTEXITCODE -ne 0) { throw "astproj failed (exit $LASTEXITCODE)" @@ -46,6 +85,8 @@ steps: workingDirectory: ${{ parameters.sourcesPath }} env: ASTRED_BINLOG_DIR: ${{ parameters.binlogDir }} + ASTRED_COMPILATION_DATABASE_DIR: ${{ parameters.compilationDatabaseDir }} + ASTRED_NATIVE_ENVIRONMENT_COMMAND: ${{ parameters.nativeEnvironmentCommand }} ASTRED_CAPTURE_PATH: ${{ parameters.capturePath }} continueOnError: true diff --git a/eng/common/core-templates/steps/get-github-app-token.yml b/eng/common/core-templates/steps/get-github-app-token.yml index 3eeb5a4c1bc94b..66c6440e8afbb1 100644 --- a/eng/common/core-templates/steps/get-github-app-token.yml +++ b/eng/common/core-templates/steps/get-github-app-token.yml @@ -1,11 +1,12 @@ # Mints a short-lived GitHub App installation access token by signing a JWT -# with an RSA private key (RS256). The JWT is exchanged with the GitHub API -# for a token scoped to a single installation. +# via Azure Key Vault's RSA signing operation (RS256), without reading the +# private key. The JWT is exchanged for a single installation's token. # # Requirements (per GitHub App you want to authenticate as): -# - A GitHub App ID and PEM private key stored as Azure Key Vault secrets. +# - The GitHub App's private key imported as a Key Vault RSA key. +# - Read access to the configured App-ID secret projection. # - The Azure service connection passed via `azureSubscription` must have -# `Get` access to those two secrets. +# the `Sign` action on that key. # - The App must be installed on the target organization/account # (`installationOwner`) with the permissions/repositories you need. # @@ -15,18 +16,18 @@ # enterprise classic-PAT lifetime policy. parameters: -# Azure DevOps service connection (federated) that can read the App credentials. +# Federated service connection authorized to sign with the App's RSA key. - name: azureSubscription type: string -# Name of the Key Vault holding Secret Manager's github-app-secret projections. +# Name of the Key Vault holding the App's RSA key. - name: keyVaultName type: string -- name: appIdSecretName +- name: keyName type: string -- name: appPrivateKeySecretName +- name: appIdSecretName type: string # Login of the organization or user account whose installation we should @@ -66,7 +67,7 @@ steps: inlineScript: | & "$(System.DefaultWorkingDirectory)/eng/common/Get-GitHubAppToken.ps1" ` -KeyVaultName '${{ parameters.keyVaultName }}' ` + -KeyName '${{ parameters.keyName }}' ` -AppIdSecretName '${{ parameters.appIdSecretName }}' ` - -AppPrivateKeySecretName '${{ parameters.appPrivateKeySecretName }}' ` -InstallationOwner '${{ parameters.installationOwner }}' ` -OutputVariableName '${{ parameters.outputVariableName }}' diff --git a/eng/common/core-templates/steps/source-build.yml b/eng/common/core-templates/steps/source-build.yml index b75f59c428d410..c501b9ad3a4afb 100644 --- a/eng/common/core-templates/steps/source-build.yml +++ b/eng/common/core-templates/steps/source-build.yml @@ -50,7 +50,7 @@ steps: ${{ parameters.platform.buildArguments }} \ $internalRuntimeDownloadArgs \ $targetRidArgs \ - $portableBuildArgs \ + $portableBuildArgs displayName: Build - template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml diff --git a/eng/common/cross/build-rootfs.sh b/eng/common/cross/build-rootfs.sh index 98e02db6279b7d..f58a96e78a1ffe 100755 --- a/eng/common/cross/build-rootfs.sh +++ b/eng/common/cross/build-rootfs.sh @@ -451,13 +451,18 @@ case "$__AlpineVersion" in 3.17) __AlpinePackages+=" llvm15-libs" ;; edge) __AlpineLlvmLibsLookup=1 ;; *) + __AlpineVersionNumber=0 + if [[ -n "$__AlpineMajorVersion" ]]; then + __AlpineVersionNumber=$((10#$__AlpineMajorVersion * 100 + 10#$__AlpineMinorVersion)) + fi + if [[ "$__AlpineArch" =~ s390x|ppc64le ]]; then __AlpineVersion=3.15 # minimum version that supports lldb-dev __AlpinePackages+=" llvm12-libs" - elif [[ "$__AlpineArch" == "loongarch64" ]]; then + elif [[ "$__AlpineArch" == "loongarch64" ]] && (( __AlpineVersionNumber <= 321 )); then __AlpineVersion=3.21 # minimum version that supports lldb-dev __AlpinePackages+=" llvm19-libs" - elif [[ "$__AlpineArch" == "riscv64" ]]; then + elif [[ "$__AlpineArch" == "riscv64" ]] && (( __AlpineVersionNumber <= 322 )); then __AlpineVersion=3.22 # lldb-dev requires 3.21+, but 3.22+ provides the newer linux-headers needed for RISC-V extension probes __AlpinePackages+=" llvm20-libs" elif [[ -n "$__AlpineMajorVersion" ]]; then @@ -523,7 +528,7 @@ ensureDownloadTool() } if [[ "$__CodeName" == "alpine" ]]; then - __ApkToolsVersion=3.0.8-r0 + __ApkToolsVersion=3.0.9-r0 __ApkToolsDir="$(mktemp -d)" __ApkKeysDir="$(mktemp -d)" arch="$(uname -m)" @@ -540,9 +545,9 @@ if [[ "$__CodeName" == "alpine" ]]; then fi if [[ "$arch" == "x86_64" ]]; then - __ApkToolsSHA512SUM="6ab4f5e521efbfff75a4b0ecc6a028b4df0c22eadc46c18a30fa03faca0f6efd6c546b3682a856e66865f0152993a9cc843c15633a7d01b6e0f9d225b1e31ef8" + __ApkToolsSHA512SUM="c97f27bef2940bb6c23323bf9fe0f3c60932a3c676f1cea23d5f5664ee8be27f349bb0c905f5f3e1fe0b04cfd79d6e422829c49b12cacbce21b02d9b2d1fa083" elif [[ "$arch" == "aarch64" ]]; then - __ApkToolsSHA512SUM="c592bfefe3b3bc73d56fef5293a2c5c27a71d0555df7ca7db638a70c7ac81be6509f6348f28fe7474ae9adbda6f21c00a8c20d8a6ba6d5579f2ffa78d55184d2" + __ApkToolsSHA512SUM="121b77c2e1ac3c856e168c335d57887ab9716bf6b704e30309c37cf8d0935f72a1775aa6628ec1f73eeec0ca7282f4b40836887e62dac94063485b496ad460c9" else >&2 echo "ERROR: Unsupported apk-tools-static host architecture '$arch'." exit 1 diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index 04c8bb483028a0..f2e42780a21ef1 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -185,7 +185,7 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) { } } - $dotnetSdkVersion = $GlobalJson.tools.dotnet + $dotnetSdkVersion = GetDotNetSdkVersion # Use dotnet installation specified in DOTNET_INSTALL_DIR if it contains the required SDK version, # otherwise install the dotnet CLI and SDK to repo local .dotnet directory to avoid potential permission issues. @@ -241,6 +241,24 @@ function InitializeDotNetCli([bool]$install, [bool]$createSdkLocationFile) { return $global:_DotNetInstallDir = $dotnetRoot } +# Returns the .NET SDK version to install: 'tools.dotnet' if specified, otherwise 'sdk.version', otherwise $null. +function GetDotNetSdkVersion() { + if ((Get-Member -InputObject $GlobalJson.tools -Name 'dotnet') -and $GlobalJson.tools.dotnet) { + return $GlobalJson.tools.dotnet + } + + if ((Get-Member -InputObject $GlobalJson -Name 'sdk') -and (Get-Member -InputObject $GlobalJson.sdk -Name 'version') -and $GlobalJson.sdk.version) { + return $GlobalJson.sdk.version + } + + return $null +} + +# True if global.json specifies a .NET SDK version to install, either via 'tools.dotnet' or via 'sdk.version'. +function GlobalJsonSpecifiesDotNetSdk() { + return [bool](GetDotNetSdkVersion) +} + function Retry($downloadBlock, $maxRetries = 5) { $retries = 1 @@ -588,15 +606,15 @@ function InitializeBuildTool() { $msbuildEngine = GetDefaultMSBuildEngine } - # Initialize dotnet cli if listed in 'tools' + # Initialize dotnet cli if global.json specifies a .NET SDK version ('tools.dotnet' or 'sdk.version') $dotnetRoot = $null - if (Get-Member -InputObject $GlobalJson.tools -Name 'dotnet') { + if (GlobalJsonSpecifiesDotNetSdk) { $dotnetRoot = InitializeDotNetCli -install:$restore } if ($msbuildEngine -eq 'dotnet') { if (!$dotnetRoot) { - Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "/global.json must specify 'tools.dotnet'." + Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "/global.json must specify 'tools.dotnet' or 'sdk.version'." ExitWithExitCode 1 } $dotnetPath = Join-Path $dotnetRoot (GetExecutableFileName 'dotnet') @@ -625,11 +643,11 @@ function GetDefaultMSBuildEngine() { return 'vs' } - if (Get-Member -InputObject $GlobalJson.tools -Name 'dotnet') { + if (GlobalJsonSpecifiesDotNetSdk) { return 'dotnet' } - Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "-msbuildEngine must be specified, or /global.json must specify 'tools.dotnet' or 'tools.vs'." + Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "-msbuildEngine must be specified, or /global.json must specify 'tools.dotnet', 'sdk.version' or 'tools.vs'." ExitWithExitCode 1 } @@ -938,8 +956,13 @@ $ToolsDir = Join-Path $RepoRoot '.tools' $LogDir = Join-Path (Join-Path $ArtifactsDir 'log') $configuration $TempDir = Join-Path (Join-Path $ArtifactsDir 'tmp') $configuration $GlobalJson = Get-Content -Raw -Path (Join-Path $RepoRoot 'global.json') | ConvertFrom-Json +# The 'tools' section is optional (the SDK version can come from 'sdk.version'). Default it to an empty object +# so that code inspecting it doesn't need to handle a missing section. +if (-not (Get-Member -InputObject $GlobalJson -Name 'tools')) { + $GlobalJson | Add-Member -NotePropertyName 'tools' -NotePropertyValue ([pscustomobject]@{}) +} # true if global.json contains a "runtimes" section -$globalJsonHasRuntimes = if ($GlobalJson.tools.PSObject.Properties.Name -Match 'runtimes') { $true } else { $false } +$globalJsonHasRuntimes = [bool](Get-Member -InputObject $GlobalJson.tools -Name 'runtimes') Create-Directory $ToolsetDir Create-Directory $TempDir diff --git a/eng/common/tools.sh b/eng/common/tools.sh index 0e28c1117b3c7e..28286b7052c71d 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -130,6 +130,31 @@ function ReadGlobalVersion { fi } +# Reads the .NET SDK version to install from global.json: 'tools.dotnet' if specified, otherwise 'sdk.version'. +function ReadDotNetSdkVersion { + _ReadDotNetSdkVersion="" + + if command -v jq &> /dev/null; then + _ReadDotNetSdkVersion="$(jq -r '.tools.dotnet // .sdk.version // empty' "$global_json_file")" + else + local global_json + global_json="$(cat "$global_json_file")" + # Matches "sdk": { ... "version": "" }. Quoted strings are consumed as a whole so that braces + # inside them (e.g. in "errorMessage") don't end the sdk object. The version is the third capture group. + local sdk_version_regex='"sdk"[[:space:]]*:[[:space:]]*[{]([^"}]|"([^"\\]|\\.)*")*"version"[[:space:]]*:[[:space:]]*"([^"]+)"' + if [[ "$global_json" =~ \"dotnet\"[[:space:]\:]*\"([^\"]+) ]]; then + _ReadDotNetSdkVersion=${BASH_REMATCH[1]} + elif [[ "$global_json" =~ $sdk_version_regex ]]; then + _ReadDotNetSdkVersion=${BASH_REMATCH[3]} + fi + fi + + if [[ -z "$_ReadDotNetSdkVersion" ]]; then + Write-PipelineTelemetryError -category 'InitializeToolset' "Error: /global.json must specify 'tools.dotnet' or 'sdk.version'." + ExitWithExitCode 1 + fi +} + function InitializeDotNetCli { if [[ -n "${_InitializeDotNetCli:-}" ]]; then return @@ -158,8 +183,8 @@ function InitializeDotNetCli { fi fi - ReadGlobalVersion "dotnet" - local dotnet_sdk_version=$_ReadGlobalVersion + ReadDotNetSdkVersion + local dotnet_sdk_version=$_ReadDotNetSdkVersion local dotnet_root="" # Use dotnet installation specified in DOTNET_INSTALL_DIR if it contains the required SDK version, diff --git a/global.json b/global.json index ed8c532fea3cda..a595679bc53f32 100644 --- a/global.json +++ b/global.json @@ -13,11 +13,11 @@ "dotnet": "12.0.100-alpha.1.26557.102" }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "12.0.0-beta.26561.116", - "Microsoft.DotNet.Helix.Sdk": "12.0.0-beta.26561.116", - "Microsoft.DotNet.SharedFramework.Sdk": "12.0.0-beta.26561.116", + "Microsoft.DotNet.Arcade.Sdk": "12.0.0-beta.26573.102", + "Microsoft.DotNet.Helix.Sdk": "12.0.0-beta.26573.102", + "Microsoft.DotNet.SharedFramework.Sdk": "12.0.0-beta.26573.102", "Microsoft.Build.NoTargets": "3.7.0", "Microsoft.Build.Traversal": "3.4.0", - "Microsoft.NET.Sdk.IL": "12.0.0-alpha.1.26561.116" + "Microsoft.NET.Sdk.IL": "12.0.0-alpha.1.26573.102" } }