Skip to content

Commit 91d2f5b

Browse files
authored
fix: increase timeout on CI (#1019)
See pyodide/pyodide#5510. Signed-off-by: Henry Schreiner <[email protected]>
1 parent f707c33 commit 91d2f5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/scikit_build_core/program_search.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import contextlib
44
import json
5+
import os
56
import shutil
67
import subprocess
78
import sys
@@ -33,7 +34,11 @@ def __dir__() -> list[str]:
3334

3435

3536
# Make sure we don't wait forever for programs to respond
36-
TIMEOUT = 10 if sys.platform.startswith("win") else 5
37+
# CI services can be really slow under load
38+
if os.environ.get("CI", ""):
39+
TIMEOUT = 20
40+
else:
41+
TIMEOUT = 10 if sys.platform.startswith("win") else 5
3742

3843

3944
class Program(NamedTuple):

0 commit comments

Comments
 (0)