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

Introduce DotNetBuildRepo, DotNetBuild, and DotNetBuildPhase #14369

Merged
merged 12 commits into from
Jan 17, 2024

Conversation

mmitche
Copy link
Member

@mmitche mmitche commented Jan 12, 2024

Introduce DotNetBuildRepo, DotNetBuild, and DotNetBuildPhase

  • DotNetBuildRepo (formerly DotNetBuildOuterRepo) is the marker for building the repo in .NET product mode
  • DotNetBuild is calculated off any of DotNetBuildRepo, DOtNetBuildInnerRepo, and DotNetBuildOrchestrator being true
  • Factored non-repo layout properties into a new file, RepoDefaults.props, instead of housing these in RepoLayout.props
  • Used DotNetBuildPhase == 'foo' in some cases where it's simpler to do so.

To double check:

- DotNetBuildRepo (formerly DotNetBuildOuterRepo) is the marker for building the repo in .NET product mode
- DotNetBuild is calculated off any of DotNetBuildRepo, DOtNetBuildInnerRepo, and DotNetBuildOrchestrator being true
- Factored non-repo layout properties into a new file, RepoDefaults.props, instead of housing these in RepoLayout.props
- Used DotNetBuildPhase == 'foo' in some cases where it's simpler to do so.
@mmitche
Copy link
Member Author

mmitche commented Jan 12, 2024

dotnet/source-build#3938

@mmitche
Copy link
Member Author

mmitche commented Jan 12, 2024

dotnet/source-build#3941

@mmitche mmitche changed the title Other dotnet build switches Introduce DotNetBuildRepo, DotNetBuild, and DotNetBuildPhase Jan 12, 2024
@mmitche
Copy link
Member Author

mmitche commented Jan 12, 2024

@mmitche mmitche requested review from ViktorHofer and a team January 12, 2024 22:33
@mmitche
Copy link
Member Author

mmitche commented Jan 12, 2024

This needs more verification. Not all the switches are totally active yet. For instance, the outer repo switch isn't passed from the orchestrator yet, neither is the orchestrator switch. I added some usages where I know they will be though.

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
@ViktorHofer
Copy link
Member

This needs more verification.

Yes, agreed. You could test this in a local VMR build and make the orchestrator pass the settings in.

@mmitche
Copy link
Member Author

mmitche commented Jan 16, 2024

I'm doing some last minute testing but I think this is ready to go. Verified that the expected controls are showing up. Also enabled DotNetBuildRepo when we get into source build or vertical build modes, so we can transition off of the control use in those repos.

Copy link
Member

@MichaelSimons MichaelSimons left a comment

Choose a reason for hiding this comment

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

Overall looks good. I have one naming comment.

@mmitche
Copy link
Member Author

mmitche commented Jan 17, 2024

Verified in a full VMR build. Still needs some additional enabling there but looking good so far.

@mmitche mmitche merged commit 269a0e6 into dotnet:main Jan 17, 2024
11 checks passed
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.

3 participants