Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAR as a service - Node startup #5613

Merged
merged 75 commits into from
Sep 1, 2020
Merged

Conversation

ostorc
Copy link
Contributor

@ostorc ostorc commented Aug 5, 2020

This PR provides MSBuild necessary infrastructure to start up new RAR node and connect to it and perform simple request (just for showcase purpose, will be deleted in next phase).

Still WIP, have to go through the code again and check if there are any possible edge cases. Also I had merged rework of Handshake, so I will have to look into that.

Implements #5555

Copy link

@donJoseLuis donJoseLuis left a comment

Choose a reason for hiding this comment

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

a handful of comments, Thanks for sending out the PR

Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

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

Note to self: started looking at TaskHost, then stopped.

eng/Packages.props Show resolved Hide resolved
src/Build/BackEnd/Components/Communications/NodeManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Components/Communications/NodeManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Components/Communications/NodeManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/OutOfProcNode.cs Outdated Show resolved Hide resolved
src/MSBuild/XMake.cs Show resolved Hide resolved
Copy link
Member

@ladipro ladipro left a comment

Choose a reason for hiding this comment

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

That's a big PR! Do you think it would make sense to break it down into smaller change sets?

I've taken a quick look and left comments.

src/Tasks/ResolveAssemblyReferences/Server/ServerMutex.cs Outdated Show resolved Hide resolved
src/Tasks/Microsoft.Common.CurrentVersion.targets Outdated Show resolved Hide resolved
src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs Outdated Show resolved Hide resolved
src/Shared/NamedPipeUtil.cs Outdated Show resolved Hide resolved
src/Shared/CommunicationsUtilities.cs Outdated Show resolved Hide resolved
src/Shared/CommunicationsUtilities.cs Outdated Show resolved Hide resolved
src/Shared/CommunicationsUtilities.cs Outdated Show resolved Hide resolved
src/Framework/IRarBuildEngine.cs Outdated Show resolved Hide resolved
Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

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

It might be good to try to reuse code more rather than duplicating it. It makes it easier to follow, and it means that if we change it in the future, we only need to change it one place rather than multiple.

src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs Outdated Show resolved Hide resolved
src/MSBuild/XMake.cs Outdated Show resolved Hide resolved
src/Shared/CommunicationsUtilities.cs Outdated Show resolved Hide resolved
src/Shared/NamedPipeUtil.cs Show resolved Hide resolved
src/Shared/CommunicationsUtilities.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs Outdated Show resolved Hide resolved
@ostorc ostorc force-pushed the rarAsService/node branch from 20e4046 to 268b4d7 Compare August 10, 2020 11:10
@ostorc ostorc closed this Aug 12, 2020
@ostorc ostorc reopened this Aug 12, 2020
@ostorc
Copy link
Contributor Author

ostorc commented Aug 12, 2020

/azp run

@azure-pipelines
Copy link

Pull request contains merge conflicts.

@ostorc
Copy link
Contributor Author

ostorc commented Aug 12, 2020

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@ostorc
Copy link
Contributor Author

ostorc commented Aug 12, 2020

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@ostorc
Copy link
Contributor Author

ostorc commented Aug 12, 2020

/azp run

Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

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

I think I'm happy with this. Thanks!

src/Build/BackEnd/BuildManager/BuildManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/BuildManager/BuildManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Shared/NamedPipeUtil.cs Outdated Show resolved Hide resolved
src/Shared/NamedPipeUtil.cs Show resolved Hide resolved
Copy link
Member

@ladipro ladipro left a comment

Choose a reason for hiding this comment

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

I have added a few comments inline. Almost there!

src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Show resolved Hide resolved
src/MSBuild/XMake.cs Outdated Show resolved Hide resolved
src/Package/MSBuild.VSSetup/files.swr Show resolved Hide resolved
src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs Outdated Show resolved Hide resolved
src/Tasks/ResolveAssemblyReferences/Client/RarClient.cs Outdated Show resolved Hide resolved
src/Tasks/ResolveAssemblyReferences/Client/RarClient.cs Outdated Show resolved Hide resolved
ostorc and others added 2 commits August 31, 2020 14:23
Co-authored-by: Ladi Prosek <ladi.prosek@gmail.com>
Copy link

@donJoseLuis donJoseLuis left a comment

Choose a reason for hiding this comment

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

a handful of minor comments

ref/Microsoft.Build/net/Microsoft.Build.cs Outdated Show resolved Hide resolved
ref/Microsoft.Build/net/Microsoft.Build.cs Outdated Show resolved Hide resolved
ref/Microsoft.Build/netstandard/Microsoft.Build.cs Outdated Show resolved Hide resolved
ref/Microsoft.Build/netstandard/Microsoft.Build.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/BuildManager/BuildManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/BuildManager/BuildManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
Copy link
Member

@ladipro ladipro left a comment

Choose a reason for hiding this comment

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

I have added comments and nits inline.

src/Build/BackEnd/BuildManager/BuildManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Components/RequestBuilder/TaskHost.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/BuildManager/BuildManager.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/BackEnd/Node/RarNode.cs Outdated Show resolved Hide resolved
src/Build/Resources/Strings.resx Outdated Show resolved Hide resolved
src/Tasks/Resources/Strings.resx Outdated Show resolved Hide resolved
ostorc and others added 3 commits September 1, 2020 11:29
Typos

Co-authored-by: Ladi Prosek <ladi.prosek@gmail.com>
@ostorc ostorc merged commit 51a1071 into dotnet:master Sep 1, 2020
rainersigwald added a commit to rainersigwald/msbuild that referenced this pull request Sep 29, 2020
This reverts commit 51a1071, reversing
changes made to d58e2b7.

This is an overkill solution to dotnet#5752. Since the new functionality isn't
working, it's easier to just remove it rather than juggle assembly
loading.
rainersigwald added a commit to rainersigwald/msbuild that referenced this pull request Oct 8, 2020
This reverts commit 51a1071, reversing
changes made to d58e2b7.

This is an overkill solution to dotnet#5752. Since the new functionality isn't
working, it's easier to just remove it rather than juggle assembly
loading.
rainersigwald added a commit that referenced this pull request Oct 13, 2020
This reverts commit 51a1071, reversing
changes made to d58e2b7.

This is an overkill solution to #5752. Since the new functionality isn't
working, it's easier to just remove it rather than juggle assembly
loading.
AR-May added a commit to AR-May/msbuild that referenced this pull request Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants