zuul/zuul/lib
Tobias Henkel 3d9f47be1d
Properly close streams
When running test cases in the debugger it spits out resource warnings
about non-closed streams [1]. Explicitly closing the streams of the
subprocesses and log streamer fixes this warning. Maybe this even
solves the memory leak we're currently seeing in the executors.

[1] Trace:
/zuul/executor/server.py:1894: ResourceWarning: unclosed file <_io.BufferedReader name=60>
  self.proc = None
ResourceWarning: Enable tracemalloc to get the object allocation traceback

/zuul/executor/server.py:124: ResourceWarning: unclosed file <_io.BufferedReader name=11>
  stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

Change-Id: I65f191dc2e50f9c84f5bf6a3967d768d7ebe6b04
2019-02-03 17:16:44 +01:00
..
__init__.py Initial commit. 2012-05-29 14:49:32 -07:00
artifacts.py Add provides/requires support 2019-01-30 14:07:42 -08:00
commandsocket.py Clean up command sockets on stop 2019-01-07 10:02:33 -05:00
config.py Add type check for zuul conf 2018-12-10 19:24:50 +08:00
connections.py Fix zuul-web sql connections 2018-06-06 16:13:40 -07:00
dependson.py Support cross-source dependencies 2018-01-16 09:37:40 -08:00
encryption.py Cache decryption results 2018-07-15 16:42:02 +02:00
filecomments.py Map file comment line numbers 2018-08-15 14:38:03 -07:00
fingergw.py Fix secondary exception in fingergw 2019-01-22 15:35:44 -08:00
gear_utils.py Add support for zones in executors 2018-11-29 13:05:20 -05:00
gearserver.py Ansible launcher: add private gearman function 2016-06-13 09:33:00 -07:00
jsonutil.py JSON serialize mappingproxy types 2018-04-28 14:20:27 +00:00
keystorage.py Serve project SSH keys and document 2018-09-04 15:42:43 -07:00
log_streamer.py Properly close streams 2019-02-03 17:16:44 +01:00
queue.py Merge tenant reconfiguration events 2017-10-18 15:41:14 -07:00
statsd.py dict_object.keys() is not required for *in* operator 2018-12-03 12:04:55 +05:30
streamer_utils.py Remove unecessary shebang and exec bit 2018-07-26 07:12:24 +00:00
yamlutil.py Use mypy to do static type checking 2017-07-27 14:34:07 -05:00