Skip to content

Commit

Permalink
chore: added extra variables owlbot kokoro configs (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Aug 23, 2022
1 parent 3cca57a commit 2ef6c45
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .kokoro/common.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .kokoro/common_env_vars.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .kokoro/continuous/node12/common.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .kokoro/environment/common.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .kokoro/release/common.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions owlbot.py
Expand Up @@ -14,6 +14,7 @@

"""This script is used to synthesize generated parts of this library."""

import os
import synthtool as s
import synthtool.languages.node as node

Expand Down Expand Up @@ -42,3 +43,24 @@
"pass_down_envvars\+\=\(",
'pass_down_envvars+=(\n "ENVIRONMENT"\n "RUNTIME"'
)

# --------------------------------------------------------------------------
# Modify test configs
# --------------------------------------------------------------------------

# add shared environment variables to test configs
s.move(
".kokoro/common_env_vars.cfg",
".kokoro/common.cfg",
merge=lambda src, dst, _, : f"{dst}\n{src}",
)

for path, subdirs, files in os.walk(f".kokoro/continuous"):
for name in files:
if name == "common.cfg":
file_path = os.path.join(path, name)
s.move(
".kokoro/common_env_vars.cfg",
file_path,
merge=lambda src, dst, _, : f"{dst}\n{src}",
)

0 comments on commit 2ef6c45

Please sign in to comment.