Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .kokoro/common_env_vars.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

20 changes: 20 additions & 0 deletions .kokoro/continuous/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,23 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/python-error-reporting/.kokoro/build.sh"
}


#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

21 changes: 20 additions & 1 deletion .kokoro/docs/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,23 @@ before_action {
keyname: "docuploader_service_account"
}
}
}
}

#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

20 changes: 20 additions & 0 deletions .kokoro/presubmit/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,23 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/python-error-reporting/.kokoro/build.sh"
}


#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

20 changes: 20 additions & 0 deletions .kokoro/release/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,23 @@ env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem"
}


#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

21 changes: 20 additions & 1 deletion .kokoro/samples/lint/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"

#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

21 changes: 20 additions & 1 deletion .kokoro/samples/python3.10/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"

#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

21 changes: 20 additions & 1 deletion .kokoro/samples/python3.7/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"

#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

21 changes: 20 additions & 1 deletion .kokoro/samples/python3.8/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"

#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

21 changes: 20 additions & 1 deletion .kokoro/samples/python3.9/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"
build_file: "python-error-reporting/.kokoro/trampoline_v2.sh"

#############################################
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py

env_vars: {
key: "PRODUCT_AREA_LABEL"
value: "observability"
}
env_vars: {
key: "PRODUCT_LABEL"
value: "error-reporting"
}
env_vars: {
key: "LANGUAGE_LABEL"
value: "python"
}

###################################################

18 changes: 18 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import synthtool as s
from synthtool import gcp
from synthtool.languages import python
import os

common = gcp.CommonTemplates()

Expand Down Expand Up @@ -45,3 +46,20 @@

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


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

# add shared environment variables to test configs
tracked_subdirs = ["continuous", "presubmit", "release", "samples", "docs"]
for subdir in tracked_subdirs:
for path, subdirs, files in os.walk(f".kokoro/{subdir}"):
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}",
)