Skip to content

Commit

Permalink
chore(python): exclude grpcio==1.49.0rc1 in tests [autoapprove] (#436)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Aug 30, 2022
1 parent fa1fd35 commit f7ebee0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-translate/.github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:60a63eddf86c87395b4bb394fdddfe30f84a7726ee8fe0b758ea132c2106ac75
# created: 2022-08-24T19:47:37.288818056Z
digest: sha256:ce3c1686bc81145c81dd269bd12c4025c6b275b22d14641358827334fddb1d72
# created: 2022-08-29T17:28:30.441852797Z
6 changes: 3 additions & 3 deletions packages/google-cloud-translate/.kokoro/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ cryptography==37.0.4 \
# via
# gcp-releasetool
# secretstorage
distlib==0.3.5 \
--hash=sha256:a7f75737c70be3b25e2bee06288cec4e4c221de18455b2dd037fe2a795cab2fe \
--hash=sha256:b710088c59f06338ca514800ad795a132da19fda270e3ce4affc74abf955a26c
distlib==0.3.6 \
--hash=sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46 \
--hash=sha256:f35c4b692542ca110de7ef0bea44d73981caeb34ca0b9b6b2e6d7790dda8f80e
# via virtualenv
docutils==0.19 \
--hash=sha256:33995a6753c30b7f577febfc2c50411fec6aac7f7ffeb7c4cfe5991072dcf9e6 \
Expand Down
7 changes: 5 additions & 2 deletions packages/google-cloud-translate/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def unit(session):
def install_systemtest_dependencies(session, *constraints):

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

session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints)

Expand Down Expand Up @@ -368,7 +370,8 @@ def prerelease_deps(session):
# dependency of grpc
"six",
"googleapis-common-protos",
"grpcio",
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
"grpcio!=1.49.0rc1",
"grpcio-status",
"google-api-core",
"proto-plus",
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-translate/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_detect_language(self):
values = ["takoy", "s'il vous plait"]
detections = Config.CLIENT_V2.detect_language(values)
self.assertEqual(len(values), len(detections))
self.assertEqual(detections[0]["language"], "ru")
self.assertEqual(detections[0]["language"], "ru-Latn")
self.assertEqual(detections[1]["language"], "fr")

@skip_for_mtls
Expand Down

0 comments on commit f7ebee0

Please sign in to comment.