Skip to content

Commit cb2a563

Browse files
sararobcopybara-github
authored andcommitted
chore: setup for parallelizing unit tests across Python versions
PiperOrigin-RevId: 566304233
1 parent 57bc7e3 commit cb2a563

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed

.kokoro/presubmit/presubmit.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Format: //devtools/kokoro/config/proto/build.proto
22

33
# Run all sessions except system tests and docs builds
4+
# TODO(sararob): update this to unit-3.8 and change in noxfile.py after cl/565663310 is submitted
45
env_vars: {
56
key: "NOX_SESSION"
67
value: "unit lint lint_setup_py blacken cover"

.kokoro/presubmit/unit_3-10.cfg

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Run unit tests for Python 3.10
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "unit-3.10"
7+
}
8+
9+
# Run unit tests in parallel, splitting up by file
10+
env_vars: {
11+
key: "PYTEST_ADDOPTS"
12+
value: "-n=auto --dist=loadscope"
13+
}

.kokoro/presubmit/unit_3-11.cfg

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Run unit tests for Python 3.11
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "unit-3.11"
7+
}
8+
9+
# Run unit tests in parallel, splitting up by file
10+
env_vars: {
11+
key: "PYTEST_ADDOPTS"
12+
value: "-n=auto --dist=loadscope"
13+
}

.kokoro/presubmit/unit_3-8.cfg

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Run unit tests for Python 3.8
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "unit-3.8"
7+
}
8+
9+
# Run unit tests in parallel, splitting up by file
10+
env_vars: {
11+
key: "PYTEST_ADDOPTS"
12+
value: "-n=auto --dist=loadscope"
13+
}

.kokoro/presubmit/unit_3-9.cfg

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Run unit tests for Python 3.9
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "unit-3.9"
7+
}
8+
9+
# Run unit tests in parallel, splitting up by file
10+
env_vars: {
11+
key: "PYTEST_ADDOPTS"
12+
value: "-n=auto --dist=loadscope"
13+
}

0 commit comments

Comments
 (0)