-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(tpu): add tpu queued resources startup script sample #9604
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
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
tpu/src/main/java/tpu/CreateQueuedResourceWithStartupScript.java
Outdated
Show resolved
Hide resolved
tpu/src/main/java/tpu/CreateQueuedResourceWithStartupScript.java
Outdated
Show resolved
Hide resolved
tpu/src/main/java/tpu/CreateQueuedResourceWithStartupScript.java
Outdated
Show resolved
Hide resolved
tpu/src/main/java/tpu/CreateQueuedResourceWithStartupScript.java
Outdated
Show resolved
Hide resolved
tpu/src/test/java/tpu/CreateQueuedResourceWithStartupScriptIT.java
Outdated
Show resolved
Hide resolved
tpu/src/test/java/tpu/CreateQueuedResourceWithStartupScriptIT.java
Outdated
Show resolved
Hide resolved
minherz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, fix the "delete" code sample. currently it cannot be effectively tested.
there are a couple of minor comments for your attention.
minherz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. thank you for hard work.
| ByteArrayOutputStream bout = new ByteArrayOutputStream(); | ||
| System.setOut(new PrintStream(bout)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: why do you need this? it should be OK to print to stdout during the test unless you need to intercept this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an additional check that the code is working correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The validation that you reference is not exact. Additionally, it is based on the non-functional status. Such validations result in transient errors.
I am sure we discussed the guidelines that require not using stdout in test assertions in the past.
I would appreciate it if you will be more attentive to the guidelines and there will be no need to repeat the same review feedback in multiple submissions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Deleted verification
…dPlatform#9604) * Added tpu_queued_resources_network sample * Fixed samples and tests * Fixed tests * Changed CODEOWNERS * Split samples, fixed startup script path * Fixed style * Added tag * Added header * Implemented tpu_queued_resources_startup_script sample, created test * Fixed test, deleted cleanup method * Fixed test, deleted cleanup method * Fixed test * Fixed naming * Changed zone * Fixed tests * Fixed tests * Increased timeout * Fixed code as requested in comments * Deleted settings * Fixed test
Description
Python sample -> GoogleCloudPlatform/python-docs-samples#12716
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
pom.xmlparent set to latestshared-configurationmvn clean verifyrequiredmvn -P lint checkstyle:checkrequiredmvn -P lint clean compile pmd:cpd-check spotbugs:checkadvisory only