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

fix: use backoff exception to gracefully exit and fail #8257

Merged
merged 8 commits into from
Aug 16, 2022
Merged

Conversation

dandhlee
Copy link
Collaborator

@dandhlee dandhlee commented Aug 12, 2022

Description

The current retry is making tests fail out. Instead of indefinitely waiting, retrying with a specific number should help determine whether test passes / fails.

Unfortunately I can't get the test to pass, but happy to incorporate ideas to help get this test passing. For now, they no longer will be timing out after ~5 hours, instead they'll fail or pass immediately.

Fixes #8219. Towards #7277.

Checklist

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Aug 12, 2022
# I was not able to track all the exception types that can be raised from this block
# of code.
@backoff.on_exception(backoff.expo,
Exception,
Copy link
Collaborator

Choose a reason for hiding this comment

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

could consider a tuple of multiple exceptions as an alternative to the generic

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done! Changed to include ones I could find for now, and additional ones could be easily added in the future.

@dandhlee dandhlee marked this pull request as ready for review August 13, 2022 01:23
@dandhlee dandhlee requested review from m-strzelczyk and a team as code owners August 13, 2022 01:23
@dandhlee dandhlee linked an issue Aug 13, 2022 that may be closed by this pull request
@dandhlee dandhlee assigned m-strzelczyk and unassigned kurtisvg Aug 13, 2022
@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 14, 2022
@m-strzelczyk
Copy link
Contributor

I think there is some curse on this issue, we're struggling with this for months now 🤣

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 16, 2022
@dandhlee
Copy link
Collaborator Author

It has been a tough one to crack indeed :(

Copy link
Contributor

@m-strzelczyk m-strzelczyk left a comment

Choose a reason for hiding this comment

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

It won't get worse I guess ;)

@dandhlee
Copy link
Collaborator Author

Tests are expected to fail but admin merging to help tests get unblocked.

@dandhlee dandhlee merged commit a86d380 into main Aug 16, 2022
@dandhlee dandhlee deleted the dandhlee-patch-1 branch August 16, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kokoro Infrastructure Failing on Periodic tests
6 participants