Repository navigation
test(scene-e2e): pre-approve the url scheme, make push banners persistent, and give waits a 60s budget - #701
Merged
Merged
Conversation
talon-github-manager
Bot
force-pushed
the
mbl-2804-rn-scene-flakes
branch
from
November 19, 2026 14:50
fcd27d4 to
676b17a
Compare
Contributor
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request. Builds are in progress. This comment will be updated when they finish.
|
added 2 commits
November 19, 2026 21:07
…tall phase, and drop the url received wait
…e banner tap has no deadline
… instead of rebooting the simulator
added 2 commits
November 20, 2026 01:45
…ase, and keep one explanation of the persistent banner write
…ture, boot the simulator during the build, install host packages once, and mark phase boundaries
talon-github-manager
Bot
force-pushed
the
mbl-2804-rn-scene-flakes
branch
from
November 20, 2026 03:52
cecfa86 to
51af087
Compare
mahmoud-elmorabea
approved these changes
Nov 20, 2026
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.
MBL-2804
Summary
The scheduled scene routing E2E fails on most days because of three harness problems, not SDK defects. The simulator asked for permission before opening the test URL, and the open approved through that prompt sometimes never reached the app. The push banner sometimes left the screen before the test tapped it. Separately, a few waits were too short for a slow simulator.
simctl openurlfor thecio-rn-scene-e2escheme makes SpringBoard askOpen in "CioRnSceneHost"?, because LaunchServices has no stored approval for the requester (CoreSimulatorBridge) to open that scheme. Run 44579139265 logs the path: cfprefsdCouldn't open .../com.apple.launchservices.schemeapproval.plist(no approval exists yet), then the prompt 30s later. After the flow tapped Open, the open sometimes never reached the app. In 44548202041 and 44573028335,lsdlogsSending request to open "org.reactjs.native.example.CioRnSceneHost"and SpringBoard never logsReceived request to open, even with a 60s wait. In 43572742513,lsdnever sends at all.run_scene_push.shnow writes that approval right after installing the app:simctl spawn defaults write com.apple.launchservices.schemeapproval 'com.apple.CoreSimulator.CoreSimulatorBridge-->cio-rn-scene-e2e' -string <bundle id>. Expo runs the same command in its own E2E setup (preApproveDeepLinkPromptAsync, apps/bare-expo/scripts/start-ios-e2e-test.ts:211-226), and Expo CLI writes the same key (simctl.ts:161). The URL flow drops its optional Open tap, so a prompt that still shows now fails the run every time instead of being tapped. It checksReceived:with a plain assert, since a lost open never arrives late.extendedWaitUntilreturns as soon as the text shows, so passing runs don't get slower.Revoking banner for notification AF3C-81EFat 21:41:13.851, and testmanagerd logsSynthesizing eventfor the tap at 21:41:14.920, so the tap hit the Home screen and the cold push flow failed waiting forReceived:. In 44261671681 the same happens withRevoking banner for notification 4FB5-00A5at 08:19:26.438 and the tap at 08:19:28.376. The banner was temporary because the permission came from tapping the system prompt, which savesAlert style = Banner.After installing the host,
run_scene_push.shstops SpringBoard and usernotificationsd, writes the host's notification record intodata/Library/BulletinBoard/VersionedSectionInfo.plistas authorized with alert type 2 (the Persistent banner style, which stays until tapped), and starts them again.set_persistent_banners.pywrites the record and explains why; its shape and the stop, write, start order are adapted from ios-sim-notification-permission (MIT, notice in the file). Because the record already says authorized, the system permission prompt no longer appears in the prepare flow. After each prepare flow the script decodes the record from disk, logs it toreact-native-scene-maestro-notification-settings.log, and fails the run if it is no longer authorized and persistent.Autonomous fix by Moby.
Platforms
iOS harness only (
.maestro/). No SDK code changes. The Flutter sample's scene push flows (scene_push_open.yaml,scene_push_prepare.yaml) have the same 15s waits and also tap a notification banner; both are still outstanding.Related Issues
https://linear.app/customerio/issue/MBL-2804
Testing
alertType=2 authorizationStatus=2after the write and after both prepare flows, SpringBoard runs as one process (pid 51928) for the whole run and reportsalertStyle: Alertfor the host 22 times (44615662651 and 44261671681 reportalertStyle: Banner), no permissions dialog appears, and in all 5 push flowsRevoking bannercomes only after the tap'sSynthesizing event.bash -n .maestro/run_scene_push.sh;python3 -m py_compileand a write plus--checkround trip ofset_persistent_banners.pyon a sample store.Harness time. PR runs on slow hosts hit the workflow's 40-minute step timeout: 44656003596 timed out starting the cold push after the prepare check and both URL flows had passed. Without touching the workflow,
run_scene_push.shnow builds only the simulator's architecture (ONLY_ACTIVE_ARCH=YES; the Release build also compiled an x86_64 slice the test never runs), boots the simulator in the background while packages, pods and the build run, installs the host's packages with onenpm install, and prints a==> phase:line at each phase boundary. Both runs on this head passed: 44661869296 finished the step in 38.9 minutes and 44666723760 in 25.9, against 33.2 for the green 44651152222 and a timeout at 40.2 for 44656003596 on earlier heads. From pod install done to the record write (mostly the build) took 7.0 and 6.0 minutes against 8.6 and 12.8, and the boot wait at the start of the step (about 2.3 minutes) is now 2-5 seconds before install. Host speed still dominates: 44661869296 spent 8.9 minutes innpm ciand 4.5 starting its first Maestro flow, so a slow host can still come close to the cap, and raising it remains a maintainer's call.Follow-ups (not in this PR)
maestro teststarts a new driver (about 1 minute; the first took 1.3-4.5 minutes), so running several flows in one Maestro session would save the most; caching npm and CocoaPods downloads in the workflow would cutnpm ci(6-9 minutes) and pod install (3-5).Deployment
Test harness only, nothing ships to customers. This change can be safely reverted.
Submitted by Moby -- autonomous triage agent for Squad Mobile