Repository navigation
[tests] Re-enable NativeAOT binding Java coverage - #13272
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: e00789f7-369c-41ca-bffe-dcb107c22fd3
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The test-only change preserves existing guards and assertions, has no identified defects, and reports four passing focused tests.
No open issues 🎉
What changed in this PR
Restores NativeAOT regression coverage for bound Java retention by removing the skip from BindingWithAndroidJavaSource, covering the binding scenario associated with #11774 and #11835.
Changes:
- Re-enables the existing NativeAOT test while preserving unsupported-configuration checks and dex-content assertions.
- Leaves production code and R8 keep rules unchanged.
| File | Description |
|---|---|
| src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BindingBuildTest.cs | Removes the NativeAOT skip from the binding Java-source test. |
Review effort: Balanced
Member
Author
|
@dalexsoto review |
simonrozsival
enabled auto-merge (squash)
October 29, 2026 12:35
jonathanpeppers
approved these changes
Oct 29, 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.
Pull Request
This change removes the NativeAOT skip from
BindingWithAndroidJavaSource. The case was skipped while R8 was removing bound Java classes fromclasses.dex; the current retained-typemap R8 pipeline passes the repro, so leaving it skipped hides regressions in the original issue. No broad keep rules for every class in embedded jars are introduced.Fixes #11774. The test also covers the binding-specific repro reported in #11835, which is already closed as a duplicate.
Validation:
make prepare CONFIGURATION=Release— passed.make all CONFIGURATION=Release— failed while creating the reference pack because the extra API-level reference assembly (37.1) had not yet been built.make leeroy CONFIGURATION=Release— passed; built the extra API levels and configured the local workload../dotnet-local.sh test bin/TestRelease/net10.0/Xamarin.Android.Build.Tests.dll --filter 'Name~BindingWithAndroidJavaSource|Name~BuildAfterMultiDexIsNotRequired' --logger 'trx;LogFileName=bound-java-retention.trx' --results-directory /Users/simon/.copilot/session-state/e00789f7-369c-41ca-bffe-dcb107c22fd3/files/TestResults— passed: 4 passed, 0 failed, 0 skipped.title and
description
should follow the
commit-messages.mdworkflow documentation, and in particular should include: