Skip to content

Commit 7677a56

Browse files
committed
ci: resize harness attempt budgets for the restored full suite
The per-attempt watchdogs (iOS 300s x 5, Android timeout 300 x 3) were sized for the 4-suite subset that ran while expo57's jest roots excluded example/__tests__. The restored ~25-suite run gets through about 15 suites before the 300s kill lands (exit 137, mid reload-rebind on the observed runs — position, not culprit), so every attempt dies the same way. iOS: 3 attempts x 600s (step timeout 15m -> 35m); Android: timeout 600, job timeout 30m -> 50m.
1 parent 8e82ea0 commit 7677a56

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ jobs:
369369
370370
- name: Run harness tests on iOS
371371
working-directory: expo57-example
372-
timeout-minutes: 15
372+
timeout-minutes: 35
373373
shell: bash --noprofile --norc -o pipefail {0}
374374
env:
375375
# First attempt bundles through the harness Metro on app boot; CI
@@ -433,12 +433,12 @@ jobs:
433433
BOOTED_UDID=$(xcrun simctl list devices booted | grep -oE '[0-9A-F-]{36}' | head -1)
434434
echo "booted simulator: ${BOOTED_UDID:-none}"
435435
436-
for attempt in 1 2 3 4 5; do
437-
echo "=== Attempt $attempt of 5 ==="
436+
for attempt in 1 2 3; do
437+
echo "=== Attempt $attempt of 3 ==="
438438
start_monitor
439439
yarn test:harness:ios --verbose --testTimeout 120000 &
440440
test_pid=$!
441-
( sleep 300; echo " WATCHDOG: attempt $attempt exceeded 300s, killing harness"; kill -9 $test_pid 2>/dev/null ) &
441+
( sleep 600; echo " WATCHDOG: attempt $attempt exceeded 600s, killing harness"; kill -9 $test_pid 2>/dev/null ) &
442442
watchdog_pid=$!
443443
wait $test_pid 2>/dev/null
444444
exit_code=$?
@@ -506,7 +506,7 @@ jobs:
506506

507507
test-harness-android:
508508
runs-on: ubuntu-latest
509-
timeout-minutes: 30
509+
timeout-minutes: 50
510510
env:
511511
ANDROID_API_LEVEL: 35
512512
steps:
@@ -595,7 +595,7 @@ jobs:
595595
script: |
596596
adb install expo57-example/android/app/build/outputs/apk/debug/app-debug.apk
597597
sleep 10
598-
cd expo57-example && for attempt in 1 2 3; do echo "Attempt $attempt of 3"; if timeout 300 env ANDROID_AVD=test yarn test:harness:android --verbose --testTimeout 120000; then echo "Tests passed on attempt $attempt"; exit 0; fi; echo "Attempt $attempt failed (exit $?), retrying..."; sleep 5; done; echo "All attempts failed"; exit 1
598+
cd expo57-example && for attempt in 1 2 3; do echo "Attempt $attempt of 3"; if timeout 600 env ANDROID_AVD=test yarn test:harness:android --verbose --testTimeout 120000; then echo "Tests passed on attempt $attempt"; exit 0; fi; echo "Attempt $attempt failed (exit $?), retrying..."; sleep 5; done; echo "All attempts failed"; exit 1
599599
600600
- name: Debug - Check logcat
601601
if: failure() || cancelled()
@@ -703,7 +703,7 @@ jobs:
703703
704704
- name: Run harness tests on iOS
705705
working-directory: expo57-example
706-
timeout-minutes: 15
706+
timeout-minutes: 35
707707
shell: bash --noprofile --norc -o pipefail {0}
708708
env:
709709
# First attempt bundles through the harness Metro on app boot; CI
@@ -767,12 +767,12 @@ jobs:
767767
BOOTED_UDID=$(xcrun simctl list devices booted | grep -oE '[0-9A-F-]{36}' | head -1)
768768
echo "booted simulator: ${BOOTED_UDID:-none}"
769769
770-
for attempt in 1 2 3 4 5; do
771-
echo "=== Attempt $attempt of 5 ==="
770+
for attempt in 1 2 3; do
771+
echo "=== Attempt $attempt of 3 ==="
772772
start_monitor
773773
yarn test:harness:ios --verbose --testTimeout 120000 &
774774
test_pid=$!
775-
( sleep 300; echo " WATCHDOG: attempt $attempt exceeded 300s, killing harness"; kill -9 $test_pid 2>/dev/null ) &
775+
( sleep 600; echo " WATCHDOG: attempt $attempt exceeded 600s, killing harness"; kill -9 $test_pid 2>/dev/null ) &
776776
watchdog_pid=$!
777777
wait $test_pid 2>/dev/null
778778
exit_code=$?
@@ -840,7 +840,7 @@ jobs:
840840

841841
test-harness-android-legacy:
842842
runs-on: ubuntu-latest
843-
timeout-minutes: 30
843+
timeout-minutes: 50
844844
env:
845845
ANDROID_API_LEVEL: 35
846846
steps:
@@ -936,7 +936,7 @@ jobs:
936936
script: |
937937
adb install expo57-example/android/app/build/outputs/apk/debug/app-debug.apk
938938
sleep 10
939-
cd expo57-example && for attempt in 1 2 3; do echo "Attempt $attempt of 3"; if timeout 300 env ANDROID_AVD=test yarn test:harness:android --verbose --testTimeout 120000; then echo "Tests passed on attempt $attempt"; exit 0; fi; echo "Attempt $attempt failed (exit $?), retrying..."; sleep 5; done; echo "All attempts failed"; exit 1
939+
cd expo57-example && for attempt in 1 2 3; do echo "Attempt $attempt of 3"; if timeout 600 env ANDROID_AVD=test yarn test:harness:android --verbose --testTimeout 120000; then echo "Tests passed on attempt $attempt"; exit 0; fi; echo "Attempt $attempt failed (exit $?), retrying..."; sleep 5; done; echo "All attempts failed"; exit 1
940940
941941
- name: Debug - Check logcat
942942
if: failure() || cancelled()

0 commit comments

Comments
 (0)