Title: [275671] trunk/Tools
Revision
275671
Author
[email protected]
Date
2021-04-08 13:02:01 -0700 (Thu, 08 Apr 2021)

Log Message

EWS should keep working when Bugzilla is down
https://bugs.webkit.org/show_bug.cgi?id=224336

Reviewed by Jonathan Bedard.

* CISupport/ews-build/steps.py:
(BugzillaMixin.get_patch_json):
(BugzillaMixin.get_bug_json):

Modified Paths

Diff

Modified: trunk/Tools/CISupport/ews-build/steps.py (275670 => 275671)


--- trunk/Tools/CISupport/ews-build/steps.py	2021-04-08 19:05:31 UTC (rev 275670)
+++ trunk/Tools/CISupport/ews-build/steps.py	2021-04-08 20:02:01 UTC (rev 275671)
@@ -572,7 +572,11 @@
         patch = self.fetch_data_from_url_with_authentication(patch_url)
         if not patch:
             return None
-        patch_json = patch.json().get('attachments')
+        try:
+            patch_json = patch.json().get('attachments')
+        except Exception as e:
+            print('Failed to fetch patch json from {}, error: {}'.format(patch_url, e))
+            return None
         if not patch_json or len(patch_json) == 0:
             return None
         return patch_json.get(str(patch_id))
@@ -582,7 +586,11 @@
         bug = self.fetch_data_from_url_with_authentication(bug_url)
         if not bug:
             return None
-        bugs_json = bug.json().get('bugs')
+        try:
+            bugs_json = bug.json().get('bugs')
+        except Exception as e:
+            print('Failed to fetch bug json from {}, error: {}'.format(bug_url, e))
+            return None
         if not bugs_json or len(bugs_json) == 0:
             return None
         return bugs_json[0]

Modified: trunk/Tools/ChangeLog (275670 => 275671)


--- trunk/Tools/ChangeLog	2021-04-08 19:05:31 UTC (rev 275670)
+++ trunk/Tools/ChangeLog	2021-04-08 20:02:01 UTC (rev 275671)
@@ -1,3 +1,14 @@
+2021-04-08  Aakash Jain  <[email protected]>
+
+        EWS should keep working when Bugzilla is down
+        https://bugs.webkit.org/show_bug.cgi?id=224336
+
+        Reviewed by Jonathan Bedard.
+
+        * CISupport/ews-build/steps.py:
+        (BugzillaMixin.get_patch_json):
+        (BugzillaMixin.get_bug_json):
+
 2021-04-08  Adam Roben  <[email protected]>
 
         prepare-ChangeLog fails to find deleted functions in files with spaces in their path in Git repositories
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to