Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
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
20 changes: 20 additions & 0 deletions .kokoro/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,23 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-errorreporting/.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: "java"
}

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

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: "java"
}

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

20 changes: 20 additions & 0 deletions .kokoro/continuous/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,23 @@ env_vars: {
key: "JOB_TYPE"
value: "test"
}


#############################################
# 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: "java"
}

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

20 changes: 20 additions & 0 deletions .kokoro/nightly/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,23 @@ env_vars: {
key: "JOB_TYPE"
value: "test"
}


#############################################
# 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: "java"
}

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

20 changes: 20 additions & 0 deletions .kokoro/presubmit/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,23 @@ before_action {
}
}
}


#############################################
# 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: "java"
}

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

20 changes: 20 additions & 0 deletions .kokoro/release/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,23 @@ before_action {
}
}
}


#############################################
# 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: "java"
}

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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.0.0')
implementation platform('com.google.cloud:libraries-bom:26.1.0')

implementation 'com.google.cloud:google-cloud-errorreporting'
```
Expand Down
23 changes: 23 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import synthtool as s
from synthtool.languages import java

Expand Down Expand Up @@ -75,3 +76,25 @@

s.remove_staging_dirs()
java.common_templates(excludes=['.github/auto-label.yaml'])

# --------------------------------------------------------------------------
# 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}",
)
tracked_subdirs = ["continuous", "presubmit", "release", "nightly"]
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}",
)