Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Remove InitTools and ToolsDir - #35677

Merged
ericstj merged 2 commits into
dotnet:masterfrom
ericstj:buildToolsDelete
Mar 1, 2019
Merged

ericstj merged 2 commits into
dotnet:masterfrom
ericstj:buildToolsDelete

Conversation

@ericstj

@ericstj ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member

This removes nearly the last bits of buildtools from our repo. The only thing remaining is VersionTools.targets which I've wrapped and loaded from the package location rather than a local tools folder.

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES!!!

@ViktorHofer

ViktorHofer commented Mar 1, 2019 •

Copy link
Copy Markdown
Member

I queued an official build just to make sure this doesn't regress anything: https://dnceng.visualstudio.com/internal/_build/results?buildId=111179

@ViktorHofer

Copy link
Copy Markdown
Member

It's failing in the update dotnet/versions step as I expected: https://dev.azure.com/dnceng/internal/_build/results?buildId=111179.

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Publish to dotnet/versions in official builds fails

@ericstj

ericstj commented Mar 1, 2019 •

Copy link
Copy Markdown
Member Author

I'll take a look. I tested a local update but looks like official is a little different. Thanks for kicking off the official build.

@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

The restore of Tools.proj isn't consistently writing the path to buildtools in the generated props file. I noticed this when working on this change but never tracked it down. Suspect an SDK related difference around support for GeneratePathProperty or a bug. Will see if I can root-cause, workaround is to simply build the path myself.

@ericstj

ericstj commented Mar 1, 2019 •

Copy link
Copy Markdown
Member Author

Bingo, found the bug. NuGet is missing a case-insensitive comparer https://github.com/NuGet/NuGet.Client/pull/2271/files#r261694951. Will workaround and file the NuGet bug: NuGet/Home#7843

@ericstj
ericstj force-pushed the buildToolsDelete branch from 033ce3c to bbe99d3 Compare March 1, 2019 17:50
@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

Ok this is fixed now and I kicked off a new official build. https://dnceng.visualstudio.com/internal/_build/results?buildId=111503

@ViktorHofer I couldn't push to your internal branch that you created of my changes so I had to create a new one. Can you please delete the branch you created?https://dnceng.visualstudio.com/internal/_git/dotnet-corefx/branches?_a=all

@ericstj
ericstj requested a review from ViktorHofer March 1, 2019 18:10
Comment thread Directory.Build.props Resolved
Comment thread eng/Tools.props Resolved

@wtgodbe wtgodbe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woohoo! LGTM

Comment thread eng/Tools.props Resolved

@safern safern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AND END OF AN ERA!!! WOHOO!

@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

Almost to the point where the official build failed before.... stuck waiting on package publish (which actually is not a good thing to do given this is a branch 😞)

@safern

safern commented Mar 1, 2019

Copy link
Copy Markdown
Member

If you it does time out I recommend commenting the publish to dotnet blob feed step (sometimes is super fast, sometimes it waits a long time waiting for the exclusive lock -- this is a known issue in the engineering area) whenever you trigger a new official build. Comment: https://github.com/dotnet/corefx/blob/master/eng/pipelines/publish.yml#L56-L82

@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

Waiting to obtain an exclusive lock on the feed.

For 1 hour and 42 minutes so far. ⌚️ sheesh. This is terrible. Are we seriously running this many official builds? Also, how long does it really take to copy some zips and regen a handful of json. Shameful.

@safern

safern commented Mar 1, 2019

Copy link
Copy Markdown
Member

The feed is shared across all repos mostly in the core stack. We could create our own feed in azure, like coreclr did. However people depending on us would have to update their restore sources.

@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

The feed is shared across all repos mostly in the core stack

That's an excuse: we shouldn't excuse bugs we should fix them. It's silly that this thing can't handle multiple insertions per-second, let alone that it takes 2 hours.

@safern

safern commented Mar 1, 2019

Copy link
Copy Markdown
Member

That's an excuse: we shouldn't excuse bugs we should fix them. It's silly that this thing can't handle multiple insertions per-second, let alone that it takes 2 hours.

I agree -- people who own the upload are supposed to be working on getting this better. cc: @jcagme

@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

I gutted the build definition then scheduled a build that just ran the failing portion It succeeded so I think we're good. https://dnceng.visualstudio.com/internal/_build/results?buildId=111834

@ericstj
ericstj dismissed ViktorHofer’s stale review March 1, 2019 21:40

Addressed the official build break.

@ericstj
ericstj merged commit e715967 into dotnet:master Mar 1, 2019
@jcagme

jcagme commented Mar 1, 2019

Copy link
Copy Markdown
Contributor

The feed is shared across all repos mostly in the core stack

That's an excuse: we shouldn't excuse bugs we should fix them. It's silly that this thing can't handle multiple insertions per-second, let alone that it takes 2 hours.

@riarenas and @JohnTortugo have been working on a solution and the work should be completed soon. As a workaround you could create a dedicated corefx feed, update the places where you are currently referencing dotnet-core and make sure the repos that consume your packages update their NuGet.configs. See dotnet/razor#240

@mmitche might have extra pointers

@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

I'm hoping the fix actually fixes the throughput of the service rather than moving it off of the blocking path. That wasn't clear to me from the doc: https://github.com/dotnet/arcade/blob/8b32e86b10c653694c3f31e0b540ee13333b99fd/Documentation/CorePackages/AsyncPublishing.md#problems

The tooling that mimics nuget pushes on top of Azure storage requires a lock when pushing. When multiple builds are attempting to push to the same feed at the same time, only one may push at a time. This leads to significant wait times to finish publishing, potentially causing builds to time out.

Unless we fix the amount of work that happens under that lock to be less than we'll still be stuck with slow throughput for publishing even if it doesn't block the build.

@ericstj

ericstj commented Mar 1, 2019

Copy link
Copy Markdown
Member Author

I'm worried that the workaround that folks use of creating a new feed is just kicking the can. Suppose the perf issues at the heart of the lock contention problem are scaling issues that disappear for some time when you move to an empty feed. Has anyone done a root cause analysis on what's taking so long under the lock? All the issues I've seen seem to be black-boxing that process and assuming its a given.

@karelz karelz added this to the 3.0 milestone Mar 18, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Remove buildtools init-tools and various BuildTools specific properties

* Workaround NuGet restore GeneratePathProperty case-sensitivity

See NuGet/Home#7843


Commit migrated from dotnet/corefx@e715967
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants