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

Don't publish assets with Vertical visibility as part of the merged manifest for a vertical. #45553

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

jkoritzinsky
Copy link
Member

Related to dotnet/arcade#15344

Implements support for Vertical asset visibility in the VMR, where an asset is only visible within a vertical and is not uploaded to AzDO storage nor included in the merged asset manifest for the vertical.

@jkoritzinsky jkoritzinsky requested review from a team as code owners December 18, 2024 22:20
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Dec 18, 2024
…ldn't be uploaded from jobs and they won't be in the asset manifest anyway.
@jkoritzinsky jkoritzinsky force-pushed the artifact-visibility-vmr branch from b7a0af1 to f68a748 Compare December 18, 2024 22:29
<BinPlaceFile Include="@(ProducedAsset->'$(ArtifactsAssetsDir)%(Identity)')" />
<!--
When building from source, the Private.SourceBuilt.Artifacts archive already contains the nuget packages.
Don't binplace any packages or blobs with vertical visibility. These are only used for building other repos within this vertical
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Don't binplace any packages or blobs with vertical visibility. These are only used for building other repos within this vertical
In addition, don't binplace any packages or blobs with vertical visibility. These are only used for building other repos within this vertical

<BinPlaceFile Include="@(ProducedPackage->'$(ArtifactsPackagesDir)%(ShippingFolder)/$(RepositoryName)/%(Identity).%(Version).nupkg')" Condition="'$(DotNetBuildSourceOnly)' != 'true'" />
<BinPlaceFile Include="@(ProducedAsset->'$(ArtifactsAssetsDir)%(Identity)')" />
<!--
When building from source, the Private.SourceBuilt.Artifacts archive already contains the nuget packages.
Copy link
Member

@mmitche mmitche Dec 19, 2024

Choose a reason for hiding this comment

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

Suggested change
When building from source, the Private.SourceBuilt.Artifacts archive already contains the nuget packages.
When building from source, the Private.SourceBuilt.Artifacts archive already contains the nuget packages so no need to binplace.

Copy link
Member

@mmitche mmitche left a comment

Choose a reason for hiding this comment

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

Approved with minor comments.

@jkoritzinsky jkoritzinsky requested a review from mmitche December 19, 2024 21:57
{
string elementId = artifactElement.Attribute(_idAttribute)?.Value
// Filter out artifacts that are not "External" visibility.
// Artifacts of "Vertical" visibility should have been filtered out in each individual vertical,
Copy link
Member

Choose a reason for hiding this comment

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

Should we assert on that here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll add some validation

@jkoritzinsky jkoritzinsky enabled auto-merge (squash) December 19, 2024 22:53
@jkoritzinsky jkoritzinsky merged commit 388e0a8 into dotnet:main Dec 20, 2024
34 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants