Skip to content

[build-tools] Claim the warm Simulator and adopt its serve-sim - #4724

Draft
gwdp wants to merge 24 commits into
gwdp/cold-ios-session-20261026from
gwdp/prepared-simulator-build-tools
Draft

gwdp wants to merge 24 commits into
gwdp/cold-ios-session-20261026from
gwdp/prepared-simulator-build-tools

Conversation

@gwdp

@gwdp gwdp commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Requires a serve-sim release with --orphan support (expo/expo-device-hub#438). Keep this PR in draft until that release is available.

@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from 61a1d77 to 3c643b1 Compare October 22, 2026 22:00
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch 2 times, most recently from 13bdc62 to b72f76e Compare October 22, 2026 23:59
@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.50262% with 21 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (gwdp/cold-ios-session-20261026@d5f1ee9). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ages/build-tools/src/steps/utils/warmIosSession.ts 91.87% 13 Missing and 1 partial ⚠️
...ools/src/steps/utils/IosSimulatorRecordingUtils.ts 93.48% 3 Missing ⚠️
...uild-tools/src/steps/utils/agentDeviceArtifacts.ts 96.73% 2 Missing ⚠️
...ild-tools/src/steps/utils/warmDeviceSessionHost.ts 97.62% 1 Missing ⚠️
packages/build-tools/src/utils/warmSimulator.ts 97.15% 1 Missing ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##             gwdp/cold-ios-session-20261026    #4724   +/-   ##
=================================================================
  Coverage                                  ?   76.12%           
=================================================================
  Files                                     ?     1077           
  Lines                                     ?    53961           
  Branches                                  ?    11812           
=================================================================
  Hits                                      ?    41072           
  Misses                                    ?    11905           
  Partials                                  ?      984           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch 2 times, most recently from 4660651 to b951b79 Compare October 23, 2026 01:21
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from b951b79 to 7239ed8 Compare October 23, 2026 01:38
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch 2 times, most recently from 3318b8c to fc81018 Compare October 23, 2026 04:03
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from fc81018 to 5b142c6 Compare October 23, 2026 04:12
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from 5b142c6 to 594641f Compare October 23, 2026 04:41
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from 594641f to b92f43b Compare October 23, 2026 04:58
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from b92f43b to 2f345b4 Compare October 23, 2026 06:35
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from 2f345b4 to 613b96d Compare October 23, 2026 06:42
@gwdp
gwdp added this pull request to stack #4726 October 23, 2026 06:59
@gwdp
gwdp force-pushed the gwdp/prepared-simulator-build-tools branch from 613b96d to 2116f99 Compare October 23, 2026 07:23
@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

gwdp and others added 24 commits October 26, 2026 16:45
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The warm launcher now disables apsd during warmup, so the session host
runs Simulator setup only for servers it launches itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The warm launcher preinstalls Expo Go. When a warm session's app is Expo
Go with the same version, skip staging and installing it again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A just-installed app is not running, so pass restart: false to serve-sim
app.launch. Older serve-sim versions ignore the key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skip a matching Expo Go install using the identity in the warm claim
record instead of asking the Simulator, and launch the skipped app
without the restart check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compare the installed or preinstalled bundle identifier with the
launched one. Launching a different app keeps the restart check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@github-actions

Copy link
Copy Markdown

✅ Thank you for adding a changeset!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants