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

chore: Re-enable parallel showcase tests #1828

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lqiu96
Copy link
Contributor

@lqiu96 lqiu96 commented Jul 5, 2023

Thank you for opening a Pull Request! For general contributing guidelines, please refer to contributing guide

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Following up on the conversation at: #1669 (comment)

Seen a lot more stability with the showcase tests and I think we can re-enable them.

@lqiu96 lqiu96 requested a review from a team as a code owner July 5, 2023 14:20
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Jul 5, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jul 5, 2023

[gapic-generator-java-root] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@lqiu96
Copy link
Contributor Author

lqiu96 commented Jul 5, 2023

Huh.. Seems like we're seeing a DEADLINE_EXCEEDED exception when running the test in parallel:

Error:  Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.174 s <<< FAILURE! - in com.google.showcase.v1beta1.it.ITCrud
Error:  com.google.showcase.v1beta1.it.ITCrud.testHttpJson_Create  Time elapsed: 5.032 s  <<< ERROR!
com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 4.994418288s. [closed=[], open=[[remote_addr=localhost/127.0.0.1:7469]]]

@lqiu96
Copy link
Contributor Author

lqiu96 commented Jul 5, 2023

@burkedavison @blakeli0 Adding parallel tests back for showcase re-introduced a flaky test (SonarCloud failed with the exception).

Perhaps we can reduce the forkCount value? Or keep it as sequential? WDYT?

@burkedavison
Copy link
Contributor

Perhaps we can reduce the forkCount value? Or keep it as sequential? WDYT?

Do we know if it's our client or the Showcase server that is having trouble with the parallel tests?

If it's the server, I'd suggest a ticket in the gapic-showcase repo and keeping our tests sequential for now.

If it's our client, it'd be nice to have a better understanding of the issue.

@lqiu96
Copy link
Contributor Author

lqiu96 commented Jul 5, 2023

Perhaps we can reduce the forkCount value? Or keep it as sequential? WDYT?

Do we know if it's our client or the Showcase server that is having trouble with the parallel tests?

If it's the server, I'd suggest a ticket in the gapic-showcase repo and keeping our tests sequential for now.

If it's our client, it'd be nice to have a better understanding of the issue.

I haven't been able to do a deep dive so I can't say this is the problem for sure, but I'm fairly certain it's a limitation from the server. The flaky test issues started to appear after adding a bunch of the unary deadline showcase tests which spammed the server with a ton of requests in a short amount of time. The past few weeks have been stable for the showcase tests and I think having sequential tests helped.

I've talked to Noah about this and he's mentioned that this may be a limitation of the server as it was never built for performance and was never tested to handle lots of requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants