Repository navigation
ci(test): run apple-simulator's iPhone tests on the iPhone again - #2389
Merged
Merged
Conversation
Since the iPad step came in (69ea0de), every later go tool nsgo test without -device took a booted simulator, and pickSimulator's first booted one sorts the iPad before the iPhone, so the iPhone's tests ran on the iPad. Shut the iPad down after its step.
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.
Summary
Since the iPad step came in (69ea0de, 2026-11-21), every apple-simulator command after it ran on the iPad instead of the iPhone it was written for. Those commands pass no
-device, sonsgo testtakes a booted simulator, andpickSimulatorreturns the first booted one in name order: "iPad Pro 13-inch (M5)" sorts before the iPhone, which the earlier steps booted. A CI run with instrumentation showedTestNativeDevToolsFollowStickyScrollreporting a 1032-point-wide view, the iPad's width, andTestPressesCountConsecutiveClicksfailing there (press counts = [1 1], want [1 2 1]) every time, while it passed on the iPhone.The job now shuts the iPad down after its step, so the later iPhone tests run on the iPhone again. The iPad's double-tap failure is a real iPadOS 26 bug, fixed in #2387, which also runs that test on the iPad on purpose.
Verification
test.yml dispatched on this branch (run 45618881351): every job passed, apple-simulator included, with the iPhone tests after the iPad step back on the iPhone (
TestPressesCountConsecutiveClickspassed).