Skip to content

[tests] Refresh BuildReleaseArm64 APK references - #13672

Merged
jonathanpeppers merged 2 commits into
mainfrom
simonrozsival-update-apkdesc-files
Nov 20, 2026
Merged

jonathanpeppers merged 2 commits into
mainfrom
simonrozsival-update-apkdesc-files

Conversation

@simonrozsival

Copy link
Copy Markdown
Member

The committed APK descriptions had drifted from current main, causing all four BuildReleaseArm64 cases to report size decreases as inconclusive. Regenerate the references from main at 78ef747b64 so the size checks pass against the current build outputs.

Validation: make prepare CONFIGURATION=Release MSBUILD_ARGS='-m:4' && make leeroy CONFIGURATION=Release MSBUILD_ARGS='-m:4' passed; CONFIGURATION=Release ./dotnet-local.sh test bin/TestRelease/net11.0/Xamarin.Android.Build.Tests.dll --filter 'Name~BuildReleaseArm64' passed (4 tests).

simonrozsival and others added 2 commits November 19, 2026 23:38
The `BuildReleaseArm64` reference sizes had drifted (e.g. Simple CoreCLR `PackageSize` 6460937 -> 6325692) since they were last refreshed in b6f5b1d.

The new references are the `.apkdesc` files produced by `main` rolling builds on the `dotnet-android` pipeline (dnceng-public, definition 333). Successful builds don't upload `bin/TestRelease/*.apkdesc`, so these come from the newest builds that published test results:

  * https://dev.azure.com/dnceng-public/public/_build/results?buildId=1684988 (5d51368): XForms CoreCLR R8
  * https://dev.azure.com/dnceng-public/public/_build/results?buildId=1682876 (dac769e): Simple CoreCLR, Simple CoreCLR R8, XForms CoreCLR

Only sizes changed; the set of APK entries is unchanged. Line endings were normalized from CRLF (Windows agents) to LF. The NativeAOT references are not exercised by `BuildReleaseArm64` and are unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Recent successful rolling builds did not publish the test descriptions, so regenerate the four CoreCLR references from main 78ef747 with the Release SDK and apkdiff 0.0.17. The previous references made all four tests inconclusive because of size decreases.

`make prepare CONFIGURATION=Release MSBUILD_ARGS='-m:4' && make leeroy CONFIGURATION=Release MSBUILD_ARGS='-m:4'` passed. With the new descriptions embedded, `CONFIGURATION=Release ./dotnet-local.sh test bin/TestRelease/net11.0/Xamarin.Android.Build.Tests.dll --filter 'Name~BuildReleaseArm64'` passed all four cases.

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

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 are recorded for this APK size baseline refresh.

No open issues 🎉

What changed in this PR

Refreshes the APK size baselines used by .NET for Android’s BuildReleaseArm64 tests, addressing inconclusive results caused by outdated references.

Changes:

  • Updates DEX, assembly-store, native-library, and total package sizes for the Simple and XForms CoreCLR fixtures, with and without R8.
  • Changes reference data only; test logic and production code remain unchanged.

The PR reports a successful Release SDK build and all four targeted tests passing.

File Description
src/​Xamarin.Android.Build.Tasks/​Tests/​Xamarin.ProjectTools/​Resources/​Base/​BuildReleaseArm64XFormsDotNet.CoreCLR.R8.apkdesc Refreshes the XForms CoreCLR baseline with R8.
src/​Xamarin.Android.Build.Tasks/​Tests/​Xamarin.ProjectTools/​Resources/​Base/​BuildReleaseArm64XFormsDotNet.CoreCLR.apkdesc Refreshes the XForms CoreCLR baseline without R8.
src/​Xamarin.Android.Build.Tasks/​Tests/​Xamarin.ProjectTools/​Resources/​Base/​BuildReleaseArm64SimpleDotNet.CoreCLR.R8.apkdesc Refreshes the Simple CoreCLR baseline with R8.
src/​Xamarin.Android.Build.Tasks/​Tests/​Xamarin.ProjectTools/​Resources/​Base/​BuildReleaseArm64SimpleDotNet.CoreCLR.apkdesc Refreshes the Simple CoreCLR baseline without R8.

Review effort: Balanced

@simonrozsival
simonrozsival enabled auto-merge (squash) November 20, 2026 16:11
@jonathanpeppers

Copy link
Copy Markdown
Member

All four BuildReleaseArm64 APK reference cases passed on both macOS and Windows (8/8): Simple and XForms, each with the default linker and with R8. See build 1691130.

CI is red because InstallAndroidDependenciesTest could not install platform-tools@37.0.1 in five jobs. The same failure occurs on main, and #13666 addresses it.

@jonathanpeppers
jonathanpeppers merged commit 550ac20 into main Nov 20, 2026
33 of 39 checks passed
@jonathanpeppers
jonathanpeppers deleted the simonrozsival-update-apkdesc-files branch November 20, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants