Skip to content

Commit fe9712e

Browse files
renovate-botgcf-owl-bot[bot]parthea
authored
chore(deps): update all dependencies (#601)
* chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert * attempt to fix flaky test * use build specific project for test * attempt to fix flaky test Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent c3d2152 commit fe9712e

File tree

8 files changed

+58
-13
lines changed

8 files changed

+58
-13
lines changed

packages/google-cloud-bigtable/.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v3
1212
- name: Setup Python
13-
uses: actions/setup-python@v3
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: "3.8"
1616
- name: Install nox

packages/google-cloud-bigtable/.github/workflows/system_emulated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v3
1616

1717
- name: Setup Python
18-
uses: actions/setup-python@v3
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.8'
2121

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
google-cloud-bigtable==2.10.0
2-
backoff==2.0.1
2+
backoff==2.1.2

packages/google-cloud-bigtable/samples/metricscaler/metricscaler.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,22 @@ def scale_bigtable(bigtable_instance, bigtable_cluster, scale_up):
122122
if current_node_count < max_node_count:
123123
new_node_count = min(current_node_count + size_change_step, max_node_count)
124124
cluster.serve_nodes = new_node_count
125-
cluster.update()
125+
operation = cluster.update()
126+
response = operation.result(60)
126127
logger.info(
127-
"Scaled up from {} to {} nodes.".format(
128-
current_node_count, new_node_count
128+
"Scaled up from {} to {} nodes for {}.".format(
129+
current_node_count, new_node_count, response.name
129130
)
130131
)
131132
else:
132133
if current_node_count > min_node_count:
133134
new_node_count = max(current_node_count - size_change_step, min_node_count)
134135
cluster.serve_nodes = new_node_count
135-
cluster.update()
136+
operation = cluster.update()
137+
response = operation.result(60)
136138
logger.info(
137-
"Scaled down from {} to {} nodes.".format(
138-
current_node_count, new_node_count
139+
"Scaled down from {} to {} nodes for {}.".format(
140+
current_node_count, new_node_count, response.name
139141
)
140142
)
141143
# [END bigtable_scale]

packages/google-cloud-bigtable/samples/metricscaler/metricscaler_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def instance():
7777
serve_nodes=serve_nodes,
7878
default_storage_type=storage_type,
7979
)
80-
instance.create(clusters=[cluster])
80+
operation = instance.create(clusters=[cluster])
81+
response = operation.result(60)
82+
print(f"Successfully created {response.name}")
8183

8284
# Eventual consistency check
8385
retry_found = RetryResult(bool)
@@ -105,7 +107,9 @@ def dev_instance():
105107
cluster = instance.cluster(
106108
cluster_id, location_id=BIGTABLE_ZONE, default_storage_type=storage_type
107109
)
108-
instance.create(clusters=[cluster])
110+
operation = instance.create(clusters=[cluster])
111+
response = operation.result(60)
112+
print(f"Successfully created {response.name}")
109113

110114
# Eventual consistency check
111115
retry_found = RetryResult(bool)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Default TEST_CONFIG_OVERRIDE for python repos.
16+
17+
# You can copy this file into your directory, then it will be imported from
18+
# the noxfile.py.
19+
20+
# The source of truth:
21+
# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile_config.py
22+
23+
TEST_CONFIG_OVERRIDE = {
24+
# Old samples are opted out of enforcing Python type hints
25+
# All new samples should feature them
26+
"enforce_type_hints": False,
27+
# An envvar key for determining the project id to use. Change it
28+
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
29+
# build specific Cloud project. You can also use your own string
30+
# to use your own Cloud project.
31+
"gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_PROJECT",
32+
# If you need to use a specific version of pip,
33+
# change pip_version_override to the string representation
34+
# of the version number, for example, "20.2.4"
35+
"pip_version_override": None,
36+
# A dictionary you want to inject into your test. Don't put any
37+
# secrets here. These values will override predefined values.
38+
"envs": {},
39+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
backoff==2.0.1
1+
backoff==2.1.2
22
pytest==7.1.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pytest==7.1.2
2-
google-cloud-testutils==1.3.1
2+
google-cloud-testutils==1.3.2

0 commit comments

Comments
 (0)