Skip to content

Commit a0f2310

Browse files
authored
tests: split systests out into separate Kokoro jobs (#516)
Closes #515
1 parent 1154d5a commit a0f2310

File tree

5 files changed

+38
-2
lines changed

5 files changed

+38
-2
lines changed

.github/sync-repo-settings.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://github.com/googleapis/repo-automation-bots/tree/master/packages/sync-repo-settings
2+
# Rules for master branch protection
3+
branchProtectionRules:
4+
# Identifies the protection rule pattern. Name of the branch to be protected.
5+
# Defaults to `master`
6+
- pattern: master
7+
requiredStatusCheckContexts:
8+
- 'Kokoro'
9+
- 'cla/google'
10+
- 'Kokoro system-2.7'
11+
- 'Kokoro system-3.8'

.kokoro/presubmit/presubmit.cfg

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
# Format: //devtools/kokoro/config/proto/build.proto
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Disable system tests.
4+
env_vars: {
5+
key: "RUN_SYSTEM_TESTS"
6+
value: "false"
7+
}

.kokoro/presubmit/system-2.7.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "system-2.7"
7+
}

.kokoro/presubmit/system-3.8.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Only run this nox session.
4+
env_vars: {
5+
key: "NOX_SESSION"
6+
value: "system-3.8"
7+
}

owlbot.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
# ----------------------------------------------------------------------------
2727
templated_files = common.py_library(
2828
cov_level=100,
29+
split_system_tests=True,
2930
system_test_external_dependencies=[
3031
"google-cloud-iam",
3132
"google-cloud-pubsub < 2.0.0",
@@ -38,7 +39,11 @@
3839
)
3940

4041
s.move(
41-
templated_files, excludes=["docs/multiprocessing.rst", "noxfile.py", "CONTRIBUTING.rst"],
42+
templated_files, excludes=[
43+
"docs/multiprocessing.rst",
44+
"noxfile.py",
45+
"CONTRIBUTING.rst",
46+
],
4247
)
4348

4449
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 commit comments

Comments
 (0)