-
Notifications
You must be signed in to change notification settings - Fork 45
add source-build pre-built detection #274
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
add source-build pre-built detection #274
Conversation
eng/Versions.props
Outdated
| <UsingToolNetFrameworkReferenceAssemblies>true</UsingToolNetFrameworkReferenceAssemblies> | ||
| <UsingToolNuGetRepack>true</UsingToolNuGetRepack> | ||
| <!-- Dependencies --> | ||
| <MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>8.0.0-alpha.1.22616.1</MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious how you created these? Is there tooling that will add these and the version details dependency entry or were these created by hand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Darc created these through darc add-dependency + updates the values once darc update-dependency is called (guess the same is done if the update comes from a PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I've always added these by hand. It's good to know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion this is hard to read, can it be capitalized correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is created / updated by tooling (darc), not sure it will work with a different definition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should work with any capitalization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe it can just be removed from the Versions.props completely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, not needed in Versions.props
eng/Version.Details.xml
Outdated
| <Sha>80b6be47e1425ea90c5febffac119250043a0c92</Sha> | ||
| <SourceBuild RepoName="arcade" ManagedOnly="true" /> | ||
| </Dependency> | ||
| <Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="8.0.0-alpha.1.22616.1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are inconsistent across the repos in regards to SBRP being a tooling versus product dependency. @mmitche, we've talked about this in the past. Now that you know more about source-build what should this be classified as? I think it should be a product dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be product too. It may not make a ton of difference, but product dependencies have more restrictions (can't have cycles, show up in coherency calculations in BARViz).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this package name using - for separators?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe @MichaelSimons could help answer that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this package name using
-for separators?
Because the naming pattern for the intermediate packages is Microsoft.SourceBuild.Intermediate.. The repo name is literally source-build-reference-packages. This is a internal non-shipping infrastructure package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Friendly reminder @oleksandr-didyk to move this to be a product dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this package name using
-for separators?Because the naming pattern for the intermediate packages is Microsoft.SourceBuild.Intermediate.. The repo name is literally source-build-reference-packages. This is a internal non-shipping infrastructure package.
Generally, we don't name packages based on name of repos. Not that this is super important, but the package could have been named Microsoft.SourceBuild.Intermediate.References or something like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Friendly reminder @oleksandr-didyk to move this to be a product dependency.
My bad, committed the change but did not push. Thanks
eng/Versions.props
Outdated
| <UsingToolNetFrameworkReferenceAssemblies>true</UsingToolNetFrameworkReferenceAssemblies> | ||
| <UsingToolNuGetRepack>true</UsingToolNuGetRepack> | ||
| <!-- Dependencies --> | ||
| <MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>8.0.0-alpha.1.22616.1</MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>8.0.0-alpha.1.22616.1</MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion> |
Resolves #273
Additionally created a disabled subscription for the added dependency on source-build reference packages (will enable once this PR is merged):
CC: @MichaelSimons @crummel