Skip to content

[tests] Add back the app size test to see if it's better now.#25910

Draft
rolfbjarne wants to merge 4 commits into
mainfrom
dev/rolf/reintroduce-appsize-test
Draft

[tests] Add back the app size test to see if it's better now.#25910
rolfbjarne wants to merge 4 commits into
mainfrom
dev/rolf/reintroduce-appsize-test

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 2, 2026 12:14

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.

Pull request overview

Re-enables the .NET app bundle size regression test and updates the stored expected outputs (bundle size reports + preserved API lists) for iOS/tvOS/Mac Catalyst/macOS across MonoVM, interpreter, NativeAOT, and CoreCLR configurations.

Changes:

  • Re-enable AppSizeTest by removing the fixture-level ignore.
  • Refresh expected app bundle size baselines for multiple platform/runtime combinations.
  • Refresh expected “preserved APIs” baselines for MonoVM/interpreter configurations.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/dotnet/UnitTests/AppSizeTest.cs Re-enables the app size test by removing [Ignore].
tests/dotnet/UnitTests/expected/TVOS-NativeAOT-TrimmableStatic-size.txt Updates expected tvOS NativeAOT (trimmable-static registrar) bundle size report.
tests/dotnet/UnitTests/expected/TVOS-NativeAOT-size.txt Updates expected tvOS NativeAOT bundle size report.
tests/dotnet/UnitTests/expected/TVOS-MonoVM-size.txt Updates expected tvOS MonoVM bundle size report.
tests/dotnet/UnitTests/expected/TVOS-MonoVM-preservedapis.txt Updates expected tvOS MonoVM preserved API set.
tests/dotnet/UnitTests/expected/TVOS-MonoVM-interpreter-size.txt Updates expected tvOS MonoVM+interpreter bundle size report.
tests/dotnet/UnitTests/expected/TVOS-MonoVM-interpreter-preservedapis.txt Updates expected tvOS MonoVM+interpreter preserved API set.
tests/dotnet/UnitTests/expected/MacOSX-NativeAOT-TrimmableStatic-size.txt Updates expected macOS NativeAOT (trimmable-static registrar) bundle size report.
tests/dotnet/UnitTests/expected/MacOSX-NativeAOT-size.txt Updates expected macOS NativeAOT bundle size report.
tests/dotnet/UnitTests/expected/MacOSX-CoreCLR-Interpreter-TrimmableStatic-size.txt Updates expected macOS CoreCLR+interpreter (trimmable-static registrar) bundle size report.
tests/dotnet/UnitTests/expected/MacOSX-CoreCLR-Interpreter-size.txt Updates expected macOS CoreCLR+interpreter bundle size report.
tests/dotnet/UnitTests/expected/MacCatalyst-NativeAOT-TrimmableStatic-size.txt Updates expected Mac Catalyst NativeAOT (trimmable-static registrar) bundle size report.
tests/dotnet/UnitTests/expected/MacCatalyst-NativeAOT-size.txt Updates expected Mac Catalyst NativeAOT bundle size report.
tests/dotnet/UnitTests/expected/MacCatalyst-MonoVM-size.txt Updates expected Mac Catalyst MonoVM bundle size report.
tests/dotnet/UnitTests/expected/MacCatalyst-MonoVM-preservedapis.txt Updates expected Mac Catalyst MonoVM preserved API set.
tests/dotnet/UnitTests/expected/MacCatalyst-MonoVM-interpreter-size.txt Updates expected Mac Catalyst MonoVM+interpreter bundle size report.
tests/dotnet/UnitTests/expected/MacCatalyst-MonoVM-interpreter-preservedapis.txt Updates expected Mac Catalyst MonoVM+interpreter preserved API set.
tests/dotnet/UnitTests/expected/iOS-NativeAOT-TrimmableStatic-size.txt Updates expected iOS NativeAOT (trimmable-static registrar) bundle size report.
tests/dotnet/UnitTests/expected/iOS-NativeAOT-size.txt Updates expected iOS NativeAOT bundle size report.
tests/dotnet/UnitTests/expected/iOS-MonoVM-size.txt Updates expected iOS MonoVM bundle size report.
tests/dotnet/UnitTests/expected/iOS-MonoVM-preservedapis.txt Updates expected iOS MonoVM preserved API set.
tests/dotnet/UnitTests/expected/iOS-MonoVM-interpreter-size.txt Updates expected iOS MonoVM+interpreter bundle size report.
tests/dotnet/UnitTests/expected/iOS-MonoVM-interpreter-preservedapis.txt Updates expected iOS MonoVM+interpreter preserved API set.

Comment on lines 10 to 11
[TestFixture]
[Ignore ("The results depend on the macOS version of the bot running the test")]
public class AppSizeTest : TestBaseClass {
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne marked this pull request as draft July 2, 2026 15:58
rolfbjarne and others added 2 commits July 2, 2026 18:00
When running in Azure DevOps CI and the AppSizeTest fails, copy the resulting
.app bundle to BUILD_ARTIFACTSTAGINGDIRECTORY so it gets uploaded (zipped) as a
build artifact for diagnostic purposes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Zip the .app bundle into a single zip file (instead of copying the directory
tree), and add a sortable UTC timestamp to the zip file name so subsequent
failing tests don't overwrite it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #dca0bf3] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: dca0bf32a83181cc35a362e962116357dc5a2f42 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: dca0bf32a83181cc35a362e962116357dc5a2f42 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #dca0bf3] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 1 tests failed, 198 tests passed.

Failures

❌ dotnettests tests (iOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.AppSizeTest.MonoVM_Interpreter(iOS,"ios-arm64"): App size changed significantly (-13,341 bytes (-13.0 KB = -0.0 MB) different > tolerance of +-10,240 bytes (10.0 KB = 0.0 MB)). ...
    • Xamarin.Tests.AppSizeTest.MonoVM(iOS,"ios-arm64"): App size changed significantly (-41,693 bytes (-40.7 KB = -0.0 MB) different > tolerance of +-10,240 bytes (10.0 KB = 0.0 MB)). ...
    • Xamarin.Tests.AppSizeTest.NativeAOT_TrimmableStatic(iOS,"ios-arm...: App size changed significantly (-82,301 bytes (-80.4 KB = -0.1 MB) different > tolerance of +-10,240 bytes (10.0 KB = 0.0 MB)). ...
    • ... and 1 more

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 17 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 18 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

Linux build succeeded

Pipeline on Agent
Hash: dca0bf32a83181cc35a362e962116357dc5a2f42 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #fee616b] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: fee616b77cec645135e83f168799eb60845f6118 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ [PR Build #fee616b] Build passed (Build packages) ✅

Pipeline on Agent
Hash: fee616b77cec645135e83f168799eb60845f6118 [PR build]

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