Skip to content

Commit 9d910a7

Browse files
sunnylqmclaude
andcommitted
ci: raise e2e-ios job timeout to 50min for detox retries
With --retries 2 a single failing attempt pushes total wall time past the 30min job timeout, which cancels the run mid-retry (run 28921995046 died at 32min in the Detox step). Also upload artifacts on cancelled() so timeout kills still leave diagnostics. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f5e9b9a commit 9d910a7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/e2e_ios.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ concurrency:
4343
jobs:
4444
e2e-ios:
4545
runs-on: macos-26
46-
timeout-minutes: 30
46+
# --retries 2 时一次失败重试就会把总时长推过 30 分钟,留足余量
47+
timeout-minutes: 50
4748
steps:
4849
- name: Checkout react-native-update
4950
uses: actions/checkout@v7
@@ -142,7 +143,8 @@ jobs:
142143
run: cd Example/e2etest && E2E_PLATFORM=ios bunx detox test --configuration ios.sim.release --retries 2
143144

144145
- name: Upload Detox artifacts
145-
if: failure()
146+
# cancelled() 覆盖 job 超时被杀的场景,否则超时时拿不到现场
147+
if: failure() || cancelled()
146148
uses: actions/upload-artifact@v7.0.1
147149
with:
148150
name: e2e-ios-detox-artifacts

0 commit comments

Comments
 (0)