From 71f223c3723c5b67d0a037075629bcdfbcff5711 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 14:36:06 -0800 Subject: [PATCH] chore: enable auto release in java (#1349) (#600) * chore: fix auto-release * chore: remove codecov.yml * chore: update license headers for yaml files Source-Link: https://github.com/googleapis/synthtool/commit/5b777277a01a93e7f10c9279521e807b934e78d4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 Co-authored-by: Owl Bot --- .../.github/.OwlBot.lock.yaml | 2 +- .../.github/workflows/approve-readme.yaml | 15 ++++++++ .../.github/workflows/ci.yaml | 15 ++++++++ java-shared-dependencies/.kokoro/build.bat | 15 ++++++++ .../.kokoro/nightly/java11-integration.cfg | 37 +++++++++++++++++++ 5 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 java-shared-dependencies/.kokoro/nightly/java11-integration.cfg diff --git a/java-shared-dependencies/.github/.OwlBot.lock.yaml b/java-shared-dependencies/.github/.OwlBot.lock.yaml index be3b9bde4fce..a8ddd81ae949 100644 --- a/java-shared-dependencies/.github/.OwlBot.lock.yaml +++ b/java-shared-dependencies/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 + digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 diff --git a/java-shared-dependencies/.github/workflows/approve-readme.yaml b/java-shared-dependencies/.github/workflows/approve-readme.yaml index c5132427982f..1bb182327612 100644 --- a/java-shared-dependencies/.github/workflows/approve-readme.yaml +++ b/java-shared-dependencies/.github/workflows/approve-readme.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-merge-readme diff --git a/java-shared-dependencies/.github/workflows/ci.yaml b/java-shared-dependencies/.github/workflows/ci.yaml index 05de1f60dcf0..6b5e56aaacd1 100644 --- a/java-shared-dependencies/.github/workflows/ci.yaml +++ b/java-shared-dependencies/.github/workflows/ci.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: push: branches: diff --git a/java-shared-dependencies/.kokoro/build.bat b/java-shared-dependencies/.kokoro/build.bat index 05826ad93fe8..cc602c9eba80 100644 --- a/java-shared-dependencies/.kokoro/build.bat +++ b/java-shared-dependencies/.kokoro/build.bat @@ -1,3 +1,18 @@ :: See documentation in type-shell-output.bat +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/java-shared-dependencies/.kokoro/nightly/java11-integration.cfg b/java-shared-dependencies/.kokoro/nightly/java11-integration.cfg new file mode 100644 index 000000000000..58049cc38f11 --- /dev/null +++ b/java-shared-dependencies/.kokoro/nightly/java11-integration.cfg @@ -0,0 +1,37 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/java11014" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "ENABLE_FLAKYBOT" + value: "true" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +}