@@ -152,12 +152,20 @@ func runTests(register func(registry.Registry), filter *registry.TestFilter) err
152
152
ctx , cancel := context .WithCancel (context .Background ())
153
153
defer cancel ()
154
154
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
+ }
161
169
162
170
// We allow roachprod users to set a default auth-mode through the
163
171
// ROACHPROD_DEFAULT_AUTH_MODE env var. However, roachtests shouldn't
0 commit comments