Issue and Steps to Reproduce
Running pytest locally leaks file descriptors for TailableProc stdout, read/write handles opened in the __init__() constructor. This resulted in sporadic failures and was effectively addressed by raising the ulimit. Current testing strategy is:
make pytest
- In a 2nd terminal window get the process idea with
ps aux | grep pytest
- In a 3rd terminal window, observe the number of opened files grow with
watch -n 1 'lsof -p ${PID} | wc
- In a 4th terminal window, periodically run
lsof -p ${PID} | less +G to see the file descriptors grow for each test.
lsof reports four file descriptors hanging around for each test which are initialized in the TailableProc constructor here.
getinfo output
N/A
Issue and Steps to Reproduce
Running pytest locally leaks file descriptors for TailableProc
stdout, read/write handles opened in the__init__()constructor. This resulted in sporadic failures and was effectively addressed by raising theulimit. Current testing strategy is:make pytestps aux | grep pytestwatch -n 1 'lsof -p ${PID} | wclsof -p ${PID} | less +Gto see the file descriptors grow for each test.lsofreports four file descriptors hanging around for each test which are initialized in theTailableProcconstructor here.getinfooutputN/A