Skip to content

Commit f7ebee0

Browse files
chore(python): exclude grpcio==1.49.0rc1 in tests [autoapprove] (#436)
* chore(python): exclude `grpcio==1.49.0rc1` in tests Source-Link: googleapis/synthtool@c4dd595 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ce3c1686bc81145c81dd269bd12c4025c6b275b22d14641358827334fddb1d72 * 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 fa1fd35 commit f7ebee0

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

packages/google-cloud-translate/.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
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:ce3c1686bc81145c81dd269bd12c4025c6b275b22d14641358827334fddb1d72
17+
# created: 2022-08-29T17:28:30.441852797Z

packages/google-cloud-translate/.kokoro/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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 \

packages/google-cloud-translate/noxfile.py

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

190190
# Use pre-release gRPC for system tests.
191-
session.install("--pre", "grpcio")
191+
# Exclude version 1.49.0rc1 which has a known issue.
192+
# See https://github.com/grpc/grpc/pull/30642
193+
session.install("--pre", "grpcio!=1.49.0rc1")
192194

193195
session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints)
194196

@@ -368,7 +370,8 @@ def prerelease_deps(session):
368370
# dependency of grpc
369371
"six",
370372
"googleapis-common-protos",
371-
"grpcio",
373+
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
374+
"grpcio!=1.49.0rc1",
372375
"grpcio-status",
373376
"google-api-core",
374377
"proto-plus",

packages/google-cloud-translate/tests/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_detect_language(self):
6666
values = ["takoy", "s'il vous plait"]
6767
detections = Config.CLIENT_V2.detect_language(values)
6868
self.assertEqual(len(values), len(detections))
69-
self.assertEqual(detections[0]["language"], "ru")
69+
self.assertEqual(detections[0]["language"], "ru-Latn")
7070
self.assertEqual(detections[1]["language"], "fr")
7171

7272
@skip_for_mtls

0 commit comments

Comments
 (0)