From 0368ac38f70bc36f2b1439ece97c2e93314f5274 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Wed, 7 Feb 2024 08:05:52 -0800 Subject: [PATCH 1/6] Download artifacts in parallel (#18549) --- src/redist/targets/BundledDotnetTools.targets | 5 +---- src/redist/targets/Crossgen.targets | 5 +---- src/redist/targets/GenerateLayout.targets | 10 ++-------- test/SdkTests/SdkTests.csproj | 7 ++----- 4 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/redist/targets/BundledDotnetTools.targets b/src/redist/targets/BundledDotnetTools.targets index ab3b5e34a..75bb0e213 100644 --- a/src/redist/targets/BundledDotnetTools.targets +++ b/src/redist/targets/BundledDotnetTools.targets @@ -28,10 +28,7 @@ - - + diff --git a/src/redist/targets/Crossgen.targets b/src/redist/targets/Crossgen.targets index 076a28be9..4121ddb9c 100644 --- a/src/redist/targets/Crossgen.targets +++ b/src/redist/targets/Crossgen.targets @@ -26,10 +26,7 @@ - - + @@ -534,10 +531,7 @@ - - + AppHost$(ExeExtension) diff --git a/test/SdkTests/SdkTests.csproj b/test/SdkTests/SdkTests.csproj index 5cf2f0c56..058f4cf7a 100644 --- a/test/SdkTests/SdkTests.csproj +++ b/test/SdkTests/SdkTests.csproj @@ -82,8 +82,7 @@ + Properties="RuntimeVersionToInstall=%(RuntimeVersionToInstall.Identity)" /> @@ -155,9 +154,7 @@ + Targets="RunTestsAsTool" /> From 2c49b202647cf470452890c7c8793d2ea1b0b1df Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 7 Feb 2024 17:27:55 +0100 Subject: [PATCH 2/6] Change the package cache dir to repo-root/.packages (#18550) --- src/SourceBuild/content/.gitignore | 6 ++---- src/SourceBuild/content/Directory.Build.props | 2 +- src/SourceBuild/content/build.sh | 4 ++-- src/SourceBuild/content/eng/build.ps1 | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/SourceBuild/content/.gitignore b/src/SourceBuild/content/.gitignore index 2bcbb63f3..e88b2a3e8 100644 --- a/src/SourceBuild/content/.gitignore +++ b/src/SourceBuild/content/.gitignore @@ -1,11 +1,9 @@ /.dotnet +/.packages /artifacts -/eng/tools/**/bin -/eng/tools/**/obj /prereqs/packages -/src/linker/src/ILLink.Tasks/ILLink.Tasks.nuspec /src/nuget-client/NuGet.config /test/Microsoft.DotNet.SourceBuild.SmokeTests/bin /test/Microsoft.DotNet.SourceBuild.SmokeTests/obj /test/Microsoft.DotNet.SourceBuild.SmokeTests/TestResults -*.binlog \ No newline at end of file +*.binlog diff --git a/src/SourceBuild/content/Directory.Build.props b/src/SourceBuild/content/Directory.Build.props index 2ab3da9ec..91df19fb2 100644 --- a/src/SourceBuild/content/Directory.Build.props +++ b/src/SourceBuild/content/Directory.Build.props @@ -148,7 +148,7 @@ $([MSBuild]::NormalizeDirectory('$(PrereqsDir)', 'keys')) $([MSBuild]::NormalizeDirectory('$(PrereqsDir)', 'packages')) - $([MSBuild]::NormalizeDirectory('$(NuGetPackageRoot)', 'ArcadeBootstrapPackage')) $(NuGetPackageRoot) diff --git a/src/SourceBuild/content/build.sh b/src/SourceBuild/content/build.sh index ab9c9170d..751f9a188 100755 --- a/src/SourceBuild/content/build.sh +++ b/src/SourceBuild/content/build.sh @@ -57,8 +57,7 @@ scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" # Set the NUGET_PACKAGES dir so that we don't accidentally pull some packages from the global location, # They should be pulled from the local feeds. -packagesDir="$scriptroot/prereqs/packages/" -packagesRestoredDir="${packagesDir}restored/" +packagesRestoredDir="$scriptroot/.packages/" export NUGET_PACKAGES=$packagesRestoredDir/ # Common settings @@ -77,6 +76,7 @@ sourceRepository='' sourceVersion='' CUSTOM_PACKAGES_DIR='' CUSTOM_SDK_DIR='' +packagesDir="$scriptroot/prereqs/packages/" packagesArchiveDir="${packagesDir}archive/" packagesPreviouslySourceBuiltDir="${packagesDir}previously-source-built/" diff --git a/src/SourceBuild/content/eng/build.ps1 b/src/SourceBuild/content/eng/build.ps1 index 35a494aa5..c13ce050a 100644 --- a/src/SourceBuild/content/eng/build.ps1 +++ b/src/SourceBuild/content/eng/build.ps1 @@ -41,7 +41,7 @@ function Get-Usage() { # Set the NUGET_PACKAGES dir so that we don't accidentally pull some packages from the global location, # They should be pulled from the local feeds. -$env:NUGET_PACKAGES="$RepoRoot\prereqs\packages\restored\" +$env:NUGET_PACKAGES="$RepoRoot\.packages\" if ($help) { Get-Usage From d67876b1265271c6edb8593aa6fada5dbca037c6 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 7 Feb 2024 17:54:43 +0100 Subject: [PATCH 3/6] Update vmr-build.yml (#18553) --- eng/pipelines/vmr-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/vmr-build.yml b/eng/pipelines/vmr-build.yml index 15cc40fc4..45733f9d2 100644 --- a/eng/pipelines/vmr-build.yml +++ b/eng/pipelines/vmr-build.yml @@ -3,7 +3,7 @@ # - installer-source-build (public) # - PR: release/* and main, ultralite build # - installer-unified-build (public) -# - PR: release/* and main, lite build +# - PR: main, lite build trigger: none pr: From 540504fb32093192941ff6a52da649c5006c66fa Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Wed, 7 Feb 2024 17:58:02 +0100 Subject: [PATCH 4/6] =?UTF-8?q?Enable=20target=20that=20copies=20binaries?= =?UTF-8?q?=20to=20final=20location=20for=20non=20source-b=E2=80=A6=20(#18?= =?UTF-8?q?552)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SourceBuild/content/build.proj | 15 +++++++++++++++ .../content/eng/build.sourcebuild.targets | 14 -------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/SourceBuild/content/build.proj b/src/SourceBuild/content/build.proj index 04f6a25b6..10aa956ce 100644 --- a/src/SourceBuild/content/build.proj +++ b/src/SourceBuild/content/build.proj @@ -19,6 +19,21 @@ StopOnFirstFailure="true" /> + + + + + + + + + diff --git a/src/SourceBuild/content/eng/build.sourcebuild.targets b/src/SourceBuild/content/eng/build.sourcebuild.targets index 89c9db476..b9786179f 100644 --- a/src/SourceBuild/content/eng/build.sourcebuild.targets +++ b/src/SourceBuild/content/eng/build.sourcebuild.targets @@ -9,20 +9,6 @@ $(PackageReportDir)poison-usage.xml - - - - - - - - - Date: Wed, 7 Feb 2024 18:44:09 +0100 Subject: [PATCH 5/6] Follow-up on CopyRepoArtifacts directly in the VMR (#18551) --- .../repo-projects/Directory.Build.targets | 80 +------------------ 1 file changed, 3 insertions(+), 77 deletions(-) diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index a06ced3c0..9165e7da1 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -345,18 +345,13 @@ - + + @@ -408,75 +403,6 @@ - - - - <_BuiltIntermediatePackages Condition="'$(PackagesOutput)' != ''" Include="$(PackagesOutput)/Microsoft.SourceBuild.Intermediate.*.nupkg" Exclude="$(PackagesOutput)/*.symbols.nupkg"/> - <_BuiltIntermediatePackages Condition="'@(PackagesOutputList)' != ''" Include="%(PackagesOutputList.Identity)/Microsoft.SourceBuild.Intermediate.*.nupkg" Exclude="%(PackagesOutputList.Identity)/*.symbols.nupkg"/> - - - - <_NupkgDestinationPath>$(SourceBuiltPackagesPath) - - <_NupkgDestinationPath Condition="$([System.String]::Copy(%(_BuiltIntermediatePackages.Identity)).Contains('source-build-reference-packages'))">$(ReferencePackagesDir) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Date: Wed, 7 Feb 2024 18:55:54 +0100 Subject: [PATCH 6/6] Use arm64 Mac pool for internal VMR build (#18554) --- eng/pipelines/templates/variables/vmr-stage.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/templates/variables/vmr-stage.yml b/eng/pipelines/templates/variables/vmr-stage.yml index 7363922bc..4d906db13 100644 --- a/eng/pipelines/templates/variables/vmr-stage.yml +++ b/eng/pipelines/templates/variables/vmr-stage.yml @@ -32,6 +32,8 @@ variables: value: NetCore-Public-XL - name: defaultPoolNameLinuxArm64 value: Docker-Linux-Arm-Public + - name: defaultPoolNameMac + value: macos-12 - name: defaultPoolDemandsLinux value: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open - name: defaultPoolDemandsWindows @@ -45,10 +47,9 @@ variables: value: NetCore1ESPool-Svc-Internal - name: defaultPoolNameLinuxArm64 value: Docker-Linux-Arm-Internal + - name: defaultPoolNameMac + value: macos-13-arm64 - name: defaultPoolDemandsLinux value: ImageOverride -equals Build.Ubuntu.1804.Amd64 - name: defaultPoolDemandsWindows value: ImageOverride -equals windows.vs2022.amd64 - -- name: defaultPoolNameMac - value: macos-12