Observe that the number of open file descriptors given by lsof increases throughout the test, with about one new temporary directory sticking around per test.
objgraph indicates no more than one TemporaryDirectory objects on the heap
The main open fd's for test_config_types are temporary files/directories, while the main open fd's for the dask tests are pipes, implying that something different is going on between them.
Only one or two file descriptors are being leaked per test_config_types test.
The fd's left open aren't the temporary directories created in the InstanceManagers of graphql_context_test_suite.
Places this has surfaced:
pytest python_modules/libraries/dagster-dask/dagster_dask_tests/test_execute.py
(but I cannot)It's not clear that these are all related.
Here's one way to reproduce:
To observe file descriptors leaking, run this in one terminal:
and repeatedly run this in another terminal:
Observe that the number of open file descriptors given by lsof increases throughout the test, with about one new temporary directory sticking around per test.