2828 - swipe
2929 - selfhosted
3030 default : both
31+ warm_up :
32+ description : Demo - one unrecorded pass first (slower job, quicker first sign-in in the recording)
33+ type : boolean
34+ default : false
3135 real_google_sign_in :
3236 description : Real backend - sign in with Google in the web view first (sends one prompt to the account's phone)
3337 type : boolean
@@ -179,6 +183,7 @@ jobs:
179183 env :
180184 TEST_RUNNER_OPENBOT_SHELL_VIDEO_MODE : " 1"
181185 WHICH : ${{ inputs.which }}
186+ WARM_UP : ${{ inputs.warm_up }}
182187 run : |
183188 for _ in $(seq 1 300); do [ -f "$RUNNER_TEMP/simulator.ready" ] && break; sleep 1; done
184189 [ -f "$RUNNER_TEMP/simulator.ready" ] || { cat "$RUNNER_TEMP/boot.log"; exit 1; }
@@ -194,7 +199,9 @@ jobs:
194199 fi
195200 echo "MIN_SECONDS=$([ "$WHICH" = "demo" ] || [ -z "$WHICH" ] && echo 30 || echo 3)" >> "$GITHUB_ENV"
196201 echo "$(date +%s) warm-up" >> "$RUNNER_TEMP/timing"
197- if [ "$WHICH" != "swipe" ] && [ "$WHICH" != "selfhosted" ]; then
202+ # The unrecorded warm-up pass now only on request (warm_up): it took 3 minutes and pushed
203+ # the job past its 13 on slow runners; an idle stretch in the recording is cut instead.
204+ if [ "$WARM_UP" = "true" ]; then
198205 # One unrecorded pass first: a fresh simulator's first sign-in took over a minute.
199206 xcodebuild test-without-building -project ios-shell/OpenBotShell.xcodeproj -scheme OpenBotShell -configuration Debug \
200207 -destination "platform=iOS Simulator,id=$SIM_UDID" -derivedDataPath DerivedData-Debug \
@@ -227,7 +234,9 @@ jobs:
227234 [ -f artifacts/video/demo-tour.mp4 ] || exit 0
228235 # The swipe clip is kept whole: its marks are seconds apart and simctl's variable frame
229236 # rate made the cut miss the swipe once.
230- if [ "$WHICH" != "swipe" ] && [ "$WHICH" != "selfhosted" ]; then
237+ # The unrecorded warm-up pass now only on request (warm_up): it took 3 minutes and pushed
238+ # the job past its 13 on slow runners; an idle stretch in the recording is cut instead.
239+ if [ "$WARM_UP" = "true" ]; then
231240 python3 ios-shell/ci/trim_video.py artifacts/video/demo-tour.mp4 xcodebuild-demo.log "$STARTED" || true
232241 fi
233242 ls -la artifacts/video
0 commit comments