Skip to content

WIP: Add workload component ID's needed by this repo's build to global.json - #2307

Closed
vatsan-madhavan wants to merge 11 commits into
dotnet:mainfrom
wpfcontrib:tools-prereq
Closed

vatsan-madhavan wants to merge 11 commits into
dotnet:mainfrom
wpfcontrib:tools-prereq

Conversation

@vatsan-madhavan

@vatsan-madhavan vatsan-madhavan commented Dec 11, 2019 •

Copy link
Copy Markdown
Member

Adding workload component id's for build tools needed by this Repo to global.json as described at ArcadeSdk.md.

  • The list of components is my best guess. The repo may need more or less than these.

    • wpf.vsconfig has been tested on a new machine. It doesn't include even the basic CoreEditor component, yet a VS 2019 16.5 Preview 2 instillation based on this config file can successfully build the WPF repo (master branch).
  • This list would have to be improved (likely trimmed) over time through trial-and-error.

  • VS version (16.4+) is not a guess - WPF repo needs this as the min-version starting now.

  • There is a change to eng\common\tools.ps1 This is a port of Option to not use xcopy-msbuild if VS is not found  arcade#4534 . WPF repos ingestion of arcade updates seems to be broken for now - so I'm taking this change manually. When the updates resume, it will get fixed up automatically.

  • Need to solve Option to not use xcopy-msbuild if VS is not found  arcade#4534 first.

@ghost
ghost requested a review from rladuca December 11, 2019 20:19
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Dec 11, 2019
@ghost
ghost requested a review from SamBent December 11, 2019 20:19
@vatsan-madhavan
vatsan-madhavan marked this pull request as ready for review December 12, 2019 00:43
@vatsan-madhavan
vatsan-madhavan force-pushed the tools-prereq branch 2 times, most recently from 729bdc9 to 4c48b99 Compare December 12, 2019 07:07
Comment thread Documentation/wpf.vsconfig Resolved
@vatsan-madhavan vatsan-madhavan changed the title Add workload component ID's needed by this repo's build to global.json WIP: Add workload component ID's needed by this repo's build to global.json Dec 12, 2019
@vatsan-madhavan

Copy link
Copy Markdown
Member Author

@MattGal, can you help me out and get me a .vsconfig export of VS installations on our typical build machines?

Clearly the configuration on the build machines is sufficient to build the WPF repo; I want to see if an alternate set of components + workloads can be specified in global.json to outline the prereqs for building the repo.

Also I’m assuming we are on 16.4+?

@vatsan-madhavan

Copy link
Copy Markdown
Member Author

These are the components I found on one of the machines. I tweaked one of the build scripts to spew out the list of components to generate the list:

16.4.29512.175

Workload:Microsoft.VisualStudio.Workload.CoreEditor
Workload:Microsoft.VisualStudio.Workload.ManagedDesktop
Workload:Microsoft.VisualStudio.Workload.NativeCrossPlat
Workload:Microsoft.VisualStudio.Workload.NativeDesktop
Workload:Microsoft.VisualStudio.Workload.NetCoreTools
Workload:Microsoft.VisualStudio.Workload.NetWeb
Workload:Microsoft.VisualStudio.Workload.Office
Workload:Microsoft.VisualStudio.Workload.Universal
Workload:Microsoft.VisualStudio.Workload.VisualStudioExtension

Component:Component.Dotfuscator
Component:Component.Incredibuild
Component:Component.IncredibuildMenu
Component:Component.Linux.CMake
Component:Component.MDD.Linux
Component:Component.MDD.Linux.GCC.arm
Component:Component.Microsoft.VisualStudio.LiveShare
Component:Component.Microsoft.VisualStudio.RazorExtension
Component:Component.Microsoft.VisualStudio.Web.AzureFunctions
Component:Component.Microsoft.Web.LibraryManager
Component:Microsoft.Component.CodeAnalysis.SDK
Component:Microsoft.Component.MSBuild
Component:Microsoft.Component.NetFX.Native
Component:Microsoft.Component.VC.Runtime.UCRTSDK
Component:Microsoft.ComponentGroup.Blend
Component:Microsoft.Net.Component.4.5.1.TargetingPack
Component:Microsoft.Net.Component.4.5.2.TargetingPack
Component:Microsoft.Net.Component.4.5.TargetingPack
Component:Microsoft.Net.Component.4.6.1.SDK
Component:Microsoft.Net.Component.4.6.1.TargetingPack
Component:Microsoft.Net.Component.4.6.2.SDK
Component:Microsoft.Net.Component.4.6.2.TargetingPack
Component:Microsoft.Net.Component.4.6.TargetingPack
Component:Microsoft.Net.Component.4.7.1.TargetingPack
Component:Microsoft.Net.Component.4.7.2.SDK
Component:Microsoft.Net.Component.4.7.2.TargetingPack
Component:Microsoft.Net.Component.4.7.TargetingPack
Component:Microsoft.Net.Component.4.8.SDK
Component:Microsoft.Net.Component.4.8.TargetingPack
Component:Microsoft.Net.Component.4.TargetingPack
Component:Microsoft.Net.ComponentGroup.4.6.1.DeveloperTools
Component:Microsoft.Net.ComponentGroup.4.6.2.DeveloperTools
Component:Microsoft.Net.ComponentGroup.4.7.1.DeveloperTools
Component:Microsoft.Net.ComponentGroup.4.7.DeveloperTools
Component:Microsoft.Net.ComponentGroup.4.8.DeveloperTools
Component:Microsoft.Net.ComponentGroup.DevelopmentPrerequisites
Component:Microsoft.Net.ComponentGroup.TargetingPacks.Common
Component:Microsoft.Net.Core.Component.SDK.2.1
Component:Microsoft.NetCore.Component.DevelopmentTools
Component:Microsoft.NetCore.Component.SDK
Component:Microsoft.NetCore.Component.Web
Component:Microsoft.VisualStudio.Component.AppInsights.Tools
Component:Microsoft.VisualStudio.Component.AspNet45
Component:Microsoft.VisualStudio.Component.Azure.AuthoringTools
Component:Microsoft.VisualStudio.Component.Azure.ClientLibs
Component:Microsoft.VisualStudio.Component.Azure.Compute.Emulator
Component:Microsoft.VisualStudio.Component.Azure.Storage.Emulator
Component:Microsoft.VisualStudio.Component.ClassDesigner
Component:Microsoft.VisualStudio.Component.CloudExplorer
Component:Microsoft.VisualStudio.Component.CodeClone
Component:Microsoft.VisualStudio.Component.CodeMap
Component:Microsoft.VisualStudio.Component.Common.Azure.Tools
Component:Microsoft.VisualStudio.Component.CoreEditor
Component:Microsoft.VisualStudio.Component.Debugger.JustInTime
Component:Microsoft.VisualStudio.Component.Debugger.Snapshot
Component:Microsoft.VisualStudio.Component.Debugger.TimeTravel
Component:Microsoft.VisualStudio.Component.DependencyValidation.Enterprise
Component:Microsoft.VisualStudio.Component.DiagnosticTools
Component:Microsoft.VisualStudio.Component.DockerTools
Component:Microsoft.VisualStudio.Component.DslTools
Component:Microsoft.VisualStudio.Component.EntityFramework
Component:Microsoft.VisualStudio.Component.FSharp
Component:Microsoft.VisualStudio.Component.FSharp.Desktop
Component:Microsoft.VisualStudio.Component.FSharp.WebTemplates
Component:Microsoft.VisualStudio.Component.GraphDocument
Component:Microsoft.VisualStudio.Component.Graphics
Component:Microsoft.VisualStudio.Component.Graphics.Tools
Component:Microsoft.VisualStudio.Component.IISExpress
Component:Microsoft.VisualStudio.Component.IntelliCode
Component:Microsoft.VisualStudio.Component.IntelliTrace.FrontEnd
Component:Microsoft.VisualStudio.Component.JavaScript.Diagnostics
Component:Microsoft.VisualStudio.Component.JavaScript.TypeScript
Component:Microsoft.VisualStudio.Component.LiveUnitTesting
Component:Microsoft.VisualStudio.Component.MSODBC.SQL
Component:Microsoft.VisualStudio.Component.MSSQL.CMDLnUtils
Component:Microsoft.VisualStudio.Component.ManagedDesktop.Core
Component:Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites
Component:Microsoft.VisualStudio.Component.NuGet
Component:Microsoft.VisualStudio.Component.NuGet.BuildTools
Component:Microsoft.VisualStudio.Component.PortableLibrary
Component:Microsoft.VisualStudio.Component.Roslyn.Compiler
Component:Microsoft.VisualStudio.Component.Roslyn.LanguageServices
Component:Microsoft.VisualStudio.Component.SQL.ADAL
Component:Microsoft.VisualStudio.Component.SQL.CLR
Component:Microsoft.VisualStudio.Component.SQL.DataSources
Component:Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime
Component:Microsoft.VisualStudio.Component.SQL.SSDT
Component:Microsoft.VisualStudio.Component.Sharepoint.Tools
Component:Microsoft.VisualStudio.Component.TeamOffice
Component:Microsoft.VisualStudio.Component.TestTools.WebLoadTest
Component:Microsoft.VisualStudio.Component.TextTemplating
Component:Microsoft.VisualStudio.Component.TypeScript.3.7
Component:Microsoft.VisualStudio.Component.UWP.VC.ARM64
Component:Microsoft.VisualStudio.Component.VC.140
Component:Microsoft.VisualStudio.Component.VC.ASAN
Component:Microsoft.VisualStudio.Component.VC.ATL
Component:Microsoft.VisualStudio.Component.VC.ATLMFC
Component:Microsoft.VisualStudio.Component.VC.CLI.Support
Component:Microsoft.VisualStudio.Component.VC.CMake.Project
Component:Microsoft.VisualStudio.Component.VC.CoreIde
Component:Microsoft.VisualStudio.Component.VC.DiagnosticTools
Component:Microsoft.VisualStudio.Component.VC.Llvm.Clang
Component:Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset
Component:Microsoft.VisualStudio.Component.VC.Modules.x86.x64
Component:Microsoft.VisualStudio.Component.VC.Redist.14.Latest
Component:Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest
Component:Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest
Component:Microsoft.VisualStudio.Component.VC.Tools.ARM
Component:Microsoft.VisualStudio.Component.VC.Tools.ARM64
Component:Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Component:Microsoft.VisualStudio.Component.VC.v141.ARM
Component:Microsoft.VisualStudio.Component.VC.v141.ARM64
Component:Microsoft.VisualStudio.Component.VC.v141.ATL
Component:Microsoft.VisualStudio.Component.VC.v141.x86.x64
Component:Microsoft.VisualStudio.Component.VSSDK
Component:Microsoft.VisualStudio.Component.Wcf.Tooling
Component:Microsoft.VisualStudio.Component.Web
Component:Microsoft.VisualStudio.Component.WebDeploy
Component:Microsoft.VisualStudio.Component.Windows10SDK.16299
Component:Microsoft.VisualStudio.Component.Windows10SDK.17134
Component:Microsoft.VisualStudio.Component.Windows10SDK.17763
Component:Microsoft.VisualStudio.Component.Windows10SDK.18362
Component:Microsoft.VisualStudio.Component.Windows10SDK.IpOverUsb
Component:Microsoft.VisualStudio.Component.Workflow
Component:Microsoft.VisualStudio.ComponentGroup.AdditionalWebProjectTemplates
Component:Microsoft.VisualStudio.ComponentGroup.ArchitectureTools.Managed
Component:Microsoft.VisualStudio.ComponentGroup.ArchitectureTools.Native
Component:Microsoft.VisualStudio.ComponentGroup.AzureFunctions
Component:Microsoft.VisualStudio.ComponentGroup.MSIX.Packaging
Component:Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core
Component:Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang
Component:Microsoft.VisualStudio.ComponentGroup.Sharepoint.WIF
Component:Microsoft.VisualStudio.ComponentGroup.UWP.NetCoreAndStandard
Component:Microsoft.VisualStudio.ComponentGroup.UWP.Support
Component:Microsoft.VisualStudio.ComponentGroup.UWP.VC
Component:Microsoft.VisualStudio.ComponentGroup.UWP.VC.v141
Component:Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin
Component:Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites
Component:Microsoft.VisualStudio.ComponentGroup.Web
Component:Microsoft.VisualStudio.ComponentGroup.Web.CloudTools
Component:Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions
Component:Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake

@MattGal

MattGal commented Dec 13, 2019

Copy link
Copy Markdown
Member

@vatsan-madhavan sorry for the delay; looks like you've unblocked yourself and if you have any further questions I can actually get on a machine to dig further.

In general:

  • buildpool.windows.10.amd64.vs2019.pre will have the latest (we can swing) public VS 2019 preview bits; currently this means 16.4.0 Preview 5.0
  • buildpool.windows.10.amd64.vs2019 will have the latest (we can swing) non-preview VS 2019 bits; currently this means a recent dot-release of 16.3.*
  • If you need more workloads, send me a list in the format above and I'll get that set up ; we won't be able to roll them out for your use until the new year, but it's easy and I'm happy to add them for you.

@vatsan-madhavan

Copy link
Copy Markdown
Member Author

buildpool.windows.10.amd64.vs2019 will have the latest (we can swing) non-preview VS 2019 bits; currently this means a recent dot-release of 16.3.*

Would you please check for us whether either of WPF repos might ever build on this build-pool?

It’s very important that we never build out of 16.3 again. We found a compiler bug that affects Xeon processors on 16.3 that has to be fixed in servicing in 3.1.2 and we can never ever build using tools older than 16.4 again for this reason.

PS: This needs to be solved before 3.1.2 builds start to be created, which means that it’s non-urgent in Dec.

@vatsan-madhavan

vatsan-madhavan commented Dec 13, 2019 •

Copy link
Copy Markdown
Member Author

We use the pre build pools I think, but we also use the Pre.Open pool. Will Pre.Open be a problem it does that work like Pre as well?

queue: buildpool.windows.10.amd64.vs2019.pre

wpf/eng/pipeline.yml

Lines 30 to 35 in 723bcee

${{ if eq(variables['System.TeamProject'], 'public') }}:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2019.Pre.Open
${{ if eq(variables['System.TeamProject'], 'internal') }}:
name: NetCoreInternal-Pool
queue: buildpool.windows.10.amd64.vs2019.pre

@MattGal

MattGal commented Dec 13, 2019

Copy link
Copy Markdown
Member

We use the pre build pools I think, but we also use the Pre.Open pool. Will Pre.Open be a problem it does that work like Pre as well?

queue: buildpool.windows.10.amd64.vs2019.pre

wpf/eng/pipeline.yml

Lines 30 to 35 in 723bcee

${{ if eq(variables['System.TeamProject'], 'public') }}:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2019.Pre.Open
${{ if eq(variables['System.TeamProject'], 'internal') }}:
name: NetCoreInternal-Pool
queue: buildpool.windows.10.amd64.vs2019.pre

That's why I left it out of my comments; the only interesting difference is 1) accessibility from the public versus internal ADO instance and 2) special signing certificates for appropriately blessed builds on internal.

If you need more workloads though do send along a list.

@vatsan-madhavan

Copy link
Copy Markdown
Member Author

/cc @tmat

I've been modifying tools.ps1 to see what's going on with the failures. It looks like vswhere is seemingly succeeding, but its returning nothing useful ==> failure to detect VS.

When I run this locally, I see something like this:

Found Matching Visual Studio: @{instanceId=5a4ec566; installDate=2019-01-19T03:27:31Z; installationName=VisualStudioIntPreview/16.6.0-pre.1.0+29807.176.master; installationPath=C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview; installationVersion=16.6.29807.176; productId=Microsoft.VisualStudio.Product.Enterprise; productPath=C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE\devenv.exe; isPrerelease=True; displayName=Visual Studio Enterprise 2019; description=Scalable, end-to-end solution for teams of any size; channelId=VisualStudio.16.IntPreview; channelUri=https://aka.ms/vs/16/intpreview/channel; enginePath=C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service; installChannelUri=https://vsdrop.corp.microsoft.com/file/v1/Products/DevDiv/VS/e4e283062766f57fc11f97dc78421cc6fdf786f2/59551581-fde3-267c-10bc-5db75a244370;VisualStudio.16.IntPreview.chman; releaseNotes=https://go.microsoft.com/fwlink/?LinkId=660894#16.6.0-pre.1.0; thirdPartyNotices=https://go.microsoft.com/fwlink/?LinkId=660909; updateDate=2020-02-08T23:07:48.5634499Z; catalog=; properties=}
        Microsoft.Component.CodeAnalysis.SDK
        Microsoft.Component.MSBuild
        Microsoft.Component.VC.Runtime.UCRTSDK
        Microsoft.Net.Component.4.7.2.TargetingPack
        Microsoft.NetCore.Component.DevelopmentTools
        Microsoft.NetCore.Component.SDK
        Microsoft.VisualStudio.Component.Git
        Microsoft.VisualStudio.Component.NuGet
        Microsoft.VisualStudio.Component.Roslyn.Compiler
        Microsoft.VisualStudio.Component.Roslyn.LanguageServices
        Microsoft.VisualStudio.Component.TextTemplating
        Microsoft.VisualStudio.Component.VC.ATL
        Microsoft.VisualStudio.Component.VC.ATLMFC
        Microsoft.VisualStudio.Component.VC.CLI.Support
        Microsoft.VisualStudio.Component.VC.CoreIde
        Microsoft.VisualStudio.Component.VC.Modules.x86.x64
        Microsoft.VisualStudio.Component.VC.Redist.14.Latest
        Microsoft.VisualStudio.Component.VC.Tools.x86.x64
        Microsoft.VisualStudio.Component.VSSDK
        Microsoft.VisualStudio.Component.Windows10SDK.17134

Why is $vsInfo[0] empty in CI builds?

Base automatically changed from master to main March 17, 2021 17:38
@ryalanms
ryalanms requested a review from a team as a code owner March 17, 2021 17:38
@dipeshmsft dipeshmsft self-assigned this Mar 21, 2023
@ghost ghost assigned vatsan-madhavan Mar 21, 2023
@dipeshmsft

Copy link
Copy Markdown
Member

On the basis of discussion with the author, closing this PR as it has been stale, and there is no urgent requirement for this.

@dipeshmsft dipeshmsft closed this Mar 21, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants