Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 1c7294a

Browse filesBrowse files
chore: added extra variables owlbot kokoro configs (#477)
1 parent 14f4612 commit 1c7294a
Copy full SHA for 1c7294a

File tree

Expand file treeCollapse file tree

11 files changed

+218
-6
lines changed
Filter options
Expand file treeCollapse file tree

11 files changed

+218
-6
lines changed

‎.kokoro/common_env_vars.cfg

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
#############################################
3+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
4+
5+
env_vars: {
6+
key: "PRODUCT_AREA_LABEL"
7+
value: "observability"
8+
}
9+
env_vars: {
10+
key: "PRODUCT_LABEL"
11+
value: "monitoring"
12+
}
13+
env_vars: {
14+
key: "LANGUAGE_LABEL"
15+
value: "python"
16+
}
17+
18+
###################################################
19+

‎.kokoro/continuous/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/continuous/common.cfg
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,23 @@ env_vars: {
2525
key: "TRAMPOLINE_BUILD_FILE"
2626
value: "github/python-monitoring/.kokoro/build.sh"
2727
}
28+
29+
30+
#############################################
31+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
32+
33+
env_vars: {
34+
key: "PRODUCT_AREA_LABEL"
35+
value: "observability"
36+
}
37+
env_vars: {
38+
key: "PRODUCT_LABEL"
39+
value: "monitoring"
40+
}
41+
env_vars: {
42+
key: "LANGUAGE_LABEL"
43+
value: "python"
44+
}
45+
46+
###################################################
47+

‎.kokoro/docs/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/docs/common.cfg
+20-1Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,23 @@ before_action {
6363
keyname: "docuploader_service_account"
6464
}
6565
}
66-
}
66+
}
67+
68+
#############################################
69+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
70+
71+
env_vars: {
72+
key: "PRODUCT_AREA_LABEL"
73+
value: "observability"
74+
}
75+
env_vars: {
76+
key: "PRODUCT_LABEL"
77+
value: "monitoring"
78+
}
79+
env_vars: {
80+
key: "LANGUAGE_LABEL"
81+
value: "python"
82+
}
83+
84+
###################################################
85+

‎.kokoro/presubmit/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/presubmit/common.cfg
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,23 @@ env_vars: {
2525
key: "TRAMPOLINE_BUILD_FILE"
2626
value: "github/python-monitoring/.kokoro/build.sh"
2727
}
28+
29+
30+
#############################################
31+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
32+
33+
env_vars: {
34+
key: "PRODUCT_AREA_LABEL"
35+
value: "observability"
36+
}
37+
env_vars: {
38+
key: "PRODUCT_LABEL"
39+
value: "monitoring"
40+
}
41+
env_vars: {
42+
key: "LANGUAGE_LABEL"
43+
value: "python"
44+
}
45+
46+
###################################################
47+

‎.kokoro/release/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/release/common.cfg
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,23 @@ env_vars: {
3838
key: "SECRET_MANAGER_KEYS"
3939
value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem"
4040
}
41+
42+
43+
#############################################
44+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
45+
46+
env_vars: {
47+
key: "PRODUCT_AREA_LABEL"
48+
value: "observability"
49+
}
50+
env_vars: {
51+
key: "PRODUCT_LABEL"
52+
value: "monitoring"
53+
}
54+
env_vars: {
55+
key: "LANGUAGE_LABEL"
56+
value: "python"
57+
}
58+
59+
###################################################
60+

‎.kokoro/samples/lint/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/samples/lint/common.cfg
+20-1Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3131
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
3232

3333
# Use the trampoline script to run in docker.
34-
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
34+
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
35+
36+
#############################################
37+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
38+
39+
env_vars: {
40+
key: "PRODUCT_AREA_LABEL"
41+
value: "observability"
42+
}
43+
env_vars: {
44+
key: "PRODUCT_LABEL"
45+
value: "monitoring"
46+
}
47+
env_vars: {
48+
key: "LANGUAGE_LABEL"
49+
value: "python"
50+
}
51+
52+
###################################################
53+

‎.kokoro/samples/python3.10/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/samples/python3.10/common.cfg
+20-1Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3737
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
3838

3939
# Use the trampoline script to run in docker.
40-
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
40+
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
41+
42+
#############################################
43+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
44+
45+
env_vars: {
46+
key: "PRODUCT_AREA_LABEL"
47+
value: "observability"
48+
}
49+
env_vars: {
50+
key: "PRODUCT_LABEL"
51+
value: "monitoring"
52+
}
53+
env_vars: {
54+
key: "LANGUAGE_LABEL"
55+
value: "python"
56+
}
57+
58+
###################################################
59+

‎.kokoro/samples/python3.7/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/samples/python3.7/common.cfg
+20-1Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3737
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
3838

3939
# Use the trampoline script to run in docker.
40-
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
40+
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
41+
42+
#############################################
43+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
44+
45+
env_vars: {
46+
key: "PRODUCT_AREA_LABEL"
47+
value: "observability"
48+
}
49+
env_vars: {
50+
key: "PRODUCT_LABEL"
51+
value: "monitoring"
52+
}
53+
env_vars: {
54+
key: "LANGUAGE_LABEL"
55+
value: "python"
56+
}
57+
58+
###################################################
59+

‎.kokoro/samples/python3.8/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/samples/python3.8/common.cfg
+20-1Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3737
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
3838

3939
# Use the trampoline script to run in docker.
40-
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
40+
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
41+
42+
#############################################
43+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
44+
45+
env_vars: {
46+
key: "PRODUCT_AREA_LABEL"
47+
value: "observability"
48+
}
49+
env_vars: {
50+
key: "PRODUCT_LABEL"
51+
value: "monitoring"
52+
}
53+
env_vars: {
54+
key: "LANGUAGE_LABEL"
55+
value: "python"
56+
}
57+
58+
###################################################
59+

‎.kokoro/samples/python3.9/common.cfg

Copy file name to clipboardExpand all lines: .kokoro/samples/python3.9/common.cfg
+20-1Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,23 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3737
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
3838

3939
# Use the trampoline script to run in docker.
40-
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
40+
build_file: "python-monitoring/.kokoro/trampoline_v2.sh"
41+
42+
#############################################
43+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
44+
45+
env_vars: {
46+
key: "PRODUCT_AREA_LABEL"
47+
value: "observability"
48+
}
49+
env_vars: {
50+
key: "PRODUCT_LABEL"
51+
value: "monitoring"
52+
}
53+
env_vars: {
54+
key: "LANGUAGE_LABEL"
55+
value: "python"
56+
}
57+
58+
###################################################
59+

‎owlbot.py

Copy file name to clipboardExpand all lines: owlbot.py
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
"""This script is used to synthesize generated parts of this library."""
1616
import re
17+
import os
1718

1819
import synthtool as s
1920
import synthtool.gcp as gcp
@@ -149,3 +150,21 @@
149150
python.configure_previous_major_version_branches()
150151

151152
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
153+
154+
155+
# --------------------------------------------------------------------------
156+
# Modify test configs
157+
# --------------------------------------------------------------------------
158+
159+
# add shared environment variables to test configs
160+
tracked_subdirs = ["continuous", "presubmit", "release", "samples", "docs"]
161+
for subdir in tracked_subdirs:
162+
for path, subdirs, files in os.walk(f".kokoro/{subdir}"):
163+
for name in files:
164+
if name == "common.cfg":
165+
file_path = os.path.join(path, name)
166+
s.move(
167+
".kokoro/common_env_vars.cfg",
168+
file_path,
169+
merge=lambda src, dst, _, : f"{dst}\n{src}",
170+
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.