This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update common templates (#97)
* Change triggered by none of the following: This git repo (https://github.com/googleapis/java-iot.git) Git repo https://github.com/googleapis/googleapis.git * chore: Migrate iot synth.py to bazel (#90) 173dcae commit 173dcae Author: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Thu Mar 19 22:29:06 2020 -0700 chore: Migrate iot synth.py to bazel (#90) The changes in grpc stubs are caused by the gRPC upgrade from 1.10 (more than a year old) to 1.27 (same version which is used as runtime dependency) * chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#92) 5e00368 commit 5e00368 Author: WhiteSource Renovate <bot@renovateapp.com> Date: Mon Mar 23 18:22:49 2020 +0100 chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#92) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-iot). * chore: enable context aware commits (#93) 8cbf1c2 commit 8cbf1c2 Author: Jeff Ching <chingor@google.com> Date: Mon Mar 23 19:33:30 2020 -0700 chore: enable context aware commits (#93) * deps: update dependency com.google.api:api-common to v1.9.0 (#95) bcbce5c commit bcbce5c Author: WhiteSource Renovate <bot@renovateapp.com> Date: Thu Mar 26 00:21:09 2020 +0100 deps: update dependency com.google.api:api-common to v1.9.0 (#95) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.api:api-common](https://togithub.com/googleapis/api-common-java) | minor | `1.8.1` -> `1.9.0` | --- ### Release Notes <details> <summary>googleapis/api-common-java</summary> ### [`v1.9.0`](https://togithub.com/googleapis/api-common-java/releases/v1.9.0) [Compare Source](https://togithub.com/googleapis/api-common-java/compare/v1.8.1...v1.9.0) 03-25-2020 14:09 PST #### New Features - Add `@BetaApi` `ApiFutres.catchingAsync()` ([#​117](https://togithub.com/googleapis/api-common-java/pull/117)) ##### Dependencies - Update guava to v28.2-android ([#​110](https://togithub.com/googleapis/api-common-java/pull/110)) - Update error_prone_annotations to v2.2.3 ([#​111](https://togithub.com/googleapis/api-common-java/pull/111)) </details> --- ### Renovate configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-iot). * bazel: Use latest release of gax_java googleapis/googleapis@0e9f1f6 commit 0e9f1f60ded9ad1c2e725e37719112f5b487ab65 Author: Google APIs <noreply@google.com> Date: Tue Mar 17 16:44:00 2020 -0700 bazel: Use latest release of gax_java PiperOrigin-RevId: 301480457
- Loading branch information
1 parent
bcbce5c
commit 312dc24
Showing
7 changed files
with
99 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# Copyright 2020 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. | ||
|
||
# set -eo pipefail | ||
|
||
function retry_with_backoff { | ||
attempts_left=$1 | ||
sleep_seconds=$2 | ||
shift 2 | ||
command=$@ | ||
|
||
echo "${command}" | ||
${command} | ||
exit_code=$? | ||
|
||
if [[ $exit_code == 0 ]] | ||
then | ||
return 0 | ||
fi | ||
|
||
# failure | ||
if [[ ${attempts_left} > 0 ]] | ||
then | ||
echo "failure (${exit_code}), sleeping ${sleep_seconds}..." | ||
sleep ${sleep_seconds} | ||
new_attempts=$((${attempts_left} - 1)) | ||
new_sleep=$((${sleep_seconds} * 2)) | ||
retry_with_backoff ${new_attempts} ${new_sleep} ${command} | ||
fi | ||
|
||
return $exit_code | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters