From 148c664f39725f56811ca20237c1456dbc17c5e0 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 20 Sep 2023 10:50:09 +0200 Subject: esc-collect: Dump bugzilla data first For some reason, esc-collect might stop working before dumping the bugzilla data, causing the following scripts to use obsolete data. This is causing the automated script to send incorrect comments in Bugzilla, annyoing people to retest their bugs several times Change-Id: Idbf011be926218130a142b4658f3ea085166216e --- esc-reporting/esc-collect.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/esc-reporting/esc-collect.py b/esc-reporting/esc-collect.py index 95c9ecc4..2ad9cc36 100755 --- a/esc-reporting/esc-collect.py +++ b/esc-reporting/esc-collect.py @@ -701,6 +701,11 @@ def runCfg(platform): def runBuild(cfg): + try: + bugzillaData = get_bugzilla(cfg) + except Exception as e: + common.util_errorMail(cfg, 'esc-collect', 'ERROR: get_bugzilla failed with ' + str(e)) + pass try: gerritData = get_gerrit(cfg) except Exception as e: @@ -716,11 +721,6 @@ def runBuild(cfg): except Exception as e: common.util_errorMail(cfg, 'esc-collect', 'ERROR: get_openhub failed with ' + str(e)) pass - try: - bugzillaData = get_bugzilla(cfg) - except Exception as e: - common.util_errorMail(cfg, 'esc-collect', 'ERROR: get_bugzilla failed with ' + str(e)) - pass try: ESCData = get_esc_bugzilla(cfg) except Exception as e: -- cgit v1.2.3