Skip to content

Exclude package assets in SB manifest#3117

Merged
mthalman merged 1 commit into
dotnet:release/10.0.2xxfrom
mthalman:dev/mthalman/issue3077
Oct 27, 2025
Merged

Exclude package assets in SB manifest#3117
mthalman merged 1 commit into
dotnet:release/10.0.2xxfrom
mthalman:dev/mthalman/issue3077

Conversation

@mthalman

Copy link
Copy Markdown
Member

Fixes #3077

Darc publishing in the release/10.0.2xx branch is failing due to duplicate package entries in the MergedManifest.xml files. This stems from the SB legs. Example snippet from the manifest that illustrates duplicate package IDs:

  <Package Id="dotnet-dev-certs" Version="10.0.0-rc.2.25502.107" PipelineArtifactName="SB_AlmaLinux8_Offline_MsftSdk_x64_Artifacts" PipelineArtifactPath="packages/Release/Shipping/aspnetcore/dotnet-dev-certs.10.0.0-rc.2.25502.107.nupkg" RepoOrigin="aspnetcore" Visibility="External" />
  <Package Id="dotnet-dev-certs" Version="10.0.0-rc.2.25502.107" PipelineArtifactName="SB_Alpine321_Offline_MsftSdk_x64_Artifacts" PipelineArtifactPath="packages/Release/Shipping/aspnetcore/dotnet-dev-certs.10.0.0-rc.2.25502.107.nupkg" RepoOrigin="aspnetcore" Visibility="External" />
  <Package Id="dotnet-dev-certs" Version="10.0.0-rc.2.25502.107" PipelineArtifactName="SB_CentOSStream10_Offline_MsftSdk_x64_Artifacts" PipelineArtifactPath="packages/Release/Shipping/aspnetcore/dotnet-dev-certs.10.0.0-rc.2.25502.107.nupkg" RepoOrigin="aspnetcore" Visibility="External" />
  <Package Id="dotnet-dev-certs" Version="10.0.0-rc.2.25502.107" PipelineArtifactName="SB_Fedora41_Offline_MsftSdk_x64_Artifacts" PipelineArtifactPath="packages/Release/Shipping/aspnetcore/dotnet-dev-certs.10.0.0-rc.2.25502.107.nupkg" RepoOrigin="aspnetcore" Visibility="External" />
  <Package Id="dotnet-dev-certs" Version="10.0.0-rc.2.25502.107" PipelineArtifactName="SB_Ubuntu2404Arm64_Offline_MsftSdk_arm64_Artifacts" PipelineArtifactPath="packages/Release/Shipping/aspnetcore/dotnet-dev-certs.10.0.0-rc.2.25502.107.nupkg" RepoOrigin="aspnetcore" Visibility="External" />
  <Package Id="dotnet-dev-certs" Version="10.0.0-rc.2.25502.107" PipelineArtifactName="SB_Ubuntu2404_Offline_MsftSdk_x64_Artifacts" PipelineArtifactPath="packages/Release/Shipping/aspnetcore/dotnet-dev-certs.10.0.0-rc.2.25502.107.nupkg" RepoOrigin="aspnetcore" Visibility="External" />

This happens because of the special logic that gets triggered in non-1xx branches where shared component packages get added to the manifest explicitly. The problem is that this logic is also running in the 2nd publish pass which is specifically meant for the SB blob assets (SDK tarball, artifacts tarball) -- it is not meant to contain packages. It is this publish pass which produces the manifest that ends up going to darc for publishing.

The fix is to just ensure that we don't include the shared component packages as part of this 2nd publish pass. That allows the SB manifest to only contain the blob assets, not packages.

@mthalman mthalman enabled auto-merge (squash) October 27, 2025 15:02
@mthalman mthalman merged commit 09dfcf9 into dotnet:release/10.0.2xx Oct 27, 2025
7 checks passed
@mthalman mthalman deleted the dev/mthalman/issue3077 branch October 27, 2025 17:49
@mthalman

Copy link
Copy Markdown
Member Author

/backport to main

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to main (link to workflow run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants