test(ios): align Mac switch and pool tests with build-scoped identity - #14708
Conversation
Five CmuxMobileShell tests failed on main since #10179 scoped Mac identity by build tag: - Three MobileTaskComposerSubmitTests promote a live secondary through a device-only switch. resolvePromotableSecondaryOwnerKey now requires the loaded paired-Mac cache to show exactly one untagged row for the device (5aedb51). The tests never loaded that cache, so promotion was skipped, the fresh dial had no routes, and the composer returned notConnected. Load the cache as the app does. - switchingToIrohCapableMacUsesPinnedIrohRoute stored an untagged row while the scripted host authenticated as tag "default", so the switch connected but did not match the stored build (1d036db). Make the host the same untagged build. - connectionPoolRecordsFallbackRouteThatActuallyConnected read the pool by bare device id, which resolves only the untagged owner. Read the exact pairing key, as #14004 did for the pool tests. Refs #14689 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Warning Review limit reachedNext included review available in 23 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merge receipt for
|
b63ab49 Fail remote-tmux review when a wait is a timer instead of an event (manaflow-ai#11264) b436c92 Fail closed when CLI forwarding loops back to the GUI binary (manaflow-ai#8788) 136eb2a fix(ios): make the last intermittent CmuxMobileShell tests deterministic (manaflow-ai#14721) dc7f5bd fix(ios): keep terminal composer dock at bottom (manaflow-ai#14702) cb4429b ci: add owned_build_state.py warm-keys for warm admission routing (manaflow-ai#14717) be1ab5e ci(ios): charge in-flight auto runs simulators only when they took the fleet (manaflow-ai#14716) 5110582 ci: clear fixed DerivedData by renaming it aside first (manaflow-ai#14710) 1b8a603 fix(ios): unregister terminal output streams by registration identity; fix stale render-grid tests (manaflow-ai#14711) 3cae7dd refactor: move the browser WebKit support layer into CmuxBrowser (manaflow-ai#14398) 6693884 Run the Codex monitor Stop replay outside the hook handler frame (manaflow-ai#14715) 133a083 ci(e2e): take the owned Mac's gui token just before testing in the build (manaflow-ai#14705) 4c36ace ci: re-run every job of an E2E run whose build did not succeed (manaflow-ai#14712) ab5ac72 ci: start owned E2E builds from the Mac's kept state, upload after tests (manaflow-ai#14692) 6a3d2d0 test(ios): align Mac switch and pool tests with build-scoped identity (manaflow-ai#14708) 0b16a8b Keep closePanel's unmapped fallback from closing another panel's tab (manaflow-ai#14704) 69c9518 close-surface: reject a blank --workspace or --window (manaflow-ai#14706) 8476043 ci: route warm admission by static runner labels, never write labels (manaflow-ai#14696) 537d53f Guard direct GhosttyKit setup against incompatible Zig (manaflow-ai#4706) 4b200e1 Restore Pi wakeup alerts across reloads (manaflow-ai#12861) 9b291c0 ci: resolve an owned Mac's kept Swift packages offline (manaflow-ai#14709) 31c9105 Stop attaching the unverified per-resume relay MAC (manaflow-ai#14694) 5443f43 Merge pull request manaflow-ai#13565 from manaflow-ai/feat-recover-forgotten-computers e817240 Add app.equalizeSplitsOnCreate to balance panes on new splits (manaflow-ai#14703) a358095 fix: never use a shell bootstrap executable in a resume binding (manaflow-ai#5848) 3f177af Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers 8b4c97b Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers dce9509 ci: update iOS checkout routing assertion 5dbf06c ci: update CLA workflow digest after main pin 44c00fb Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers d22189d Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers eeca51a fix: make event reconnect policy instance based 9e29c96 Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers d860564 Model first Cloud receipt before remote graph discovery 87f1305 Verify forgotten Mac recovery with the real paired store 2237f8c Merge main and retain upstream test repairs 9ccaa7a Avoid type-check timeout in process fixture a848b5e Simplify AppKit accessibility test setup 82a9769 Isolate process generation fixture from runner TTY state 4c129bb Enable and restore AppKit assistive access in mounted tree test 9a9acca Enable accessibility output in the hosted SwiftUI test fixture 5ce39d0 Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers a29a7ec Read proxy accessibility children and text through one attribute bridge 12938b6 Test accessibility walkers against modern and legacy proxy nodes 04a30c5 Revoke the original pairing in the targeted dial authority regression ff1888e Import the extracted Cloud module in the team picker 9c9f259 Merge main and adopt the verified focus recovery fixture 5d41fc8 Align hosted UI fixtures with runtime paths and presentation lifecycle 87dbbd9 Preserve unknown legacy restore liveness after main integration 41a8d4b Revert "Establish running agent state in auto-resume fixtures" 6c7d14b Revert "Use the running-agent fixture for second-restore cwd coverage" 9d276b5 Route Kiro permission-mode fixtures through the mock delivery target cdb4eae Restore the host app delegate after registration tests 4bdc410 Use the running-agent fixture for second-restore cwd coverage 0b58cbc Establish running agent state in auto-resume fixtures 20c6415 Wait for mounted project content in accessibility test 3ba7b6a Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers 2c3c680 Make reparent focus test geometry deterministic d2f563b Stabilize canonical cache recipe guard cc60792 Merge current main into forgotten Mac recovery 7dc515f Merge branch 'main' into feat-recover-forgotten-computers cfd4773 Preserve per-instance forgotten Mac recovery 6a95584 Canonicalize recovered directory identities f083246 Preserve queued forgotten Mac refreshes e5202a6 test(ios): use canonical UUID duplicate fixture ca7ee53 fix(ios): serialize forgotten Mac recovery retries db851c2 Merge remote-tracking branch 'origin/main' into feat-recover-forgotten-computers 35269cb fix(ios): rehydrate Macs after forget recovery d0266b7 Merge current CI workflow identity guard into device recovery 45b7c72 fix(i18n): distinguish signed-in Mac recovery from connectivity 730260c Merge remote-tracking branch 'origin/feat-recover-forgotten-computers' into feat-recover-forgotten-computers a17f8dd fix: complete forgotten Mac recovery without replaying revocation d64766a test: reproduce revocation during device recovery registration faf5b55 test: keep recovery authority limited to enrollment a9c437a test: cover duplicate forget and recovery lifecycle gaps 033e7a0 chore: normalize project ordering 28f63ec fix: recover forgotten Macs from revocation events 7b8e322 fix: recover forgotten Mac registrations f1aca40 test: validate recovery enrollment proof 62b4e14 test: cover authenticated forgotten-device recovery 9cb2f97 test: cover recovery after device forget # Conflicts: # .github/workflows/app-host-test-rerun.yml # .github/workflows/ci-guards.yml # .github/workflows/ci-macos.yml # .github/workflows/ci-queue-janitor.yml # .github/workflows/ci.yml # .github/workflows/nightly.yml # .github/workflows/seed-derived-data.yml # .github/workflows/test-e2e.yml # .github/workflows/test-ios.yml
Why
Five
CmuxMobileShelltests in the "Mac switch / secondary promotion" group of #14689 fail on every full package run. PR CI only runs selected suites, so they went unseen until #14439 turned iOS PR runs back on. A traced CI run (debug branch, since deleted) showed where each one stops. All three causes are fixtures that predate #10179 ("Use build-scoped identity for every iOS computer operation"). The product behavior is intentional, so these are test fixes.What
promotedSecondaryMacUsesItsOwnTaskCreateCapability,taskComposerDoesNotArmCreateBoundaryBeforeTargetCapabilityCheck,taskComposerArmsCreateBoundaryAfterTargetMacPromotion: the composer callsswitchToMacwith no instance tag. Since 5aedb51 (Use build-scoped identity for every iOS computer operation #10179),resolvePromotableSecondaryOwnerKeypromotes a live secondary on a device-only request only when the loaded paired-Mac cache shows exactly one untagged row for that device. It no longer accepts zero rows. The tests never loaded that cache (trace:candidates=1 stored=[]), so promotion was skipped and the fresh dial had no routes.switchToMacreturned false and the composer reportednotConnected. The tests now callloadPairedMacs()and assert that it succeeds, as the app loads the cache before the composer opens.switchingToIrohCapableMacUsesPinnedIrohRoute: the stored row has no tag, but the scripted host authenticates as tag"default". The dial connected over Iroh (trace:resolved=test-mac tag=default route=iroh-personal), but since 1d036db (Use build-scoped identity for every iOS computer operation #10179) a switch counts only when the live foreground matches the stored pairing's build. The host is now the same untagged build as the row.connectionPoolRecordsFallbackRouteThatActuallyConnected: the route was pooled correctly undertest-mac+default(trace:onDevice=test-mac\x1fdefault good), but the test read it by bare device id, which now resolves only the untagged owner. It now asserts the authenticated tag and reads the exact pairing key, the same fix test(ios): give pool alias fixtures one build identity #14004 made in the pool tests.The change is test-only.
Proof
MobileTaskComposerSubmitTestssuite: all 29 tests pass. https://github.com/manaflow-ai/cmux/actions/runs/36183676725hungRedialSettlesAtDeadlineAndUnfreezesRecoveryandoperationFailurePreservesOpenIrohConnection, which belong to the connection-recovery group.mobile-core-packagerun also passes all five. What still fails there is the render-grid group plus the intermittentbyteGapDeliversLiveChunkAndRequestsSingleReplay, and those have their own PRs.Refs #14689.
🤖 Generated with Claude Code