TOOLS-4148 Add a BeforeTest hook for integration suites that drops all existing DBs#980
Conversation
This was referenced Apr 1, 2026
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ad17d4d to
65024ea
Compare
323143c to
e8844d7
Compare
65024ea to
ad0afdf
Compare
This was referenced Apr 8, 2026
e8844d7 to
9842ff5
Compare
ad0afdf to
79c4323
Compare
This was referenced Apr 8, 2026
9842ff5 to
4af151d
Compare
79c4323 to
144980a
Compare
834519c to
c0b51fa
Compare
4af151d to
b907c8a
Compare
fb5a1b5 to
098c623
Compare
c0b51fa to
cd10783
Compare
BeforeTest hook for integration suites that drops all existing DBsBeforeTest hook for integration suites that drops all existing DBs
…g DBs This ensures that the cluster is free of stuff created by previous tests.
cd10783 to
bd240f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This ensures that the cluster is free of stuff created by previous tests. But this means that we must run these tests sequentially, so that the
BeforeTesthook doesn't delete the data for another test running at the same time.This PR also removes a lot of ad-hoc cleanup that was being done in individual test methods.