Skip to content

[Testing] Fixed Build error on net11 branch - #38589

Merged
kubaflo merged 1 commit into
dotnet:net11.0from
TamilarasanSF4853:fix-net11-build-error
Sep 16, 2026
Merged

kubaflo merged 1 commit into
dotnet:net11.0from
TamilarasanSF4853:fix-net11-build-error

Conversation

@TamilarasanSF4853

@TamilarasanSF4853 TamilarasanSF4853 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

This PR #37232 adds an override for the OnTouchEvent method in the public MauiMaterialPickerBase class for Android, but the PublicAPI entry was not added, so the build fails.
image

  • Android platform enhancements:
    • Added override Microsoft.Maui.Platform.MauiMaterialPickerBase.OnTouchEvent(Android.Views.MotionEvent? e) -> bool API to the PublicAPI file.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38589

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38589"

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Sep 16, 2026
@azure-pipelines

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

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 16, 2026
@sheiksyedm
sheiksyedm marked this pull request as ready for review September 16, 2026 07:41
@azure-pipelines

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

@sheiksyedm
sheiksyedm requested a review from kubaflo September 16, 2026 07:42
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Sep 16, 2026
@sheiksyedm

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI Review Summary

@TamilarasanSF4853 — new AI review results are available based on commit 6c579d0.

Gate No Tests Confidence Low Platform Android


🗂️ 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 public MauiMaterialPickerBase type 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 SKIPPED because no tests were detected.
  • The primary bounded validation is the Android Microsoft.Maui.Core build 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 ⚠️ SKIPPED (Gate found no tests) 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 --required was 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 ⚠️ BLOCKED - test not run 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 ⚠️ BLOCKED - test not run 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 ⚠️ SKIPPED (Gate found no tests) 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.

@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) and removed s/agent-review-in-progress AI review is currently running for this PR labels Sep 16, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 15, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 6c579d01 Deployed Sep 16, 2026 by TamilarasanSF4853 via conclusion #1920
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants