Skip to content

ci(test): run apple-simulator's iPhone tests on the iPhone again - #2389

Merged
houko merged 1 commit into
mainfrom
ci/ios-tests-after-ipad
Nov 25, 2026
Merged

houko merged 1 commit into
mainfrom
ci/ios-tests-after-ipad

Conversation

@houko

@houko houko commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

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, so nsgo test takes a booted simulator, and pickSimulator returns 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 showed TestNativeDevToolsFollowStickyScroll reporting a 1032-point-wide view, the iPad's width, and TestPressesCountConsecutiveClicks failing 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 (TestPressesCountConsecutiveClicks passed).

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.
@houko
houko enabled auto-merge (rebase) November 25, 2026 13:21
@houko
houko merged commit 994008b into main Nov 25, 2026
42 checks passed
@houko
houko deleted the ci/ios-tests-after-ipad branch November 25, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant