Repository navigation
Sweep stale test databases once per test process in pgtest - #66
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 36 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue was identified. The testing toolchain should still be run as a normal pre-merge check. Pre-merge checks |
|
|
Closes #65
What
pgtest.NewSweptsweeps the stale test databases of a server at most once per test process and per address, then hands out a fresh database asNewdoes. Tests that start while the sweep runs wait for it.Sweepneeds, is logged on the test that ran it, and every test still gets its database. An age of zero or less fails the test.Sweepkeeps a database in use or younger than the age, and skips one another sweep dropped first.Why
Downstream applications need their stale test databases cleared without a hand step, from one place instead of a copy in each application.
Testing Instructions
Run the testing toolchain.
Summary by CodeRabbit