Skip to content

Commit

Permalink
test(ci): increase delays for simulator boot / continue on video stop…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
mikehardy committed Oct 11, 2024
1 parent b78119c commit 4ee1ff6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests_e2e_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,21 @@ jobs:
- name: Record App Video
# With a little delay so the detox test below has time to spawn it, missing the first part of boot is fine
continue-on-error: true
run: nohup sh -c "sleep 30 && xcrun simctl io booted recordVideo --codec=h264 -f simulator.mp4 2>&1 &"
run: nohup sh -c "sleep 110 && xcrun simctl io booted recordVideo --codec=h264 -f simulator.mp4 2>&1 &"

- name: Create Simulator Log
# With a little delay so the detox test below has time to spawn it, missing the first part of boot is fine
# If you boot the simulator separately from detox, some other race fails and detox testee never sends ready to proxy
continue-on-error: true
run: nohup sh -c "sleep 30 && xcrun simctl spawn booted log stream --level debug --style compact > simulator.log 2>&1 &"
run: nohup sh -c "sleep 110 && xcrun simctl spawn booted log stream --level debug --style compact > simulator.log 2>&1 &"

- name: Detox Test
timeout-minutes: 50
run: yarn tests:ios:test-cover

- name: Stop App Video
if: always()
continue-on-error: true
run: killall -INT simctl

- name: Upload App Video
Expand Down

0 comments on commit 4ee1ff6

Please sign in to comment.