Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue#8261 : Added test cases for InfiniteStreamRecognize class#9498

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
abhasal wants to merge1 commit intoGoogleCloudPlatform:main
base:main
Choose a base branch
Loading
fromabhasal:oss_Test_-InfiniteStreamRecognize

Conversation

abhasal
Copy link

Description

Fixes#8261

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

  • I have followedSample Format Guide
  • pom.xml parent set to latestshared-configuration
  • Appropriate changes to README are included in PR
  • These samples need a newAPI enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updatedenv vars in testing projects set to pass (let us know which ones)
  • Tests pass:mvn clean verifyrequired
  • Lint passes:mvn -P lint checkstyle:checkrequired
  • Static Analysis:mvn -P lint clean compile pmd:cpd-check spotbugs:checkadvisory only
  • This sample adds a new sample directory, and I updated theCODEOWNERS file with the codeowners for this sample
  • This sample adds a newProduct API, and I updated theBlunderbuss issue/PR auto-assigner with the codeowners for this sample
  • [x ] Pleasemerge this PR for me once it is approved

@google-claGoogle CLA
Copy link

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View thisfailed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-labelproduct-auto-labelbot added samplesIssues that are directly related to samples. api: speechIssues related to the Speech-to-Text API. labelsAug 26, 2024
@Sita04Sita04 assignedminherz and unassignedbourgeoisorAug 27, 2024
@minherzminherz added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelSep 3, 2024
@kokoro-teamkokoro-team removed kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelsSep 3, 2024
Copy link
Contributor

@minherzminherz left a comment

Choose a reason for hiding this comment

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

what is an expected running time for this test?
based on lack of test input it looks like the code sample will wait for input and get terminated after 5 minutes.

Comment on lines +45 to +51
System.setErr(new PrintStream(stderr));
}

@After
public void tearDown() {
System.setOut(originalStdout);
System.setErr(originalStderr);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: what is a reason to intercept Stderr if the test validates only Stdout?

@minherzminherz marked this pull request as draftSeptember 3, 2024 18:44
@minherz
Copy link
Contributor

I converted PR to draft because it does not pass automatic testing. Please, ensure that all tests pass before submitting it to the review.
It seems that the execution time of the test is bound by 5 min waiting for microphone input that is hard-coded in the code sample. If my interpretation is correct, the code sample and test should be modified to bring the running time of the test under 1 min.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@minherzminherzminherz requested changes

@yoshi-approveryoshi-approverAwaiting requested review from yoshi-approveryoshi-approver is a code owner

Requested changes must be addressed to merge this pull request.

Assignees

@minherzminherz

Labels
api: speechIssues related to the Speech-to-Text API.samplesIssues that are directly related to samples.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Test needed for speech/src/main/java/com/example/speech/InfiniteStreamRecognize.java
4 participants
@abhasal@minherz@bourgeoisor@kokoro-team

[8]ページ先頭

©2009-2025 Movatter.jp