GeezerVison is showing github.com — Revert "fixing translate-with-glossary bug (#2323)" by beccasaurus · Pull Request #2326 · GoogleCloudPlatform/python-docs-samples
Conversation
beccasaurus
commented
Aug 8, 2019
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This reverts commit 1cf4d1f.
This reverts this merged PR:
#2323
I got a notification the tests failed after this was merged:
eta_snippets_test.py::test_translate_text FAILED [ 6%]
beta_snippets_test.py::test_batch_translate_text PASSED [ 12%]
beta_snippets_test.py::test_detect_language PASSED [ 18%]
beta_snippets_test.py::test_list_languages PASSED [ 25%]
beta_snippets_test.py::test_list_languages_with_target PASSED [ 31%]
beta_snippets_test.py::test_create_glossary PASSED [ 37%]
beta_snippets_test.py::test_get_glossary PASSED [ 43%]
beta_snippets_test.py::test_list_glossary PASSED [ 50%]
beta_snippets_test.py::test_translate_text_with_glossary PASSED [ 56%]
beta_snippets_test.py::test_delete_glossary PASSED [ 62%]
quickstart_test.py::test_quickstart PASSED [ 68%]
snippets_test.py::test_detect_language PASSED [ 75%]
snippets_test.py::test_list_languages PASSED [ 81%]
snippets_test.py::test_list_languages_with_target PASSED [ 87%]
snippets_test.py::test_translate_text PASSED [ 93%]
snippets_test.py::test_translate_utf8 FAILED [100%]
=================================== FAILURES ===================================
_____________________________ test_translate_text ______________________________
Traceback (most recent call last):
File "/home/travis/build/GoogleCloudPlatform/python-docs-samples/translate/cloud-client/beta_snippets_test.py", line 66, in test_translate_text
assert 'Zdravo svet' in out
AssertionError: assert 'Zdravo svet' in 'Translated Text: translated_text: "Pozdrav svijetu"\n\n'
_____________________________ test_translate_utf8 ______________________________
Traceback (most recent call last):
File "/home/travis/build/GoogleCloudPlatform/python-docs-samples/translate/cloud-client/snippets_test.py", line 49, in test_translate_utf8
assert u'I like pineapples.' in out
AssertionError: assert 'I like pineapples.' in 'Text: 나는 파인애플을 좋아한다.\nTranslation: I like pineapple\nDetected source language: ko\n'
--------------------------- Captured stdout teardown ---------------------------
Deleted: projects/python-docs-samples-tests/locations/us-central1/glossaries/must-start-with-letters-21d8cbd4-ba2e-11e9-90a2-42010a140244
- generated xml file: /home/travis/build/GoogleCloudPlatform/python-docs-samples/translate/cloud-client/sponge_log.xml -
==================== 2 failed, 14 passed in 175.01 seconds =====================
The PR was green and therefore appeared safe to merge.
@nnegrey Any chance you could take a closer look w/ @ecrowdus?
In the meantime, this will revert the failing change, although it looks like a second translation test failed too 😕 ~ Use this PR if useful
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
It looks like tests un-related to those reverted changes are failing
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
crowdus
commented
Aug 9, 2019
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
It looks like tests un-related to those reverted changes are failing
My PR's changes didn't cause any tests to fail; the tests were failing before I changed anything. I assumed that a Python2/Python3 distinction was causing them to fail for me locally, so I didn't mention it to anyone (which in retrospect I shouldn't have done). I'm also guessing that the product team changed something that changed the behavior of the API but Travis didn't catch it because it only builds for a PR, and this PR is the first time that anyone has changed the samples since their initial commit.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Going to close this as a separate PR has resolved these failing tests.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
nnegrey
Awaiting requested review from nnegrey
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.