Skip to content

[main] Forward-port source-build tarball ownership normalization - #10449

Merged
rbhanda merged 1 commit into
mainfrom
users/rbhanda/oob-20261025-tarball-main
Oct 26, 2026
Merged

rbhanda merged 1 commit into
mainfrom
users/rbhanda/oob-20261025-tarball-main

Conversation

@rbhanda

@rbhanda rbhanda commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Forward-port the released .NET 11 RC3 tarball-ownership fix to main.

  • Normalize the source, source-build artifact, bootstrap, and symbol tarball paths covered by the released change to UID/GID 2001:2001.
  • Preserve Git archive PAX metadata and deterministic headers while normalizing ownership.
  • Carry the SDK task opt-in, the Arcade/SDK source-build conditions, and the ownership regression tests unchanged.

This ports the .NET 11 change as released. It does not broaden its existing source-build conditions or include separate .NET 8/9 branch-specific follow-ups.

Source

Clean forward-port of public commit 155afd0b2991c0b4ee5b5db8b48ae6c86f17f400, included in public tag v11.0.0-rc.3.26522.148.

@wtgodbe, please review the forward-port, confirm the packaging coverage on main, and advise whether any additional main-specific normalization is needed.

Validation

  • git diff --check passed.
  • The stable patch ID matches the published source commit; all ten files applied without conflicts.
  • All five modified MSBuild XML files parse successfully.
  • Product builds and the SDK/source-build ownership tests have not been run locally. This machine lacks the preview SDKs required by the checkouts (11.0.100-rc.1.26420.103 for the SDK component and 12.0.100-alpha.1.26480.102 for the VMR root).
  • Linux packaging CI, archive ownership checks, and owner approval are still required. This PR is intentionally a draft.

Note

This PR was prepared with GitHub Copilot.

(cherry picked from commit 155afd0)

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 6d2559fe-05fb-4a93-9b04-40c9ac80fbd5
@rbhanda
rbhanda requested a review from wtgodbe October 25, 2026 21:40
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team October 25, 2026 21:41
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team October 25, 2026 21:41
@rbhanda
rbhanda marked this pull request as ready for review October 26, 2026 15:39
@rbhanda
rbhanda requested review from a team as code owners October 26, 2026 15:39
Copilot AI balanced review requested due to automatic review settings October 26, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The raw tar-header rewrite and cross-component packaging changes still need Linux packaging CI, passing ownership tests, and owner confirmation of coverage on main.

No open issues 🎉

What changed in this PR

Forward-ports the released .NET 11 RC3 tarball ownership fix to main, normalizing covered .NET source-build archives to UID/GID 2001:2001 without broadening existing source-build conditions.

Changes:

  • Normalizes ownership across source, artifact, bootstrap, SDK, and symbol tarball creation.
  • Rewrites source tar headers while preserving Git PAX metadata and deterministic header names.
  • Adds archive ownership checks and SDK task command-line regression tests.
File Description
test/​Microsoft.DotNet.Tests/​SourceTarballContentTests.cs Checks source tarball entry ownership.
test/​Microsoft.DotNet.SourceBuild.Tests/​SourceBuiltArtifactsTests.cs Checks ownership across generated artifact tarballs.
src/​sdk/​test/​sdk-tasks.Tests/​TarGzFileCreateFromDirectoryTests.cs Tests default and ownership-normalizing tar arguments.
src/​sdk/​src/​Tasks/​sdk-tasks/​TarGzFileCreateFromDirectory.cs Adds opt-in ownership normalization.
src/​sdk/​src/​Layout/​redist/​targets/​GenerateArchives.targets Enables normalization for source-only SDK archives.
src/​arcade/​src/​Microsoft.DotNet.Build.Tasks.Archives/​build/​archives.targets Normalizes source-only product and symbol tarballs.
eng/​tools/​tasks/​Microsoft.DotNet.UnifiedBuild.Tasks/​CreateSourceArtifact.cs Rewrites ownership fields and checksums before deterministic compression.
eng/​PublishSourceBuild.props Normalizes source-built artifact bundle ownership.
eng/​finish-source-only.proj Normalizes symbol and prebuilt tarball ownership.
eng/​bootstrap/​buildBootstrapPreviouslySB.csproj Normalizes repacked bootstrap tarball ownership.

Review effort: Balanced

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