Skip to content

Fix NonShipping="true" metadata missing from asset manifest#15570

Merged
ViktorHofer merged 3 commits intomainfrom
ViktorHofer-patch-1
Feb 24, 2025
Merged

Fix NonShipping="true" metadata missing from asset manifest#15570
ViktorHofer merged 3 commits intomainfrom
ViktorHofer-patch-1

Conversation

@ViktorHofer
Copy link
Copy Markdown
Member

@ViktorHofer ViktorHofer commented Feb 24, 2025

Without this change the NonShipping metadata is missing:

image

I think this means that repos that update to the newest Arcade will publish their non-shipping assets to the non "-transport" feeds. This sounds pretty broken and should be mitigated asap.

To double check:

@ViktorHofer
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@ViktorHofer ViktorHofer requested a review from mmitche February 24, 2025 21:43
@ViktorHofer ViktorHofer enabled auto-merge (squash) February 24, 2025 21:48
@ViktorHofer ViktorHofer changed the title Update Publish.proj Fix NonShipping="true" metadata missing from asset manifests Feb 24, 2025
@ViktorHofer ViktorHofer changed the title Fix NonShipping="true" metadata missing from asset manifests Fix NonShipping="true" metadata missing from asset manifest Feb 24, 2025
<ItemGroup>
<ItemsToPushToBlobFeed>
<ManifestArtifactData Condition="'%(ItemsToPushToBlobFeed.IsShipping)' == 'false'">%(ItemsToPushToBlobFeed.ManifestArtifactData);NonShipping=true</ManifestArtifactData>
<ManifestArtifactData Condition="'%(ItemsToPushToBlobFeed.IsShipping)' != 'true'">%(ItemsToPushToBlobFeed.ManifestArtifactData);NonShipping=true</ManifestArtifactData>
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.

I don't think this is correct, as the default is that all artifacts are shipping.

Copy link
Copy Markdown
Member Author

@ViktorHofer ViktorHofer Feb 25, 2025

Choose a reason for hiding this comment

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

The IsShipping metadata is treated as a boolean here. Either it is true or not true. Conditioning on true and false makes it an enum which would make it easier to introduce unwanted behavior.

Why would this be incorrect?

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.

if this was about the case where IsShipping is empty, that already defaults to true on L310:
<IsShipping Condition="'%(ItemsToPushToBlobFeed.IsShipping)' == ''">true</IsShipping>

@ViktorHofer ViktorHofer merged commit d10e826 into main Feb 24, 2025
@ViktorHofer ViktorHofer deleted the ViktorHofer-patch-1 branch February 24, 2025 22:37
YuliiaKovalova pushed a commit that referenced this pull request Mar 20, 2025
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