Skip to content

[ci] Remove obsolete p7zip and binutils suppression remnants - #13379

Merged
simonrozsival merged 2 commits into
mainfrom
simonrozsival-remove-obsolete-tooling-remnants
Nov 4, 2026
Merged

simonrozsival merged 2 commits into
mainfrom
simonrozsival-remove-obsolete-tooling-remnants

Conversation

@simonrozsival

@simonrozsival simonrozsival commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Context: #13200

The completed LLVM/binutils retirement left four PoliCheck suppressions for GNU-binutils GPLv3 license text that is no longer in THIRD-PARTY-NOTICES.TXT. Public Linux/macOS setup also still installs p7zip, although the only executable 7z consumer left in the tree is the unused Xamarin.ProjectTools.SevenZipHelper test helper.

Remove those four suppressions, delete SevenZipHelper, and stop installing p7zip. The helper has no callers or explicit project-file inclusion; SDK compile globs need no corresponding change. Keep the other Linux build dependencies: cmake, ninja-build, and ccache.

Current extraction paths do not need a replacement: Android SDK setup uses unzip/managed ZIP APIs, workload extraction uses MSBuild Unzip, and the Unix .NET installer uses tar. Inspection of the exact pinned apkdiff 0.0.17 and dotnet-test-slicer 0.1.0-alpha7 source commits found no 7-Zip dependency.

Remove the remaining historical release-bundle download and extraction instructions from Documentation/workflow/DevelopmentTips.md as well. Keep the instructions for obtaining debug symbols from a custom local build and loading them in LLDB. No 7-Zip references remain in tracked source or documentation; broader substring matches are only an unrelated timestamp and encoded Alpine public-key data.

The shipped notices already contain no GNU-binutils or p7zip entry. Leave them unchanged, including the Android documentation GPLv2/Classpath material. All unrelated suppressions remain intact.

Validation

The code/setup cleanup was validated on macOS at b0e029a247e3ad4f5ade67991ff6590c6c9e81f8, based directly on main commit 0f31c5667fd31777170801e7603596a3ab1e6e2a. The documentation-only follow-up is 91e2f2dab65c65bba10602c1d9dfbbe5174e65a3.

git diff --check
python3 -m json.tool .gdn/policheck/source.gdnsuppress >/dev/null
python3 -c 'import sys,yaml; [yaml.safe_load(open(path)) for path in sys.argv[1:]]; print("Parsed both YAML templates")' build-tools/automation/yaml-templates/build-linux-steps.yaml build-tools/automation/yaml-templates/setup-test-environment-steps.yaml

Passed. Structured comparisons against the base also confirm that exactly the four matching suppressions were removed, all other JSON data is unchanged, and the YAML edits affect only p7zip setup. All four remaining inline Bash steps passed bash -n. git diff --check origin/main...HEAD also passed after the documentation follow-up.

git grep -I -n -i -o -E 'SevenZip|p7zip|7[- ]?zip|(^|[^a-zA-Z0-9_])7z(a|r)?([^a-zA-Z0-9_]|$)|\.7z'

No matches after the documentation follow-up (expected exit status 1). A broader git grep -I -n -i -o -E '7z|seven[ _-]?zip|7[ _-]?zip' found only the unrelated timestamp and encoded public-key data noted above; no archive-tool filenames remain either.

dotnet build build-tools/xa-prep-tasks/xa-prep-tasks.csproj -v minimal
dotnet build src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Xamarin.ProjectTools.csproj -v minimal

Both passed with zero warnings/errors at b0e029a247e3ad4f5ade67991ff6590c6c9e81f8. The initial ProjectTools build failed with MSB4062 because the fresh worktree lacked xa-prep-tasks.dll; building the prerequisite resolved it without source changes. Builds were not rerun for the documentation-only follow-up.

No full SDK/device/emulator/benchmark tests or hosted pipeline execution were run for this unused-helper and setup cleanup. Hosted Azure template expansion and CI status remain unverified.

The bundled binutils license notice has already been retired.  Remove
only its four GPLv3-specific PoliCheck suppressions, leaving all other
suppressions and the current shipped notices unchanged.

Delete the unused Xamarin.ProjectTools.SevenZipHelper test helper and
stop installing p7zip in public Linux/macOS setup.  Current build and
pipeline tools do not require it.  Preserve the historical bundle.7z
download instructions and the other Linux build dependencies.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 11:32

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.

🟢 Approval recommended

No active review issues block the cleanup of obsolete p7zip and bundled-binutils remnants.

No open issues 🎉

What changed in this PR

Removes obsolete p7zip and bundled-binutils remnants from .NET for Android’s CI setup and test utilities.

Changes:

  • Removes four PoliCheck suppressions for the retired GNU-binutils GPLv3 notice.
  • Deletes the unused SevenZipHelper test utility.
  • Removes public Linux/macOS p7zip installation while preserving cmake, ninja-build, and ccache.
File Description
src/​Xamarin.Android.Build.Tasks/​Tests/​Xamarin.ProjectTools/​Utilities/​SevenZipHelper.cs Deletes the unused 7-Zip extraction helper.
build-tools/​automation/​yaml-templates/​setup-test-environment-steps.yaml Removes public Linux/macOS p7zip setup steps.
build-tools/​automation/​yaml-templates/​build-linux-steps.yaml Removes p7zip from Linux build dependencies.
.gdn/​policheck/​source.gdnsuppress Removes four obsolete binutils license suppressions.

Review effort: Balanced

@simonrozsival
simonrozsival enabled auto-merge (squash) November 3, 2026 14:06
Remove the historical release-bundle download and 7-Zip extraction
instructions from the native debugging tips.  Keep the guidance for
using debug symbols from a custom local build and loading them in LLDB.

Co-authored-by: Copilot App <[email protected]>
@simonrozsival simonrozsival added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Nov 4, 2026
@simonrozsival

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the p7zip dependency cleanup, CI template and provisioning consumers, obsolete helper removal, and suppression changes. I found no blocking correctness issue in this revision.

@simonrozsival
simonrozsival merged commit 59753f7 into main Nov 4, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants