Repository navigation
ci(mobile): stabilize iOS simulator runs on hosted macOS runners - #528
Merged
Merged
Conversation
harryisfish
force-pushed
the
fix/ios-ci-stability
branch
from
November 10, 2026 09:17
2c8977d to
4ce8d8a
Compare
The iOS job spends about 35 minutes building before a UI run that fails within minutes on a slow simulator. Cache the simulator app keyed by its inputs, the runner image and the Rust toolchain, and record the runner's load, memory and busiest processes while the UI test runs.
Runner sampling showed a 3-core, 7 GB host at load 280-460 with ~60 MB free while the new simulator ran its first-boot widgets, Spotlight and system daemons during the UI test. Slim the simulator with simslim, keeping photos, push, keychain, links, connectivity and assets the app uses, boot it before the host build so remaining startup overlaps the build, and turn off the runner's own Spotlight indexing.
harryisfish
force-pushed
the
fix/ios-ci-stability
branch
from
November 10, 2026 10:38
6179504 to
86d4bbd
Compare
harryisfish
marked this pull request as ready for review
November 10, 2026 12:15
This was referenced Nov 10, 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.
问题
最近 100 次
mobile.yml中,iOS job 约 75 次只成功 3 次。修改
config、根package.json、pnpm-workspace.yaml、lock 文件和安全库构建脚本的摘要。只有构建后工作树干净才写缓存。命中时跳过安全库和 Xcode 构建,仍核对 entitlements 并上传同样的 zip。scripts/ci-runner-load.sh,从模拟器创建起每 10 秒记录负载、内存、swap 和最忙的 3 个进程名,结束时打印。packages/docs/ci.md同步说明。GitHub 目前只提供 macOS 26 镜像,还没有
macos-27。不使用自托管 runner。与 #472 有重叠:那个 Draft 曾在诊断分支试过 simslim,但从未在 CI 跑过也未合并,自 11-08 起未更新。
验证
actionlint通过;独立审查无 critical,1 个 high(缓存键漏config/)已修复。mobile.yml(只跑 iOS):native-transfers.e2e.ts:540:取消稍后输入后状态没有变为已取消。负载很低,属于功能问题,另开 PR 处理。负责人:harryisfish。状态:待合并。