diff options
author | Zuul <zuul@review.opendev.org> | 2020-01-24 17:49:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-01-24 17:49:52 +0000 |
commit | 63dbf3476df4d78338a78eef34a1c8c6e899d416 (patch) | |
tree | d25bea709960750cbf8b19d504625bdc42b29413 /tests | |
parent | 5aa395dc7add435a35460ee877634ef6cb1f54e7 (diff) | |
parent | c8199b2d8060ebbb4af17f5c7f83b8c475fbb3d4 (diff) | |
download | zuul-63dbf3476df4d78338a78eef34a1c8c6e899d416.tar.gz |
Merge "Whitelist debug threads used by visual studio code"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/base.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/base.py b/tests/base.py index 61af0778a..334dcb834 100644 --- a/tests/base.py +++ b/tests/base.py @@ -3751,19 +3751,22 @@ class ZuulTestCase(BaseTestCase): self.printHistory() # We whitelist watchdog threads as they have relatively long delays # before noticing they should exit, but they should exit on their own. - # Further the pydevd threads also need to be whitelisted so debugging - # e.g. in PyCharm is possible without breaking shutdown. whitelist = ['watchdog', - 'pydevd.CommandThread', - 'pydevd.Reader', - 'pydevd.Writer', 'socketserver_Thread', 'GerritWebServer', ] - # Ignore Kazoo TreeCache threads that start with "Thread-" + # Ignore threads that start with + # * Thread- : Kazoo TreeCache + # * Dummy- : Seen during debugging in VS Code + # * pydevd : Debug helper threads of pydevd (used by many IDEs) + # * ptvsd : Debug helper threads used by VS Code threads = [t for t in threading.enumerate() if t.name not in whitelist - and not t.name.startswith("Thread-")] + and not t.name.startswith("Thread-") + and not t.name.startswith('Dummy-') + and not t.name.startswith('pydevd.') + and not t.name.startswith('ptvsd.') + ] if len(threads) > 1: log_str = "" for thread_id, stack_frame in sys._current_frames().items(): |