8000 test: improve cleanup to prevent RESOURCE_EXHAUSTED error by larkee · Pull Request #195 · googleapis/python-spanner · GitHub
[go: up one dir, main page]

Skip to content

test: improve cleanup to prevent RESOURCE_EXHAUSTED error #195

8000
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 4 commits into from
Dec 17, 2020

Conversation

larkee
Copy link
Contributor
@larkee larkee commented Dec 16, 2020

Currently, there is no guarantee that the resources created during the system tests are cleaned up as the jobs running the tests can be cancelled before finishing. This means that over time the testing project runs out of resources due to undeleted instances which causes all system tests runs to fail.

This PR adds labels to the instance created for the test so that any instance created for a test that is older than an hour can be identified and deleted. This will keep the testing project from running out of resources over time.

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner API. label Dec 16, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 16, 2020
@larkee larkee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 16, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 16, 2020
@larkee larkee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 16, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 16, 2020
@larkee larkee marked this pull request as ready for review December 16, 2020 02:48
@larkee larkee requested a review from a team as a code owner December 16, 2020 02:48
@larkee larkee requested a review from IlyaFaer December 16, 2020 02:48
Copy link
Contributor
@IlyaFaer IlyaFaer left a comment

Choose a reason for hiding this comment

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

Looks okay to me. Thanks!

@larkee larkee merged commit 2b74f9c into googleapis:master Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0