Skip to content

ci: run hot-reload runtime tests on Android and iOS - #3238

Merged
kazo0 merged 12 commits into
mainfrom
dev/sb/mobile-hr-lanes
Oct 16, 2026
Merged

kazo0 merged 12 commits into
mainfrom
dev/sb/mobile-hr-lanes

Conversation

@kazo0

@kazo0 kazo0 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #3236; related to #3242

PR Type

  • Build or CI related changes

What is the current behavior?

The hot-reload runtime tests only run on Skia desktop. The Android and iOS lanes filter them out (!_HotReload), and [RunsInSecondaryApp(ignoreIfNotSupported: true)] would skip them on mobile anyway. As a result, unoplatform/uno#25417 (MVUX hot reload fully disabled on Android) wasn't caught by any test.

What is the new behavior?

PR Checklist

  • Tested code with current supported SDKs: Android on a local API 36 emulator and on CI (API 34); iOS on CI (iOS 26.1 simulator)
  • Docs have been added/updated: AGENTS.md hot-reload section
  • Unit Tests and/or UI Tests: N/A (CI lane)
  • Wasm UI Tests: N/A
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue

Other information

#3235 is merged, and this branch includes it (merge of main). The five MVUX tests run on Android again. On iOS they stay excluded (#3240), and this branch's CI also shows whether #3235 hangs the iOS app on main, as it did in draft #3239.

CI timing: the mobile lanes run in their own stage, parallel to the rest. With two launches per platform, the iOS job takes ~26 min and Android ~19 min, both under the existing 27-min Windows samples job. The whole pipeline took 28 min (build at commit b756c5903), the same as main.

Local emulator results:

Run Result
Reactive…Given_HotReload on main 9/14; the 5 MVUX model-update tests fail (unoplatform/uno#25417)
Same tests with #3235 applied 14/14
Given_Navigation_HotReload, fresh process 22/22
Given_TabBar_HotReload, fresh process 13/23, see #3237

The plain method-body edit passes on main, so Mono applies deltas fine. The 5 failures are the MVUX bug alone, which makes this the on-device validation #3235 was missing.

  • To watch in the first run: locally, the DevServer warned that it loaded the app project "without any .NET framework references". It didn't stop the edits from applying. Each job publishes devserver.log with its test logs.
  • Port 47100: chosen below the ephemeral range, since Windows reserves blocks inside it (e.g. 53435–53834 on the dev machine).

🤖 Generated with Claude Code

https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE

- New stage-runtime-tests-mobile-hotreload.yml: one build+run job per platform, with the DevServer endpoint baked in via DebugPlatforms.props
- Device scripts start the DevServer (dev-server.sh); Android adds adb reverse, iOS passes DOTNET_MODIFIABLE_ASSEMBLIES through simctl
- UITEST_RUNTIME_IS_SECONDARY_APP runs [RunsInSecondaryApp] classes in-process instead of skipping them
- Results validator now fails a run where no test passed (applies to all device lanes)
- Scoped to the Given_HotReload classes; the rest fail on Mono, tracked in #3237

Closes #3236

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 239608 has failed on uno.extensions.

- Device scripts launch the app once per ';'-separated TEST_FILTERS entry and merge the NUnit documents (merge-nunit-results.py), as desktop runs one secondary app per class
- Per-platform filter lists add Given_Navigation_HotReload (22/22 when isolated, see #3243)
- Known failures are excluded test by test, each with its tracking issue: #3241 (Android), #3240 and #3242 (iOS); Given_TabBar_HotReload stays out (#3237)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
kazo0 and others added 2 commits October 14, 2026 21:47
- MobileRuntimeTestsAutostart waits (up to 10 min) for the DevServer workspace before running hot-reload tests, so its load isn't billed to the first test's 5-min engine timeout (When_UpdateMethodBody timed out on iOS)
- Reactive Given_HotReload loads its UI with a 10s wait instead of UIHelper.Load's 1s, which a cold app on a CI emulator/simulator misses (closes #3242)
- Per-launch RUN_TIMEOUT_SECONDS of 1200s and a 120-min iOS job, so a hung launch can't swallow the job
- iOS: exclude When_RegionNameAddedViaXamlHR (#3245)
- AGENTS.md: describe the per-platform filter lists

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
- A 10s load wait fixed it on Android; on the iOS simulator the element still never loads

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 239648 has failed on uno.extensions.

kazo0 and others added 2 commits October 15, 2026 11:08
- Own stage parallel to the rest: inside Build_Tests the ~35-min iOS job held up Runtime_Tests_Devices by ~25 min on every PR
- Two app launches per platform instead of three: each launch makes the DevServer reload its workspace (~5 min on the mac agent); the two Given_HotReload classes share one, Given_Navigation_HotReload keeps its own

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
kazo0 and others added 3 commits October 15, 2026 12:32
- cleanup() waited on the emulator with no limit after 'emu kill'; in build 239767 the emulator acknowledged the kill but never exited, holding a green 2-minute run for 98 minutes until cancelled
- Now waits up to 30s, then kills the launcher and its qemu child

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
- Android: When_VmCtorParamOrderChangedViaHR crashed Mono (SIGSEGV in mono_image_load_enc_delta), #3250
- iOS: two more Region.Name-via-XAML-HR tests resolved an empty route, #3245

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
@mergify

mergify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

kazo0 and others added 2 commits October 15, 2026 17:26
- The iOS wait loop only polled for the result file, so a crash right after launch waited out RUN_TIMEOUT_SECONDS
- Watch the pid simctl launch prints (simulator apps are host processes), as the Android script already does
- Report which exit happened and print the app log tail

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VZVenoDKLuwSmGT7wKNGSV
…lter

- Launch 1 was 'Given_HotReload.', so a new Given_*_HotReload class would never run on mobile
- Launch 1 is now '_HotReload' minus Given_Navigation_HotReload (launch 2) and Given_TabBar_HotReload (#3237)
- Same 34 iOS tests selected today

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VZVenoDKLuwSmGT7wKNGSV
@kazo0
kazo0 merged commit 50eb62f into main Oct 16, 2026
29 of 30 checks passed
@kazo0
kazo0 deleted the dev/sb/mobile-hr-lanes branch October 16, 2026 00:18
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.

Run the hot-reload runtime tests on Android and iOS in CI

4 participants