Skip to content

Commit 92ec9d6

Browse files
committed
ci: retry less and stop all sims
When it fails once, it fails always, so let's try to retry once only and stop all sims
1 parent 415fc3f commit 92ec9d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/npm_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ jobs:
110110
# the xcode tests are a bit flaky and they should never fail on this step, as this step only collects the JS test results as junit xml
111111
with:
112112
timeout_minutes: 20
113-
max_attempts: 3
113+
max_attempts: 2
114114
command: set -o pipefail && xcodebuild -project v8ios.xcodeproj -scheme TestRunner -resultBundlePath $TEST_FOLDER/test_results -destination platform\=iOS\ Simulator,OS\=17.2,name\=iPhone\ 15\ Pro\ Max build test | xcpretty
115-
on_retry_command: rm -rf $TEST_FOLDER/test_results*
115+
on_retry_command: rm -rf $TEST_FOLDER/test_results* && xcrun simctl shutdown all
116116
new_command_on_retry: xcodebuild -project v8ios.xcodeproj -scheme TestRunner -resultBundlePath $TEST_FOLDER/test_results -destination platform\=iOS\ Simulator,OS\=17.2,name\=iPhone\ 15\ Pro\ Max build test
117117
- name: Validate Test Results
118118
run: |

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ jobs:
9393
# the xcode tests are a bit flaky and they should never fail on this step, as this step only collects the JS test results as junit xml
9494
with:
9595
timeout_minutes: 20
96-
max_attempts: 3
96+
max_attempts: 2
9797
command: set -o pipefail && xcodebuild -project v8ios.xcodeproj -scheme TestRunner -resultBundlePath $TEST_FOLDER/test_results -destination platform\=iOS\ Simulator,OS\=17.2,name\=iPhone\ 15\ Pro\ Max build test | xcpretty
98-
on_retry_command: rm -rf $TEST_FOLDER/test_results*
98+
on_retry_command: rm -rf $TEST_FOLDER/test_results* && xcrun simctl shutdown all
9999
new_command_on_retry: xcodebuild -project v8ios.xcodeproj -scheme TestRunner -resultBundlePath $TEST_FOLDER/test_results -destination platform\=iOS\ Simulator,OS\=17.2,name\=iPhone\ 15\ Pro\ Max build test
100100
- name: Validate Test Results
101101
run: |

0 commit comments

Comments
 (0)