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

Set assets manifest metadata for assets that get shipped with .NET release #98824

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

MilenaHristova
Copy link
Member

Tracking issue: https://github.com/dotnet/release/issues/822

Setting metadata for assets that will get shipped as part of .NET release in the assets manifest file.
I added the ProducesDotNetReleaseShippingAssets property in #98665
Since runtime doesn't use arcade's default publishing, this is editing prepare-artifacts.proj where the metadata is getting added to the manifest

</ItemsToPush>

<ItemsToPush Include="@(WorkloadsVSInsertionFile)">
<RelativeBlobPath>$(InstallersRelativePath)workloads/%(Filename)%(Extension)</RelativeBlobPath>
<PublishFlatContainer>true</PublishFlatContainer>
<ManifestArtifactData Condition="'$(ProducesDotNetReleaseShippingAssets)' == 'true'">DotNetReleaseShipping=true</ManifestArtifactData>
Copy link
Member

Choose a reason for hiding this comment

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

Consider using an ItemDefinitionGroup instead of all these manual metadata updates.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, I didn't know about this. How about now?

@ViktorHofer ViktorHofer merged commit 6f8d3e3 into dotnet:main Feb 23, 2024
86 of 93 checks passed
@ViktorHofer
Copy link
Member

I assume the same change needs to be done in windowsdesktop and deployment-tools?

@MilenaHristova MilenaHristova deleted the publishing branch February 23, 2024 11:23
@MilenaHristova
Copy link
Member Author

I assume the same change needs to be done in windowsdesktop and deployment-tools?

yes, for windowsdesktop: dotnet/windowsdesktop#4173
deployment-tools is not on the gather-drop list, I'll have to check about it

MilenaHristova added a commit that referenced this pull request Feb 27, 2024
…lease (#98824)

* add metadata to manifest

* set in ItemDefinitionGroup

* remove from items

* comment
@MilenaHristova
Copy link
Member Author

/backport to release/7.0-staging

Copy link
Contributor

Started backporting to release/7.0-staging: https://github.com/dotnet/runtime/actions/runs/8066287605

@MilenaHristova
Copy link
Member Author

/backport to release/6.0-staging

Copy link
Contributor

Started backporting to release/6.0-staging: https://github.com/dotnet/runtime/actions/runs/8066367789

Copy link
Contributor

@MilenaHristova backporting to release/6.0-staging failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: add metadata to manifest
Using index info to reconstruct a base tree...
M	src/installer/prepare-artifacts.proj
Falling back to patching base and 3-way merge...
Auto-merging src/installer/prepare-artifacts.proj
CONFLICT (content): Merge conflict in src/installer/prepare-artifacts.proj
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 add metadata to manifest
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@MilenaHristova an error occurred while backporting to release/6.0-staging, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

MilenaHristova added a commit to MilenaHristova/runtime that referenced this pull request Feb 27, 2024
…lease (dotnet#98824)

* add metadata to manifest

* set in ItemDefinitionGroup

* remove from items

* comment
ViktorHofer added a commit that referenced this pull request Mar 6, 2024
…t shipped with .NET release (#98991)

* Set assets manifest metadata for assets that get shipped with .NET release (#98824)

* add metadata to manifest

* set in ItemDefinitionGroup

* remove from items

* comment

* Add ProducesNetCoreAssets property to Publishing.props (#98665)

* add property to publishing.props

* rename to ProducesDotNetReleaseShippingAssets

* Update Publishing.props

---------

Co-authored-by: Viktor Hofer <[email protected]>

---------

Co-authored-by: Viktor Hofer <[email protected]>
ViktorHofer added a commit that referenced this pull request Mar 7, 2024
…g.props (#98988)

* add property to publishing.props

* rename to ProducesDotNetReleaseShippingAssets

* Update Publishing.props

* Set assets manifest metadata for assets that get shipped with .NET release (#98824)

* add metadata to manifest

* set in ItemDefinitionGroup

* remove from items

* comment

---------

Co-authored-by: MilenaHristova <[email protected]>
Co-authored-by: Viktor Hofer <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants