Split NuGet mega-packages to stay under 500MB feed limit#3584
Merged
Conversation
The _NuGets, _NuGetsPreview, _Symbols, and _SymbolsPreview packages exceeded the Azure DevOps 500MB size limit. Split each into: - .Managed (managed-only nupkgs, small) - .NativeAssets (native asset nupkgs, large) - Parent meta-package (depends on both sub-packages) The download side (DownloadPackageAsync) already follows dependencies, so consumers automatically get both sub-packages when requesting the parent. New nuspec templates: _NuGets.Managed.nuspec, _NuGets.NativeAssets.nuspec _NuGetsPreview.Managed.nuspec, _NuGetsPreview.NativeAssets.nuspec _Symbols.Managed.nuspec, _Symbols.NativeAssets.nuspec _SymbolsPreview.Managed.nuspec, _SymbolsPreview.NativeAssets.nuspec Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Instead of manually splitting _NuGets into .Managed and .NativeAssets sub-packages, dynamically bin-pack all nupkgs into ~200 MB numbered chunks (_NuGets.Dependencies.1, .2, .3, etc.). The parent meta-package depends on all chunks. This is self-balancing: as packages grow or shrink, the chunk count adjusts automatically without any manual curation. - Delete 8 .Managed/.NativeAssets nuspec files - Add generic _Dependencies.nuspec template for chunks - Rewrite nuget-special Cake target with first-fit decreasing bin-packing - _NativeAssets handling (raw native binaries) is unchanged Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
_NuGetsand_NuGetsPreviewCI artifact packages exceed the Azure DevOps NuGet feed size limit of 500MB, causing push failures.Solution
Split each mega-package into two sub-packages:
.Managed— managed-only nupkgs (SkiaSharp.dll, Views, HarfBuzz, etc.).NativeAssets— native asset nupkgs (Win32, Linux, macOS, Android, iOS, etc.)The parent becomes a meta-package with NuGet dependencies on both sub-packages.
DownloadPackageAsyncalready follows dependencies, so consumers are unaffected.Packages affected
_NuGets.Managed+.NativeAssets_NuGetsPreview.Managed+.NativeAssets_Symbols.Managed+.NativeAssets_SymbolsPreview.Managed+.NativeAssets