You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix testcontainers leak: label containers and clean up orphans
Testcontainers postgres instances were never cleaned up on process exit
(OnceLock statics don't run destructors) or abnormal termination,
accumulating 115+ orphaned containers and 4.77 GB of volumes.
- Label test containers with com.betweenrows.test for identification
- Clean up orphaned labeled containers in pre-commit hook before tests
- Store ContainerAsync in SharedPostgres struct instead of holding via
pending future
0 commit comments