Skip to content

[ci] Update PoliCheck suppression signatures - #13838

Merged
jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-policheck-exclusion
Dec 1, 2026
Merged

jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-policheck-exclusion

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 2e1fe939b4a67cea42e2c59bd115df3e86121732

Dimension Assessment Rationale
Change confidence 9/10 ↑ Archived scans identify the removed-file signatures and match all 16 license findings across the move.
↑ All 31 findings from the reported scan match retained suppressions.
↓ Guardian and PoliCheck were not run locally.
Diagnosis confidence 9.5/10 ↑ The reported signatures differ from the old suppressions for the moved files, while the license rules and contexts match.
Evidence fit 10/10 ↑ The reported scan identifies the 17 findings covered by the new signatures.

Context: https://devdiv.visualstudio.com/DevDiv/DevDiv%20Team/_build/results?buildId=16168378&view=logs&j=cea97f13-aa8f-5c62-1a4c-3826793da08a&t=efdc787f-274e-5122-0b15-8b92cd93cc6d&l=133
Context: #13513, #13515, #11607, #12868, #13834

PoliCheck reported 17 findings with signatures that did not match existing suppressions after the aapt2 task and Android SDK manifest moved. One finding matches an aapt2 error message that the build tasks must recognize; the others occur in third-party license text.

Remove the old-path signatures and add the signatures for the current paths. Historical scan results confirm that the 16 license findings have the same rules and contexts. Also remove six suppressions for deleted MonoVM logging and key management files, and correct the Intel, MIPS, and Android XR license descriptions.

Validation: git diff --check origin/main...HEAD and python -m json.tool .gdn\policheck\source.gdnsuppress > $null passed. A comparison of archived scan results confirmed that all 31 findings from the reported scan still match the suppression file and that the obsolete signatures were removed. PoliCheck was not rerun; Guardian and PoliCheck were not available on PATH.

jonathanpeppers and others added 2 commits November 30, 2026 12:36
PoliCheck build 16168378 reported 17 findings whose suppressions no
longer matched. Update the signatures to the values in the build log:

* src/Microsoft.Android.Build.Tasks/Tasks/Aapt2.cs:396 matches the
  aapt2 error text \ailed to parse whitelist from config file\; it
  must stay unchanged.
* tools/workload-dependencies/AndroidManifestFeed_d18.0.xml contains
  verbatim Google license text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove signatures for the deleted MonoVM logging and key management files, as well as the old aapt2 alternative signature. Correct the license descriptions for the Intel, MIPS, and Android XR findings.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 20:33

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

Without archived PoliCheck findings or a fresh scan, the 17 replacement signatures and six removals in the opaque suppression file require human verification.

No open issues 🎉

What changed in this PR

Updates .NET for Android’s PoliCheck suppressions to follow recent file moves and removals, without changing product code or third-party license text.

Changes:

  • Replaces 17 suppression signatures for the moved AAPT2 task and Android SDK manifest.
  • Removes six obsolete suppressions for deleted MonoVM logging and key-management files.
  • Corrects Intel, MIPS, and Android XR license justifications and refreshes the update timestamp.
File Description
.gdn/​policheck/​source.gdnsuppress Refreshes signatures, removes obsolete entries, and corrects license justifications.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

/azp run Xamarin.Android-PR

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@jonathanpeppers

Copy link
Copy Markdown
Member Author

This is green now:
image

@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Dec 1, 2026
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@jonathanpeppers

Copy link
Copy Markdown
Member Author

Internal Xamarin.Android-PR build 16170687 failed. I reviewed the failures, and none of them appear to be caused by this PR. They can be ignored:

Failure Why it can be ignored
Task: Windows > Tests > MSBuild 6 / Guardian: Post Analysis BinSkim scans adb.exe that a test downloads into its temp folder. Not product code.
Task: Windows > Build & Smoke Test / Ensure no modified/untracked files Untracked .sarif file left by the Guardian tools. Fails on every main build.
Test: BuildTest.FixAbstractMethodsOnReadyToRunAssembly Network error in the log: Failed to download package.
Test: NuGetPackageVersionFinderTests.ShortTaskNameResolvesWithNuGetMetadataInFullMSBuild Fails on every main build.

The public CI (dnceng-public) is offline, so this internal build is the only CI result.

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: I checked the suppression JSON, all changed hunks, and the pipeline wiring. The remaining review evidence is the PoliCheck findings output for build 16168378: each of the 17 added signatures in .gdn/policheck/source.gdnsuppress (lines 82-83 and 98-225 at 2e1fe939) needs its rule/term, file path, and matched context, so I can independently verify that it covers the aapt2 message or license text rather than an unrelated finding. My read-only build-log request returned HTTP 404 (curl also stopped at the response-size limit); I could not retrieve that mapping. This is a reviewer coverage gap, not a defect identified in the PR. Please attach those finding rows or the scan output; then I can finish the scope check and final review.

@jonathanpeppers
jonathanpeppers merged commit cbca40a into main Dec 1, 2026
2 of 3 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-policheck-exclusion branch December 1, 2026 15:27
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.

4 participants