Skip to content

Commit bec5a3c

Browse files
committed
Increase iOS build timeout for CI runners to improve reliability
1 parent 1249bf9 commit bec5a3c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ jobs:
4545
run: npm run test:macos
4646

4747
- name: Run Tests on iOS
48+
env:
49+
IOS_BUILD_TIMEOUT_MS: "600000"
4850
run: npm run test:ios

scripts/run-tests-ios.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ function parsePositiveInt(name, fallback) {
8787
}
8888

8989
const commandTimeoutMs = parseTimeoutMs("IOS_COMMAND_TIMEOUT_MS", 3 * 60 * 1000);
90-
const buildTimeoutMs = parseTimeoutMs("IOS_BUILD_TIMEOUT_MS", commandTimeoutMs);
90+
// Clean CI runners often need substantially longer for the first iOS build than
91+
// for simulator control commands like boot/install/log collection.
92+
const buildTimeoutMs = parseTimeoutMs("IOS_BUILD_TIMEOUT_MS", 10 * 60 * 1000);
9193
const commandMaxBufferBytes = parsePositiveInt("IOS_COMMAND_MAX_BUFFER_BYTES", 64 * 1024 * 1024);
9294
const testTimeoutMs = Number(process.env.IOS_TEST_TIMEOUT_MS || 2 * 60 * 1000);
9395
const inactivityTimeoutMs = Number(process.env.IOS_TEST_INACTIVITY_TIMEOUT_MS || 45 * 1000);

0 commit comments

Comments
 (0)