Repository navigation
ci: run hot-reload runtime tests on Android and iOS - #3238
Merged
Merged
Conversation
- 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
This was referenced Oct 14, 2026
Contributor
|
|
This was referenced Oct 14, 2026
- 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
2 tasks
- 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
Closed
2 tasks
Contributor
|
|
- Lets #3238 merge independently; #3235 re-includes them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
- 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
3 of 4 tasks
… merged Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
- 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
4 tasks
- 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
3 of 6 tasks
Kunal22shah
approved these changes
Oct 15, 2026
|
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. |
rajamatt
approved these changes
Oct 15, 2026
1 task done
- 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
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.
GitHub Issue (If applicable): closes #3236; related to #3242
PR Type
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?
stage-runtime-tests-mobile-hotreload.yml, wired intoBuild_Tests, with one Android emulator job and one iOS simulator job. Each builds the Debug app and runs it on the same agent, because the DevServer patches that build and the app records absolute source paths.UnoRemoteControlHost/Portgo in the generatedDebugPlatforms.props, so the DevServer's own workspace compiles the same code as the app.build/test-scripts/dev-server.shand wait until it's listening.adb reverse;DOTNET_MODIFIABLE_ASSEMBLIESis already set by the DevServer package.SIMCTL_CHILD_DOTNET_MODIFIABLE_ASSEMBLIES=debug, which the package only sets for mlaunch.UITEST_RUNTIME_IS_SECONDARY_APPmakesMobileRuntimeTestsAutostartsetUnitTestsControl.IsSecondaryApp, so the HR classes run in-process. Only the HR lanes set it, so the existing lanes are unchanged.TEST_FILTERSis a;-separated list. The scripts run each entry in a fresh app process and merge the result files (merge-nunit-results.py). There are two launches: the twoGiven_HotReloadclasses together, thenGiven_Navigation_HotReloadalone. Every launch makes the DevServer reload its workspace, about 5 min on the mac agent. Without it, ~100 edits pile up in one Mono process and break every later test (Hot reload on Android: Mono BadImageFormatException after ~100 deltas in one process #3243).Given_HotReloadclasses plusGiven_Navigation_HotReload(22/22 when isolated). Each known failure is excluded test by test and names its issue:When_PageXamlUpdatedWhileUnmaterializedWhen_RegionNameAddedViaXamlHRWhen_RemoveAndReAddMultiplePropertiesGiven_TabBar_HotReloadstays out on both platformsMobileRuntimeTestsAutostartwaits up to 10 minutes for the DevServer workspace before running tests. Otherwise its load, several minutes on the mac agent, counted against the first test's 5-minute engine timeout.Reactive…Given_HotReloadloads its UI with a 10s wait instead ofUIHelper.Load's fixed 1s. That fixedWhen_RemoveAndReAddMultiplePropertieson Android. On iOS the element still never loads, so the test stays excluded there.PR Checklist
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 onmain, 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 asmain.Local emulator results:
Reactive…Given_HotReloadon mainGiven_Navigation_HotReload, fresh processGiven_TabBar_HotReload, fresh processThe 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.
devserver.logwith its test logs.🤖 Generated with Claude Code
https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE