Skip to content

chore: retry flaky tests for exceed administrative requests per minute quota error #1149

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

Merged
merged 5 commits into from
Jun 18, 2020

Conversation

AVaksman
Copy link
Contributor

@AVaksman AVaksman commented Jun 15, 2020

  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Related to #1089, #1090, #1091 issues
Fixes #958

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 15, 2020
@AVaksman AVaksman force-pushed the retry_failes_system_tests branch from 0cb6139 to 5cf9cfc Compare June 16, 2020 14:20
@@ -44,6 +44,24 @@ const spanner = new Spanner({
projectId: process.env.GCLOUD_PROJECT,
apiEndpoint: process.env.API_ENDPOINT,
});
const RETRYOPTIONS: CallOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is pretty trivial, but could this be renamed to GAX_OPTIONS? I'm thinking it might be more clear where it's used to understand the type of object we're providing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, done!

@codecov
Copy link

codecov bot commented Jun 16, 2020

Codecov Report

Merging #1149 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1149   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files          21       21           
  Lines       20925    20925           
  Branches     1153     1153           
=======================================
  Hits        20579    20579           
  Misses        343      343           
  Partials        3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39d8f0c...58e87a7. Read the comment docs.

@AVaksman AVaksman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 17, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 17, 2020
@AVaksman AVaksman marked this pull request as ready for review June 17, 2020 04:15
@@ -44,6 +44,24 @@ const spanner = new Spanner({
projectId: process.env.GCLOUD_PROJECT,
apiEndpoint: process.env.API_ENDPOINT,
});
const GAX_OPTIONS: CallOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks great. Is it possible to add the same logic to the samples tests? The quota issue can happen in both types of tests.

@skuruppu skuruppu merged commit 19bfc61 into googleapis:master Jun 18, 2020
@AVaksman AVaksman deleted the retry_failes_system_tests branch June 19, 2020 13:50
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.

Retry requests in tests where we run out of admin request quota
5 participants