Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate: use unique gcs folders for batch translate tests #2053

Merged
merged 4 commits into from
Feb 5, 2020

Conversation

nnegrey
Copy link
Contributor

@nnegrey nnegrey commented Feb 4, 2020

No description provided.

@nnegrey nnegrey requested a review from a team February 4, 2020 18:54
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 4, 2020
@nnegrey
Copy link
Contributor Author

nnegrey commented Feb 4, 2020

Fix: #2051

@@ -137,7 +139,7 @@ public void testBatchTranslateTextWithGlossaryAndModel()
"en",
"ja",
INPUT_URI,
"gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/",
"gs://" + PROJECT_ID + "/" + PREFIX_PATH,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok - but as I look at this, I wonder if String.format should be used as being a bit clearer, I've decided that it's just longer, but I wish we'd get rid of all the string contraction.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to use a variable.

private static final String OUTPUT_URI =
          String.format("gs://%s/%s/%s/", PROJECT_ID, PREFIX, UUID.randomUUID());

@nnegrey nnegrey merged commit deb71c6 into master Feb 5, 2020
@nnegrey nnegrey deleted the translate-test-fixes branch February 5, 2020 20:19
Shabirmean pushed a commit that referenced this pull request Nov 17, 2022
…2053)

* translate: use unique gcs folders for batch translate tests

* update based on feedback

* fix typo
Shabirmean pushed a commit that referenced this pull request Nov 18, 2022
…2053)

* translate: use unique gcs folders for batch translate tests

* update based on feedback

* fix typo
Shabirmean pushed a commit that referenced this pull request Nov 18, 2022
…2053)

* translate: use unique gcs folders for batch translate tests

* update based on feedback

* fix typo
anguillanneuf pushed a commit that referenced this pull request Dec 5, 2022
…2053)

* translate: use unique gcs folders for batch translate tests

* update based on feedback

* fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants