Commit graph

204 commits

Author SHA1 Message Date
Viktor Hofer
a64fc0bd58
Only msbuild code formatting (#18801) 2024-03-13 12:22:03 +00:00
Viktor Hofer
15f666742c
Enable msbuild in the unified build (#18770)
Co-authored-by: Matt Mitchell (.NET) <mmitche@microsoft.com>
2024-03-12 16:26:46 +00:00
dotnet-maestro[bot]
232d2df252
[main] Update dependencies from dotnet/sdk (#18916)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2024-03-10 09:48:30 +01:00
Matt Thalman
3de6912d73
Enable parallel builds across repos of VMR (#18824) 2024-03-08 21:59:46 +00:00
Matt Mitchell
68cc1aeb08
Remove ArcadeBuildVertical parameter (#18889) 2024-03-06 09:33:08 +01:00
Jeremy Koritzinsky
aa0c912499
Pass TargetRid to Razor's build for the VMR (#18843) 2024-03-05 15:46:03 -08:00
Viktor Hofer
d23aa136ea
Save RepoBuildExitCode for debugging purposes (#18798) 2024-02-28 19:52:42 +01:00
dotnet-maestro[bot]
19619c09e2
[main] Update dependencies from dotnet/sdk (#18762)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Matt Thalman <mthalman@microsoft.com>
2024-02-28 18:32:15 +00:00
Viktor Hofer
25ffb671b3
Enable razor in unified-build (#18776)
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
2024-02-27 16:06:56 +01:00
Jo Shields
7f749377be
Fix #18777 (#18778) 2024-02-26 19:18:06 +00:00
Jo Shields
a300316736 Actually pass through --use-mono-runtime property
Closes: https://github.com/dotnet/source-build/issues/4142
2024-02-26 10:29:53 -05:00
Viktor Hofer
94aea21ee6
Enable dotnet/format in unified-build (#18773) 2024-02-26 15:58:33 +01:00
Matt Mitchell
d070660282
Enable installer and SDK repos in VMR build (#18632)
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2024-02-26 10:51:44 +00:00
Jeremy Koritzinsky
4b127e32d4
Add VMR support for Windows-x64 PGO Instrumented leg (#18672)
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2024-02-23 15:18:09 +00:00
Viktor Hofer
c557d5b91f
Remove separate package-source-build project (#18750) 2024-02-23 15:04:42 +01:00
Matt Thalman
ed324e09c7
Isolate package flow between repos (#18557)
As a prerequisite to enabling parallel builds of the repos in the VMR, it's necessary to isolate the package flow between repos. This ensures that repo dependencies are defined correctly. Prior to these changes, the packages outputted by repos went to the same directory (Shipping or NonShipping) and those two directories were used as the package feed inputs to dependent repos. This would be dangerous in the context of running builds in parallel across repos because any ill-defined dependencies could lead to race conditions. For example, consider the msbuild repo's dependency on System.Text.Json from the runtime repo. If runtime was not defined as a dependency of msbuild, then there's no guarantee that System.Text.Json will exist when it restores it. Based on timing, it may exist in one build and then not exist in another build.

To solve this problem, the packages output from a repos build are placed in a repo-specific package location as a sub-directory of the package location (Shipping or NonShipping). Previously, all repos would output their packages to `artifacts/packages/Release/[NonShipping|Shipping]`. With these changes, they output to `artifacts/packages/Release/[NonShipping|Shipping]/<repo-name>`. This isolates all packages on a per-repo basis. The next step is to provide access to these packages based on dependencies. Going back to msbuild's dependency on runtime, this is accomplished by modifying msbuild's nuget.config file to include feeds specific to runtime:

```xml
<add key="source-built-runtime" value="/vmr/artifacts/packages/Release/Shipping/runtime/" />
<add key="source-built-transport-runtime" value="/vmr/artifacts/packages/Release/NonShipping/runtime/" />
```
2024-02-22 10:25:55 -06:00
Viktor Hofer
0a73f814e1
Don't append to but overwrite the log file (#18746) 2024-02-22 15:29:39 +01:00
Matt Mitchell
ff773a4b6d
Remove aspire exclusion (#18663)
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2024-02-22 10:08:00 +01:00
Tom Deseyn
4a54301016
Improve/fix cross-build support. (#18658) 2024-02-20 09:07:53 -08:00
Matt Mitchell
a4860bb6bf
Remove SDK repo exclusion (#18667) 2024-02-15 07:40:19 +01:00
Jo Shields
1343db3344 Try wiring up all remaining Short Stack lanes 2024-02-14 11:14:01 -05:00
Matt Mitchell
cb23ae9ae2
Enable deployment tools (#18642)
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
2024-02-14 15:05:17 +01:00
Matt Mitchell
19d3b3891b
Revert "Disables test-templates build again" (#18597)
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2024-02-14 08:00:07 +01:00
dotnet-maestro[bot]
273f49c44f
[main] Update dependencies from dotnet/sdk (#18641)
[main] Update dependencies from dotnet/sdk
- Coherency Updates:
  - Microsoft.WindowsDesktop.App.Ref: from 9.0.0-preview.2.24112.5 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.9.0: from 9.0.0-preview.2.24112.5 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - VS.Redist.Common.WindowsDesktop.TargetingPack.x64.9.0: from 9.0.0-preview.2.24112.5 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - VS.Redist.Common.NetCore.SharedFramework.x64.9.0: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - Microsoft.NETCore.App.Ref: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - VS.Redist.Common.NetCore.TargetingPack.x64.9.0: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - Microsoft.NETCore.App.Host.win-x64: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - Microsoft.NETCore.Platforms: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - Microsoft.SourceBuild.Intermediate.runtime.linux-x64: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - Microsoft.AspNetCore.App.Ref: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - Microsoft.AspNetCore.App.Ref.Internal: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - Microsoft.AspNetCore.App.Runtime.win-x64: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - VS.Redist.Common.AspNetCore.SharedFramework.x64.9.0: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - dotnet-dev-certs: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - dotnet-user-jwts: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - dotnet-user-secrets: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - Microsoft.SourceBuild.Intermediate.aspnetcore: from 9.0.0-preview.2.24112.25 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 9.0.0-preview.2.24112.5 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - Microsoft.Dotnet.WinForms.ProjectTemplates: from 9.0.0-preview.2.24112.2 to 9.0.0-preview.2.24112.7 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64)
  - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 9.0.0-preview.2.24112.5 to 9.0.0-preview.2.24113.4 (parent: Microsoft.NET.Sdk)
  - Microsoft.DotNet.Wpf.ProjectTemplates: from 9.0.0-preview.2.24112.2 to 9.0.0-preview.2.24112.4 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64)
  - Microsoft.FSharp.Compiler: from 12.8.300-beta.24112.4 to 12.8.300-beta.24113.3 (parent: Microsoft.NET.Sdk)
  - Microsoft.SourceBuild.Intermediate.fsharp: from 8.0.300-beta.24112.4 to 8.0.300-beta.24113.3 (parent: Microsoft.NET.Sdk)
  - Microsoft.NET.Test.Sdk: from 17.10.0-preview-24107-02 to 17.10.0-preview-24112-02 (parent: Microsoft.NET.Sdk)
  - Microsoft.SourceBuild.Intermediate.vstest: from 17.10.0-preview-24107-02 to 17.10.0-preview-24112-02 (parent: Microsoft.NET.Sdk)
  - Microsoft.NET.ILLink.Tasks: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - Microsoft.Net.Compilers.Toolset: from 4.10.0-2.24112.4 to 4.10.0-2.24113.3 (parent: Microsoft.NET.Sdk)
  - Microsoft.SourceBuild.Intermediate.roslyn: from 4.10.0-2.24112.4 to 4.10.0-2.24113.3 (parent: Microsoft.NET.Sdk)
  - Microsoft.NETCore.App.Runtime.win-x64: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)
  - Microsoft.NETCore.App.Runtime.win-x64: from 9.0.0-preview.2.24112.33 to 9.0.0-preview.2.24113.5 (parent: Microsoft.NET.Sdk)

 - Delete obsolete format patch

 - Update WASI container to react to 1a9e0cdb3b

 - Update aspnetcore.proj
2024-02-14 01:56:14 +00:00
Viktor Hofer
94def2ee6c
Put artifacts in well-known locations (#18591) 2024-02-13 09:19:33 -06:00
Viktor Hofer
331a02da30
Enable wpf and winforms in the VMR (#18636) 2024-02-13 11:09:04 +00:00
Matt Mitchell
6af6235128
Do not copy restored package content if already exists (#18626) 2024-02-12 20:00:19 +00:00
Viktor Hofer
99a960108b
Enable templating and roslyn-analyzers in UB (#18618) 2024-02-12 08:05:05 -08:00
dotnet-maestro[bot]
bf6f78261f
[main] Update dependencies from dotnet/sdk (#18457) 2024-02-10 01:39:12 +00:00
Jeremy Koritzinsky
66f3b383a8
Enable building WPF in the unified build (#18577) 2024-02-09 22:36:23 +00:00
Matt Mitchell
e4d3343347
Update DotNetBuildSkipTests -> DotNetBuildTests (#18583) 2024-02-09 09:26:28 -08:00
Viktor Hofer
d34ff88c51
Disables test-templates build again (#18592) 2024-02-09 11:47:52 +01:00
Viktor Hofer
4cd842ec04
Remove dead code (#18579) 2024-02-09 08:19:15 +01:00
Matt Mitchell
02edd8e839
Enable test-templates build (#18581)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-02-09 08:14:42 +01:00
Matt Mitchell
7eb0143369
Enable roslyn-analyzers (#18585) 2024-02-08 19:26:18 -06:00
Viktor Hofer
95ad39aa68
Update package-source-build.proj (#18555) 2024-02-08 12:38:31 +01:00
Jo Shields
debb6bf8f0
[VMR] Support for short stack builds. (#18463) 2024-02-07 15:59:30 -05:00
Jeremy Koritzinsky
3242c17f66
Update SdkResolver layout to work for Desktop and Core MSBuild (#18505)
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2024-02-07 20:22:44 +00:00
Jo Shields
3a55a8ebaa
Merge branch 'main' into shortstack 2024-02-07 13:09:19 -05:00
Viktor Hofer
ee9a93b4cc
Follow-up on CopyRepoArtifacts directly in the VMR (#18551) 2024-02-07 17:44:09 +00:00
Jo Shields
d5e8ffb6ea Merge remote-tracking branch 'origin/main' into shortstack 2024-02-07 10:31:32 -05:00
Matt Mitchell
722bcd86aa
Enable overriding of the arcade cmake SDK in VMR (#18539) 2024-02-07 01:03:36 +00:00
Jo Shields
68bdaffc07
Merge branch 'main' into shortstack 2024-02-05 10:13:23 -05:00
Nikola Milosavljevic
ff1d5e5032
Stop making src modifications to every repo's NuGet.config (#18478) 2024-02-02 16:49:07 -08:00
Jo Shields
50289771fd change rootrepo 2024-02-02 16:33:05 -05:00
Jo Shields
e06a805d2c Fix build locally, push to test on Mac 2024-02-02 15:38:16 -05:00
Jo Shields
69f1c5855a Refreshed for the glourious TargetOS/TargetArchitecture future 2024-02-02 13:35:24 -05:00
Jo Shields
b43bf5d8df Merge remote-tracking branch 'origin/main' into shortstack 2024-02-02 13:05:13 -05:00
Viktor Hofer
d693228ff8
Fix repo builds not getting propagated when using the minimal console log (#18501)
Noticed in https://github.com/dotnet/installer/pull/18409 that errors aren't propagated which resulted in builds not to fail.

The fix here is to use `OnError` in the correct target (but only when using the minimal console log feature) and not set `IgnoreStandardErrorWarningFormat=true` on the Exec task that invokes the repo build script.

I also cleaned targets up as those introduced unnecessary complexity and logged in cases when they shouldn't (i.e. in dotnet.proj or package-source-build.proj).

This affected runtime which errors after 30s of building because of RuntimeOS and BaseOS being passed in in-correctly. Regressed with cca2b7bede (diff-86602308e6bb519266bc2f224ea65e39589d273804d40ad0f9c6e0eea2a263dc). Fixed that in runtime.proj. Kudos to Alexander who made the fix. I just copied it in form his CI PR.
2024-02-02 17:38:41 +00:00
Jo Shields
cca2b7bede
Stop using OverrideTargetRid, use TargetOS/TargetArchitecture instead (#18476) 2024-02-02 07:13:03 +01:00