Skip to content

Commit

Permalink
tests: split systests out into separate Kokoro jobs (#516)
Browse files Browse the repository at this point in the history
Closes #515
  • Loading branch information
tseaver committed Jul 20, 2021
1 parent 1154d5a commit a0f2310
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/sync-repo-settings.yaml
@@ -0,0 +1,11 @@
# https://github.com/googleapis/repo-automation-bots/tree/master/packages/sync-repo-settings
# Rules for master branch protection
branchProtectionRules:
# Identifies the protection rule pattern. Name of the branch to be protected.
# Defaults to `master`
- pattern: master
requiredStatusCheckContexts:
- 'Kokoro'
- 'cla/google'
- 'Kokoro system-2.7'
- 'Kokoro system-3.8'
8 changes: 7 additions & 1 deletion .kokoro/presubmit/presubmit.cfg
@@ -1 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto
# Format: //devtools/kokoro/config/proto/build.proto

# Disable system tests.
env_vars: {
key: "RUN_SYSTEM_TESTS"
value: "false"
}
7 changes: 7 additions & 0 deletions .kokoro/presubmit/system-2.7.cfg
@@ -0,0 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Only run this nox session.
env_vars: {
key: "NOX_SESSION"
value: "system-2.7"
}
7 changes: 7 additions & 0 deletions .kokoro/presubmit/system-3.8.cfg
@@ -0,0 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Only run this nox session.
env_vars: {
key: "NOX_SESSION"
value: "system-3.8"
}
7 changes: 6 additions & 1 deletion owlbot.py
Expand Up @@ -26,6 +26,7 @@
# ----------------------------------------------------------------------------
templated_files = common.py_library(
cov_level=100,
split_system_tests=True,
system_test_external_dependencies=[
"google-cloud-iam",
"google-cloud-pubsub < 2.0.0",
Expand All @@ -38,7 +39,11 @@
)

s.move(
templated_files, excludes=["docs/multiprocessing.rst", "noxfile.py", "CONTRIBUTING.rst"],
templated_files, excludes=[
"docs/multiprocessing.rst",
"noxfile.py",
"CONTRIBUTING.rst",
],
)

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

0 comments on commit a0f2310

Please sign in to comment.