Repository navigation
[Testing] Fixed Build error on net11 branch - #38589
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38589Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38589" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hey there @@TamilarasanSF4853! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@TamilarasanSF4853 — new AI review results are available based on commit
6c579d0.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ⚠️ SKIPPED
No tests were detected in this PR.
Recommendation: Add tests to verify the fix using the write-tests-agent.
📋 Pre-Flight — Context & Validation
Issue: None linked - build regression introduced by #37232
PR: #38589 - [Testing] Fixed Build error on net11 branch
Platforms Affected: Android
Files Changed: 1 API-surface manifest, 0 implementation, 0 test
Key Findings
- #37232 added
public override bool OnTouchEvent(MotionEvent? e)to the publicMauiMaterialPickerBasetype but omitted its generated Android PublicAPI declaration. - The PR adds exactly one matching entry to
src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt; it does not alter runtime behavior. - No issue, review findings, inline comments, edge-case requests, or test files are attached to #38589. The prior gate result is
SKIPPEDbecause no tests were detected. - The primary bounded validation is the Android
Microsoft.Maui.Corebuild that runs the PublicApiAnalyzers check; no additional mandatory regression tests were supplied for STEP 5a.
Code Review Summary
Verdict: SKIPPED
Confidence: N/A
Errors: 0 | Warnings: 0 | Suggestions: 0
Key code review findings:
- Code review is intentionally deferred to the dedicated STEP 5b expert pass.
Fix Candidates
| # | Source | Approach | Test Result | Files Changed | Notes |
|---|---|---|---|---|---|
| PR | PR #38589 | Declare the already-public Android override in PublicAPI.Unshipped.txt |
src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt |
Original PR |
🔬 Code Review — Deep Analysis
Code Review — PR #38589
Independent Assessment
What this changes: Adds the missing Android PublicAPI baseline entry for the existing public MauiMaterialPickerBase.OnTouchEvent(MotionEvent?) override. The submitted diff changes no runtime implementation.
Inferred motivation: Keep the analyzer baseline synchronized with the public override introduced by #37232 so the net11.0 build no longer reports an undeclared public API.
Reconciliation with PR Narrative
Author claims: #37232 added the public Android override without its PublicAPI entry, causing a build failure.
Agreement/disagreement: The claim matches the code. The defining implementation is already present in src/Core/src/Platform/Android/Material3Controls/MauiMaterialPicker.cs, and the added signature matches its nullable parameter and bool return type.
Prior Review Reconciliation
No prior ❌ Error findings were found across top-level reviews, inline review comments, or PR issue comments.
Blast Radius Assessment
- Runs for all instances: No runtime code changes; this affects API-baseline analysis only.
- Startup impact: None.
- Static/shared state: None.
CI Status
- Required-check result: Undetermined;
gh pr checks --requiredwas unavailable because GitHub CLI authentication is absent. - Classification: Anonymous check-run evidence showed queued/in-progress jobs, a device-test build failure, and cancelled superseded jobs, but did not establish the authoritative required-check set or final cause.
- Action taken: Confidence capped at low. No CI failure investigation was performed before the required comparative artifacts.
Findings
No actionable code findings. inline-findings.json contains an empty JSON array.
Failure-Mode Probing
- API-shape mismatch: The entry exactly matches
public override bool OnTouchEvent(MotionEvent? e). - Wrong platform baseline: The implementation is Android-specific and the entry is in
PublicAPI/net-android/PublicAPI.Unshipped.txt. - Runtime regression: Not applicable because the submitted change does not alter executable code.
External Output Contract
Not applicable.
Verdict: NEEDS_DISCUSSION
Confidence: low
Summary: The one-line PublicAPI correction is technically sound and needs no reviewer refinement. Approval is withheld only because required CI is pending or undetermined and the trusted Gate was skipped due to no tests.
🛠️ Try-Fix — Analysis & Comparison
Fix Candidates
| # | Source | Approach | Test Result | Files Changed | Notes |
|---|---|---|---|---|---|
| 1 | gpt-5.3-codex / try-fix |
Narrow MauiMaterialPickerBase.OnTouchEvent to protected override, eliminating the public API delta instead of declaring it |
None | EstablishBrokenBaseline.ps1 rejected the pre-existing dirty worktree, so no RevertedFiles allow-list existed and no edit was permitted |
|
| 2 | gpt-5.6-sol / try-fix |
Remove the declared override and replace it with private composed Android touch delegation | None | The same required baseline check rejected the pre-existing dirty worktree; no edit allow-list existed | |
| PR | PR #38589 | Add the exact analyzer-generated override declaration to Android PublicAPI.Unshipped.txt |
1 file | Original PR |
Candidate 1 Analysis
The alternative changes the source-level API shape rather than updating its manifest. It could not be implemented or tested because the mandatory baseline script failed before creating .github/.baseline-state.json. The requested command, dotnet build src/Core/src/Core.csproj -f net11.0-android --no-restore -p:RunAnalyzers=true, was therefore not executed. No candidate diff exists, and the inline self-review recorded zero findings against the empty diff.
The design is also not viable as stated: C# does not permit an override to reduce the accessibility of its public base member.
Candidate 2 Analysis
The alternative would remove MauiMaterialPickerBase.OnTouchEvent and route drag cancellation and scrolling through a private composed touch delegate, avoiding a newly declared public override. It is distinct from both the PR's API-manifest correction and Candidate 1's accessibility change.
The mandatory baseline script again failed before creating .github/.baseline-state.json, so no source edit, candidate diff, test run, or correction was permitted. The requested Android Core analyzer build was not executed because, without an implemented candidate, it would only validate the committed PR. The inline self-review recorded zero findings against the empty diff and explicitly does not endorse the unimplemented design. This approach would also need careful scrutiny because #37232 intentionally avoided consuming Android's single touch-listener slot.
Cross-Pollination
Skipped by STEP 5a contract.
Exhausted: Yes - both bounded model attempts were recorded; no follow-up or audit agents were launched.
Selected Fix: PR #38589 - neither alternative produced a permitted, testable diff; Candidate 1 is invalid under C# override accessibility rules, while Candidate 2 is unvalidated and conflicts with the originating fix's documented touch-listener constraint.
📝 PR Finalize — Recommended Title & Description
Assessment: ✏️ Recommend updating — the current title is vague, uses a noise [Testing] prefix, and omits the Android component and precise PublicAPI change.
Recommended title
[Android] MauiMaterialPickerBase: Add missing OnTouchEvent PublicAPI entry
Recommended description
### Description of Change
#37232 added an override of `OnTouchEvent` to the public Android `MauiMaterialPickerBase` class, but its PublicAPI entry was omitted, causing the `net11.0` build to fail.
This PR adds the matching entry to `src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt`. It updates the API baseline only and does not change runtime behavior.
<img width="1609" height="135" alt="image" src="https://github.com/user-attachments/assets/5a55a8b1-72ba-40af-8393-6ce93f4ea9df" />
### Android platform enhancements
- Added `override Microsoft.Maui.Platform.MauiMaterialPickerBase.OnTouchEvent(Android.Views.MotionEvent? e) -> bool` to the PublicAPI file.
### Related PR
- #37232
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winning candidate: pr
The raw PR is the only implemented, technically sound fix. It adds the exact analyzer baseline entry for the existing public Android override without changing runtime behavior. The expert review found no actionable defect, while pr-plus-reviewer is intentionally identical and neither STEP 5a alternative produced a candidate diff or test result.
Candidate comparison
| Rank | Candidate | Implementation | Validation evidence | Assessment |
|---|---|---|---|---|
| 1 | pr |
Adds override Microsoft.Maui.Platform.MauiMaterialPickerBase.OnTouchEvent(Android.Views.MotionEvent? e) -> bool to the Android unshipped PublicAPI baseline |
Gate skipped because no tests were detected; expert review found no code findings; required CI remains pending/undetermined | Winner. Exact, minimal alignment with the already-public source override |
| 2 | pr-plus-reviewer |
No reviewer patch; candidate is byte-for-byte equivalent to pr for product code |
Sandbox identity and diff --check passed; no targeted build was run because no reviewer refinement was warranted |
Sound but offers no improvement over the submitted PR, so it does not displace pr |
| 3 | try-fix-2 |
Proposed removing the override and composing private touch delegation, but produced no diff | Blocked before implementation and testing by the missing baseline allow-list | Unvalidated and structurally riskier because #37232 deliberately avoided consuming Android's single touch-listener slot |
| 4 | try-fix-1 |
Proposed changing the override from public to protected, but produced no diff |
Blocked before implementation and testing by the missing baseline allow-list | Not viable: C# forbids reducing the accessibility of the overridden public member |
No candidate failed a regression test; both try-fix candidates were blocked before tests could run. They rank below the implemented PR candidates because they have neither executable diffs nor passing evidence.
Why approval is not recommended
The code change itself needs no correction, but the trusted Gate was SKIPPED and therefore does not permit approval. The expert review also classified current CI as pending/undetermined: anonymous check evidence included queued/in-progress jobs and a device-test build failure, while GitHub CLI authentication was unavailable to resolve the authoritative required-check set. Per the review contract, approval must wait for required CI to settle green or for the failure to be classified as unrelated.
Required author action
No replacement patch is recommended. Obtain successful required CI, including the Android Core/PublicApiAnalyzers build that verifies this baseline entry; if the current device-test failure persists, classify and address it before merge.
📱 UI Tests — Button,Label,Layout
Detected UI test categories: Button,Label,Layout
✅ Deep UI tests — 422 passed, 0 failed, 7 skipped across 3 categories on platform-pool agent (replaces in-process counts above).
🧪 UI Test Execution Results (deep, platform pool)
| Category | Tests | Snapshot diffs |
|---|---|---|
Button |
104/106 (2 skipped) ✓ | — |
Label |
123/125 (2 skipped) ✓ | — |
Layout |
195/198 (3 skipped) ✓ | — |
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs) |
🧭 Next Steps — review latest findings
No alternative fix was selected for this run. Review the session findings and CI results before merging.
This PR #37232 adds an override for the

OnTouchEventmethod in the publicMauiMaterialPickerBaseclass for Android, but the PublicAPI entry was not added, so the build fails.override Microsoft.Maui.Platform.MauiMaterialPickerBase.OnTouchEvent(Android.Views.MotionEvent? e) -> boolAPI to the PublicAPI file.