-
Notifications
You must be signed in to change notification settings - Fork 105
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: delete old instances then create new instance #955
Conversation
Totally not tested yet, let's see if this runs. |
I don't think this would work. const INSTANCE_ID = process.env.SPANNERTEST_INSTANCE || `test-instance-${date}`;
const INSTANCE_ALREADY_EXISTS = !!process.env.SPANNERTEST_INSTANCE; |
It worked! Except for the fact that a backup couldn't be completed within the test timeout period :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. It deletes all outdated instances first. It makes sense. I misunderstood how the deletion of instances work. I thought it only delete the current testing instance. LGTM.
Codecov Report
@@ Coverage Diff @@
## master #955 +/- ##
=======================================
Coverage 98.20% 98.20%
=======================================
Files 21 21
Lines 19959 19959
Branches 1069 1069
=======================================
Hits 19601 19601
Misses 355 355
Partials 3 3 Continue to review full report at Codecov.
|
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #954 🦕