From f7157ceea83b85f40700fb395fe68c096e879d36 Mon Sep 17 00:00:00 2001 From: Anthony Polito Date: Wed, 12 May 2021 00:23:12 +0000 Subject: [PATCH] add a big of debugging info to figure out more abour bot_update failures Change-Id: If324a6af154c4ded3b4c8d5e07a4740722318a59 BUG:1206377 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2889824 Auto-Submit: Anthony Polito Reviewed-by: Josip Sokcevic Commit-Queue: Josip Sokcevic --- recipes/recipe_modules/bot_update/resources/bot_update.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes/recipe_modules/bot_update/resources/bot_update.py b/recipes/recipe_modules/bot_update/resources/bot_update.py index 64f6b5280..808e606d3 100755 --- a/recipes/recipe_modules/bot_update/resources/bot_update.py +++ b/recipes/recipe_modules/bot_update/resources/bot_update.py @@ -212,7 +212,11 @@ def call(*args, **kwargs): # pragma: no cover hanging_cr = False while True: for observer in observers: - observer.poke() + try: + observer.poke() + except: + print('failed to poke, active thread count is %d' % threading.active_count()) + raise buf = proc.stdout.read(BUF_SIZE) if not buf: break