Skip to content

Commit 6006105

Browse files
authored
chore: make doctest tests less parallel (#960)
Parallel test runs contribute to them running into rate limiting quota issue with cloud functions. Currently doctest nox session is running in about 9 minutes, while presubmit is running in 45 minutes. This gives us some leeway in making doctest less parallel to gain less likelihood of running into rate quota issue without comprimising the overall PR merge readiness turnaround.
1 parent e0eab7c commit 6006105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def run_system(
304304
print_duration=False,
305305
extra_pytest_options=(),
306306
timeout_seconds=900,
307+
num_workers=20,
307308
):
308309
"""Run the system test suite."""
309310
constraints_path = str(
@@ -323,7 +324,7 @@ def run_system(
323324
pytest_cmd = [
324325
"py.test",
325326
"--quiet",
326-
"-n=20",
327+
f"-n={num_workers}",
327328
# Any individual test taking longer than 15 mins will be terminated.
328329
f"--timeout={timeout_seconds}",
329330
# Log 20 slowest tests
@@ -392,6 +393,7 @@ def doctest(session: nox.sessions.Session):
392393
),
393394
test_folder="bigframes",
394395
check_cov=True,
396+
num_workers=5,
395397
)
396398

397399

0 commit comments

Comments
 (0)