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

Clean up contents from previously-sb tarball post binary-cleanup #40772

Conversation

omajid
Copy link
Member

@omajid omajid commented May 8, 2024

If we extracted the previously-source-build tarball only for running the binary cleanup tool, clean up the extracted contents. This undo's the extraction operation that was only performed for running the binary-cleanup tool.

I am creating a tarball for building .NET offline post-prep. In that scenario, I run ./prep-source-build.sh --bootstrap, and then package up the entire VMR directory into a tarball. Without this cleanup, there are a ton of duplicated binaries in the tarball, since the nuget packages are both in previously-source-built archive and in an extracted form. With this change, the archive size goes from just over 4GB to just over 2GB.

This is a port of dotnet/installer#19632 from installer to sdk.

@omajid omajid requested a review from a team as a code owner May 8, 2024 13:18
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels May 8, 2024
@omajid
Copy link
Member Author

omajid commented May 8, 2024

cc @ellahathaway

@MichaelSimons
Copy link
Member

@omajid - there was a conflicting change made today. Can you please resolve the conflicts? TIA.

If we extracted the previously-source-build tarball only for running the
binary cleanup tool, clean up the extracted contents. This undo's the
extraction operation that was only performed for running the
binary-cleanup tool.

I am creating a tarball for building .NET offline post-prep. In that
scenario, I run ./prep-source-build.sh --bootstrap, and then package up
the entire VMR directory into a tarball. Without this cleanup, there are
a ton of duplicated binaries in the tarball, since the nuget packages
are both in previously-source-built archive and in an extracted form.
With this change, the archive size goes from just over 4GB to just over
2GB.

This is a port of dotnet/installer#19632 from
installer repo to sdk.
@omajid omajid force-pushed the prep-remove-extracted-tarball-packages-post-binary-cleanup branch from 0cc0768 to 8038487 Compare May 8, 2024 21:24
@omajid omajid requested a review from a team as a code owner May 8, 2024 21:24
@MichaelSimons MichaelSimons merged commit a568070 into dotnet:main May 9, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants