zuul/zuul/executor
Tobias Henkel f5c6e37c84
Fix test race with Watchdog thread still running
In some rare occasions the watchdog thread is still sleeping [1] while
a test case is already finished. In this case the running thread
validation fails the test. This can be solved by not sleeping for a
fixed amount of time but instead wait the same time for a stop
event. This makes the thread stop immediately when it is asked to stop

[1] Trace
  File "/usr/lib/python3.5/threading.py", line 882, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/zuul/src/git.openstack.org/openstack-infra/zuul/zuul/executor/server.py", line 185, in _run
    time.sleep(10)

Change-Id: I45eba5bf8f46de078fd8093719ef84e5229eafeb
2019-03-06 20:01:26 +01:00
..
sensors Add cgroup support to ram sensor 2018-12-18 22:25:27 +01:00
__init__.py Rename zuul-launcher to zuul-executor 2017-03-15 12:21:24 -04:00
client.py Add provides/requires support 2019-01-30 14:07:42 -08:00
server.py Fix test race with Watchdog thread still running 2019-03-06 20:01:26 +01:00