Skip to content

Commit 60ab046

Browse files
speedstorm1copybara-github
authored andcommitted
chore: parallelize presubmit unit test runs with pytest-xdist
PiperOrigin-RevId: 823199807
1 parent 57d2709 commit 60ab046

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.kokoro/presubmit/unit_3-10.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ env_vars: {
99
# Run unit tests in parallel, splitting up by file
1010
env_vars: {
1111
key: "PYTEST_ADDOPTS"
12-
value: "-n=auto --dist=loadscope"
12+
value: "-n=8 --dist=loadscope"
1313
}

.kokoro/presubmit/unit_3-11.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ env_vars: {
99
# Run unit tests in parallel, splitting up by file
1010
env_vars: {
1111
key: "PYTEST_ADDOPTS"
12-
value: "-n=auto --dist=loadscope"
12+
value: "-n=8 --dist=loadscope"
1313
}

.kokoro/presubmit/unit_3-12.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ env_vars: {
99
# Run unit tests in parallel, splitting up by file
1010
env_vars: {
1111
key: "PYTEST_ADDOPTS"
12-
value: "-n=auto --dist=loadscope"
12+
value: "-n=8 --dist=loadscope"
1313
}

.kokoro/presubmit/unit_3-9.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ env_vars: {
99
# Run unit tests in parallel, splitting up by file
1010
env_vars: {
1111
key: "PYTEST_ADDOPTS"
12-
value: "-n=auto --dist=loadscope"
12+
value: "-n=8 --dist=loadscope"
1313
}

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ def default(session):
204204
# Run py.test against the unit tests.
205205
session.run(
206206
"py.test",
207-
"--quiet",
208207
f"--junitxml=unit_{session.python}_sponge_log.xml",
209208
"--cov=google",
210209
"--cov-append",

0 commit comments

Comments
 (0)