Skip to content

Commit 627acec

Browse files
committed
The demo's warm-up pass only on request: it pushed the job past its 13 minutes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
1 parent a2fa459 commit 627acec

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎.github/workflows/ios-shell-video.yml‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ on:
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

Comments
 (0)