esc-reporting/esc-collect.py |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 148c664f39725f56811ca20237c1456dbc17c5e0
Author:     Xisco Fauli <[email protected]>
AuthorDate: Wed Sep 20 10:50:09 2023 +0200
Commit:     Xisco Fauli <[email protected]>
CommitDate: Wed Sep 20 10:50:09 2023 +0200

    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

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:

Reply via email to