lab icon indicating copy to clipboard operation
lab copied to clipboard

Track leaking timers, sockets, open files, child processes, etc

Open kanongil opened this issue 3 years ago • 2 comments

What problem are you trying to solve?

Track any leaking open file descriptors. Currently this is done in inert through a platform-specific hack.

Do you have a new or modified API suggestion to solve the problem?

Add a new option / flag, that will make the tests fail on any such leak. Both at an individual test level, and at a global level, similar to the already integrated leak detection.

Besides making the inert tests simpler, and platform agnostic, this feature can help expose issues in existing code and tests.

See wtfnode for a way to do this.

kanongil avatar Aug 20 '20 09:08 kanongil

I would personally support taking a PR for this feature request as described 👍

devinivy avatar Sep 02 '20 02:09 devinivy

I suspect an implementation would consist of 2 parts. A new module that enables the tracking, and a subsequent integration into lab.

kanongil avatar Sep 02 '20 15:09 kanongil