Skip to content

Commit 74baf78

Browse files
gcf-owl-bot[bot]Mariattaparthea
authored
ci(python): fix path to requirements.txt in release script (googleapis#659)
* ci(python): fix path to requirements.txt in release script Source-Link: googleapis/synthtool@fdba3ed Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:1f0dbd02745fb7cf255563dab5968345989308544e52b7f460deadd5e78e63b0 * Increase the timeouts. * increase timeout * increase timeout * increase timeouts * increase timeouts * increase timeouts * increase timeouts * increase timeouts * increase timeouts Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Mariatta Wijaya <mariattaw@google.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 49b780d commit 74baf78

9 files changed

Lines changed: 49 additions & 47 deletions

File tree

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:60a63eddf86c87395b4bb394fdddfe30f84a7726ee8fe0b758ea132c2106ac75
17-
# created: 2022-08-24T19:47:37.288818056Z
16+
digest: sha256:1f0dbd02745fb7cf255563dab5968345989308544e52b7f460deadd5e78e63b0

.kokoro/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
set -eo pipefail
1717

1818
# Start the releasetool reporter
19-
python3 -m pip install --require-hashes -r .kokoro/requirements.txt
19+
python3 -m pip install --require-hashes -r github/python-bigtable/.kokoro/requirements.txt
2020
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
2121

2222
# Disable buffering, so that the logs stream through.

.kokoro/requirements.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ click==8.0.4 \
100100
# via
101101
# gcp-docuploader
102102
# gcp-releasetool
103-
colorlog==6.6.0 \
104-
--hash=sha256:344f73204009e4c83c5b6beb00b3c45dc70fcdae3c80db919e0a4171d006fde8 \
105-
--hash=sha256:351c51e866c86c3217f08e4b067a7974a678be78f07f85fc2d55b8babde6d94e
103+
colorlog==6.7.0 \
104+
--hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \
105+
--hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5
106106
# via
107107
# gcp-docuploader
108108
# nox
@@ -136,9 +136,9 @@ cryptography==37.0.4 \
136136
# via
137137
# gcp-releasetool
138138
# secretstorage
139-
distlib==0.3.5 \
140-
--hash=sha256:a7f75737c70be3b25e2bee06288cec4e4c221de18455b2dd037fe2a795cab2fe \
141-
--hash=sha256:b710088c59f06338ca514800ad795a132da19fda270e3ce4affc74abf955a26c
139+
distlib==0.3.6 \
140+
--hash=sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46 \
141+
--hash=sha256:f35c4b692542ca110de7ef0bea44d73981caeb34ca0b9b6b2e6d7790dda8f80e
142142
# via virtualenv
143143
docutils==0.19 \
144144
--hash=sha256:33995a6753c30b7f577febfc2c50411fec6aac7f7ffeb7c4cfe5991072dcf9e6 \
@@ -152,9 +152,9 @@ gcp-docuploader==0.6.3 \
152152
--hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \
153153
--hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b
154154
# via -r requirements.in
155-
gcp-releasetool==1.8.6 \
156-
--hash=sha256:42e51ab8e2e789bc8e22a03c09352962cd3452951c801a2230d564816630304a \
157-
--hash=sha256:a3518b79d1b243c494eac392a01c7fd65187fd6d52602dcab9b529bc934d4da1
155+
gcp-releasetool==1.8.7 \
156+
--hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \
157+
--hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d
158158
# via -r requirements.in
159159
google-api-core==2.8.2 \
160160
--hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \
@@ -251,9 +251,9 @@ jinja2==3.1.2 \
251251
--hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \
252252
--hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61
253253
# via gcp-releasetool
254-
keyring==23.8.2 \
255-
--hash=sha256:0d9973f8891850f1ade5f26aafd06bb16865fbbae3fc56b0defb6a14a2624003 \
256-
--hash=sha256:10d2a8639663fe2090705a00b8c47c687cacdf97598ea9c11456679fa974473a
254+
keyring==23.9.0 \
255+
--hash=sha256:4c32a31174faaee48f43a7e2c7e9c3216ec5e95acf22a2bebfb4a1d05056ee44 \
256+
--hash=sha256:98f060ec95ada2ab910c195a2d4317be6ef87936a766b239c46aa3c7aac4f0db
257257
# via
258258
# gcp-releasetool
259259
# twine
@@ -440,9 +440,9 @@ urllib3==1.26.12 \
440440
# via
441441
# requests
442442
# twine
443-
virtualenv==20.16.3 \
444-
--hash=sha256:4193b7bc8a6cd23e4eb251ac64f29b4398ab2c233531e66e40b19a6b7b0d30c1 \
445-
--hash=sha256:d86ea0bb50e06252d79e6c241507cb904fcd66090c3271381372d6221a3970f9
443+
virtualenv==20.16.4 \
444+
--hash=sha256:014f766e4134d0008dcaa1f95bafa0fb0f575795d07cae50b1bee514185d6782 \
445+
--hash=sha256:035ed57acce4ac35c82c9d8802202b0e71adac011a511ff650cbcf9635006a22
446446
# via nox
447447
webencodings==0.5.1 \
448448
--hash=sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78 \

noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ def unit(session):
200200
def install_systemtest_dependencies(session, *constraints):
201201

202202
# Use pre-release gRPC for system tests.
203-
session.install("--pre", "grpcio")
203+
# Exclude version 1.49.0rc1 which has a known issue.
204+
# See https://github.com/grpc/grpc/pull/30642
205+
session.install("--pre", "grpcio!=1.49.0rc1")
204206

205207
session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints)
206208

@@ -407,7 +409,8 @@ def prerelease_deps(session):
407409
# dependency of grpc
408410
"six",
409411
"googleapis-common-protos",
410-
"grpcio",
412+
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
413+
"grpcio!=1.49.0rc1",
411414
"grpcio-status",
412415
"google-api-core",
413416
"proto-plus",

samples/instanceadmin/instanceadmin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def run_instance_operations(project_id, instance_id, cluster_id):
7474
# Create instance with given options
7575
operation = instance.create(clusters=[cluster])
7676
# Ensure the operation completes.
77-
operation.result(timeout=60)
77+
operation.result(timeout=240)
7878
print("\nCreated instance: {}".format(instance_id))
7979
# [END bigtable_create_prod_instance]
8080

@@ -159,7 +159,7 @@ def add_cluster(project_id, instance_id, cluster_id):
159159
else:
160160
operation = cluster.create()
161161
# Ensure the operation completes.
162-
operation.result(timeout=120)
162+
operation.result(timeout=240)
163163
print("\nCluster created: {}".format(cluster_id))
164164
# [END bigtable_create_cluster]
165165

samples/metricscaler/metricscaler_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def instance():
7878
default_storage_type=storage_type,
7979
)
8080
operation = instance.create(clusters=[cluster])
81-
response = operation.result(240)
81+
response = operation.result(480)
8282
print(f"Successfully created {response.name}")
8383

8484
# Eventual consistency check

tests/system/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def admin_instance_populated(admin_instance, admin_cluster, in_emulator):
133133
# See: https://cloud.google.com/bigtable/docs/emulator
134134
if not in_emulator:
135135
operation = admin_instance.create(clusters=[admin_cluster])
136-
operation.result(timeout=30)
136+
operation.result(timeout=120)
137137

138138
yield admin_instance
139139

@@ -176,7 +176,7 @@ def data_instance_populated(
176176
serve_nodes=serve_nodes,
177177
)
178178
operation = instance.create(clusters=[cluster])
179-
operation.result(timeout=30)
179+
operation.result(timeout=120)
180180

181181
yield instance
182182

tests/system/test_instance_admin.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _modify_app_profile_helper(
8484
)
8585

8686
operation = app_profile.update(ignore_warnings=ignore_warnings)
87-
operation.result(timeout=60)
87+
operation.result(timeout=120)
8888

8989
alt_profile = instance.app_profile(app_profile_id)
9090
alt_profile.reload()
@@ -163,7 +163,7 @@ def test_instance_create_prod(
163163

164164
operation = instance.create(clusters=[cluster])
165165
instances_to_delete.append(instance)
166-
operation.result(timeout=60) # Ensure the operation completes.
166+
operation.result(timeout=240) # Ensure the operation completes.
167167
assert instance.type_ is None
168168

169169
# Create a new instance instance and make sure it is the same.
@@ -194,7 +194,7 @@ def test_instance_create_development(
194194

195195
operation = instance.create(clusters=[cluster])
196196
instances_to_delete.append(instance)
197-
operation.result(timeout=60) # Ensure the operation completes.
197+
operation.result(timeout=240) # Ensure the operation completes.
198198

199199
# Create a new instance instance and make sure it is the same.
200200
instance_alt = admin_client.instance(alt_instance_id)
@@ -244,7 +244,7 @@ def test_instance_create_w_two_clusters(
244244
)
245245
operation = instance.create(clusters=[cluster_1, cluster_2])
246246
instances_to_delete.append(instance)
247-
operation.result(timeout=120) # Ensure the operation completes.
247+
operation.result(timeout=240) # Ensure the operation completes.
248248

249249
# Create a new instance instance and make sure it is the same.
250250
instance_alt = admin_client.instance(alt_instance_id)
@@ -534,7 +534,7 @@ def test_instance_create_w_two_clusters_cmek(
534534
)
535535
operation = instance.create(clusters=[cluster_1, cluster_2])
536536
instances_to_delete.append(instance)
537-
operation.result(timeout=120) # Ensure the operation completes.
537+
operation.result(timeout=240) # Ensure the operation completes.
538538

539539
# Create a new instance instance and make sure it is the same.
540540
instance_alt = admin_client.instance(alt_instance_id)
@@ -597,7 +597,7 @@ def test_instance_update_display_name_and_labels(
597597
admin_instance_populated.labels = new_labels
598598

599599
operation = admin_instance_populated.update()
600-
operation.result(timeout=60) # ensure the operation completes.
600+
operation.result(timeout=240) # Ensure the operation completes.
601601

602602
# Create a new instance instance and reload it.
603603
instance_alt = admin_client.instance(admin_instance_id, labels={})
@@ -614,7 +614,7 @@ def test_instance_update_display_name_and_labels(
614614
admin_instance_populated.display_name = old_display_name
615615
admin_instance_populated.labels = instance_labels
616616
operation = admin_instance_populated.update()
617-
operation.result(timeout=60) # ensure the operation completes.
617+
operation.result(timeout=240) # Ensure the operation completes.
618618

619619

620620
def test_instance_update_w_type(
@@ -640,12 +640,12 @@ def test_instance_update_w_type(
640640

641641
operation = instance.create(clusters=[cluster])
642642
instances_to_delete.append(instance)
643-
operation.result(timeout=60) # Ensure the operation completes.
643+
operation.result(timeout=240) # Ensure the operation completes.
644644

645645
instance.display_name = None
646646
instance.type_ = enums.Instance.Type.PRODUCTION
647647
operation = instance.update()
648-
operation.result(timeout=60) # ensure the operation completes.
648+
operation.result(timeout=240) # Ensure the operation completes.
649649

650650
# Create a new instance instance and reload it.
651651
instance_alt = admin_client.instance(alt_instance_id)
@@ -679,7 +679,7 @@ def test_cluster_create(
679679
default_storage_type=(enums.StorageType.SSD),
680680
)
681681
operation = cluster_2.create()
682-
operation.result(timeout=60) # Ensure the operation completes.
682+
operation.result(timeout=240) # Ensure the operation completes.
683683

684684
# Create a new object instance, reload and make sure it is the same.
685685
alt_cluster = admin_instance_populated.cluster(alt_cluster_id)
@@ -717,7 +717,7 @@ def test_cluster_create_w_autoscaling(
717717
default_storage_type=(enums.StorageType.SSD),
718718
)
719719
operation = cluster_2.create()
720-
operation.result(timeout=60) # Ensure the operation completes.
720+
operation.result(timeout=240) # Ensure the operation completes.
721721

722722
# Create a new object instance, reload and make sure it is the same.
723723
alt_cluster = admin_instance_populated.cluster(alt_cluster_id)
@@ -749,7 +749,7 @@ def test_cluster_update(
749749
admin_cluster.serve_nodes = new_serve_nodes
750750

751751
operation = admin_cluster.update()
752-
operation.result(timeout=60) # Ensure the operation completes.
752+
operation.result(timeout=240) # Ensure the operation completes.
753753

754754
# Create a new cluster instance and reload it.
755755
alt_cluster = admin_instance_populated.cluster(admin_cluster_id)
@@ -759,7 +759,7 @@ def test_cluster_update(
759759
# Put the cluster back the way it was for the other test cases.
760760
admin_cluster.serve_nodes = serve_nodes
761761
operation = admin_cluster.update()
762-
operation.result(timeout=60) # Ensure the operation completes.
762+
operation.result(timeout=240) # Ensure the operation completes.
763763

764764

765765
def test_cluster_update_w_autoscaling(
@@ -779,7 +779,7 @@ def test_cluster_update_w_autoscaling(
779779
admin_cluster_with_autoscaling.cpu_utilization_percent = new_cpu_utilization_percent
780780

781781
operation = admin_cluster_with_autoscaling.update()
782-
operation.result(timeout=60) # Ensure the operation completes.
782+
operation.result(timeout=240) # Ensure the operation completes.
783783

784784
# Create a new cluster instance and reload it.
785785
alt_cluster = admin_instance_populated.cluster(admin_cluster_id)
@@ -793,7 +793,7 @@ def test_cluster_update_w_autoscaling(
793793
admin_cluster_with_autoscaling.max_serve_nodes = max_serve_nodes
794794
admin_cluster_with_autoscaling.cpu_utilization_percent = cpu_utilization_percent
795795
operation = admin_cluster_with_autoscaling.update()
796-
operation.result(timeout=60) # Ensure the operation completes.
796+
operation.result(timeout=240) # Ensure the operation completes.
797797

798798

799799
def test_cluster_update_w_autoscaling_partial(
@@ -810,7 +810,7 @@ def test_cluster_update_w_autoscaling_partial(
810810
admin_cluster_with_autoscaling.min_serve_nodes = new_min_serve_nodes
811811

812812
operation = admin_cluster_with_autoscaling.update()
813-
operation.result(timeout=60) # Ensure the operation completes.
813+
operation.result(timeout=240) # Ensure the operation completes.
814814

815815
# Create a new cluster instance and reload it.
816816
alt_cluster = admin_instance_populated.cluster(admin_cluster_id)
@@ -827,7 +827,7 @@ def test_cluster_update_w_autoscaling_partial(
827827
admin_cluster_with_autoscaling.max_serve_nodes = max_serve_nodes
828828
admin_cluster_with_autoscaling.cpu_utilization_percent = cpu_utilization_percent
829829
operation = admin_cluster_with_autoscaling.update()
830-
operation.result(timeout=60) # Ensure the operation completes.
830+
operation.result(timeout=240) # Ensure the operation completes.
831831

832832

833833
def test_cluster_disable_autoscaling(
@@ -843,7 +843,7 @@ def test_cluster_disable_autoscaling(
843843
operation = admin_cluster_with_autoscaling.disable_autoscaling(
844844
serve_nodes=serve_nodes
845845
)
846-
operation.result(timeout=60) # Ensure the operation completes.
846+
operation.result(timeout=240) # Ensure the operation completes.
847847

848848
# Create a new cluster instance and reload it.
849849
alt_cluster = admin_instance_populated.cluster(admin_cluster_id)
@@ -859,4 +859,4 @@ def test_cluster_disable_autoscaling(
859859
admin_cluster_with_autoscaling.cpu_utilization_percent = cpu_utilization_percent
860860
admin_cluster_with_autoscaling.serve_nodes = 0
861861
operation = admin_cluster_with_autoscaling.update()
862-
operation.result(timeout=60) # Ensure the operation completes.
862+
operation.result(timeout=240) # Ensure the operation completes.

tests/system/test_table_admin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_table_backup(
293293

294294
# Testing `Backup.create()` method
295295
backup_op = temp_backup.create()
296-
backup_op.result(timeout=30)
296+
backup_op.result(timeout=240)
297297

298298
# Implicit testing of `Backup.delete()` method
299299
backups_to_delete.append(temp_backup)
@@ -346,11 +346,11 @@ def test_table_backup(
346346
)
347347
create_op = alt_instance.create(clusters=[alt_cluster])
348348
instances_to_delete.append(alt_instance)
349-
create_op.result(timeout=30)
349+
create_op.result(timeout=240)
350350

351351
# Testing `restore()`...
352352
restore_op = temp_backup.restore(restored_table_id, alt_instance_id)
353-
restore_op.result(timeout=30)
353+
restore_op.result(timeout=240)
354354
restored_table = alt_instance.table(restored_table_id)
355355
assert restored_table in alt_instance.list_tables()
356356
restored_table.delete()

0 commit comments

Comments
 (0)