Repository navigation
[main] Forward-port source-build tarball ownership normalization - #10449
Merged
Merged
Conversation
(cherry picked from commit 155afd0) Co-authored-by: Copilot <[email protected]> Copilot-Session: 6d2559fe-05fb-4a93-9b04-40c9ac80fbd5
|
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. |
Contributor
There was a problem hiding this comment.
🔵 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
wtgodbe
approved these changes
Oct 26, 2026
This was referenced Nov 2, 2026
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.
Summary
Forward-port the released .NET 11 RC3 tarball-ownership fix to
main.2001:2001.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 --checkpassed.11.0.100-rc.1.26420.103for the SDK component and12.0.100-alpha.1.26480.102for the VMR root).Note
This PR was prepared with GitHub Copilot.