Skip to content

Commit c8e492a

Browse files
chore: added extra variables owlbot kokoro configs (#652)
1 parent 28c825e commit c8e492a

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

.kokoro/common.cfg

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/common_env_vars.cfg

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/continuous/node12/common.cfg

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/release/common.cfg

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

owlbot.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,32 @@
1616
import synthtool.gcp as gcp
1717
import synthtool.languages.node as node
1818
import logging
19+
import os
1920

2021
logging.basicConfig(level=logging.DEBUG)
2122

2223
common_templates = gcp.CommonTemplates()
2324
templates = common_templates.node_library()
2425
s.copy(templates, excludes=[".github/auto-label.yaml"])
2526
node.fix_hermetic()
27+
28+
29+
# --------------------------------------------------------------------------
30+
# Modify test configs
31+
# --------------------------------------------------------------------------
32+
33+
# add shared environment variables to test configs
34+
s.move(
35+
".kokoro/common_env_vars.cfg",
36+
".kokoro/common.cfg",
37+
merge=lambda src, dst, _, : f"{dst}\n{src}",
38+
)
39+
for path, subdirs, files in os.walk(f".kokoro/continuous"):
40+
for name in files:
41+
if name == "common.cfg":
42+
file_path = os.path.join(path, name)
43+
s.move(
44+
".kokoro/common_env_vars.cfg",
45+
file_path,
46+
merge=lambda src, dst, _, : f"{dst}\n{src}",
47+
)

0 commit comments

Comments
 (0)