Skip to content

Commit 9678bad

Browse files
committed
roachtest: disable leak checker
See #148196 for rationale.
1 parent 2d73067 commit 9678bad

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

pkg/cmd/roachtest/run.go

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,20 @@ func runTests(register func(registry.Registry), filter *registry.TestFilter) err
152152
ctx, cancel := context.WithCancel(context.Background())
153153
defer cancel()
154154
CtrlC(ctx, l, cancel, cr)
155-
// Install goroutine leak checker and run it at the end of the entire test
156-
// run. If a test is leaking a goroutine, then it will likely be still around.
157-
// We could diff goroutine snapshots before/after each executed test, but that
158-
// could yield false positives; e.g., user-specified test teardown goroutines
159-
// may still be running long after the test has completed.
160-
defer leaktest.AfterTest(l)()
155+
if false {
156+
// Install goroutine leak checker and run it at the end of the entire test
157+
// run. If a test is leaking a goroutine, then it will likely be still around.
158+
// We could diff goroutine snapshots before/after each executed test, but that
159+
// could yield false positives; e.g., user-specified test teardown goroutines
160+
// may still be running long after the test has completed.
161+
//
162+
// NB: we currently don't do this since it's been firing for a long time and
163+
// nobody has cleaned up the leaks. While there are leaks, the leaktest
164+
// output pollutes stdout and makes roachtest annoying to use.
165+
//
166+
// Tracking issue: https://github.com/cockroachdb/cockroach/issues/148196
167+
defer leaktest.AfterTest(l)()
168+
}
161169

162170
// We allow roachprod users to set a default auth-mode through the
163171
// ROACHPROD_DEFAULT_AUTH_MODE env var. However, roachtests shouldn't

0 commit comments

Comments
 (0)