Skip to content

[CI] Build and smoke-test the MAUI sample for Android in Release (AOT) #368

Closed

Description

@michaelstonis

CI's maui job builds samples/Broadside.Viewer.Maui.Sample for Android only in Debug (no AOT, no ILLink). The Release configuration, where AOT is on by default, has no coverage, which is how #366 shipped: with AndroidLinkMode=None the SDK packaged modified assemblies but AOT-compiled the unmodified copies under obj/.../aot-in/, and the app aborted at startup.

Want.

  • Build the sample with -f net10.0-android -c Release -warnaserror in CI.
  • Check that every assembly the APK packages (obj/Release/net10.0-android/<rid>/android/assets/...) is byte-identical to the AOT compiler's input for it (obj/Release/net10.0-android/<rid>/aot-in/). That is the exact mismatch behind MAUI sample: Android Release (AOT) aborts at startup on a class layout mismatch #366, and it fails without running anything.
  • If the runtime cost is acceptable, install the APK on an emulator and run the smoke intent (adb shell am start -n dev.broadside.viewer.sample/.MainActivity --ez smoke true), requiring BROADSIDE_SMOKE_OK in logcat.
  • Record in the PR how much wall time the new coverage adds.

Blocked by

#366 (PR #367): until it merges, the Release build trips the new check.

Activity

  1. added
    in-progress
    on Oct 19, 2026
  2. added a commit that references this issue on Oct 19, 2026
  3. michaelstonis commented on Oct 19, 2026

    @michaelstonis
    OwnerAuthor

    Integrated into spec/33-broadside-v1 via PR #369.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in-progress

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions