[ews-build] Gracefully handle missing patch_id in events
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2019 22:04:50 +0000 (22:04 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Mar 2019 22:04:50 +0000 (22:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196216

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-build/events.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243464 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-build/events.py
Tools/ChangeLog

index dafd6e4..6602b38 100644 (file)
@@ -100,7 +100,7 @@ class Events(service.BuildbotService):
         return build.get('properties').get('buildername')[0]
 
     def getPatchID(self, build):
-        if not (build and 'properties' in build):
+        if not (build and 'properties' in build and 'patch_id' in build['properties']):
             return None
 
         return build.get('properties').get('patch_id')[0]
index bfe6a23..4e4c87f 100644 (file)
@@ -1,5 +1,14 @@
 2019-03-25  Aakash Jain  <aakash_jain@apple.com>
 
+        [ews-build] Gracefully handle missing patch_id in events
+        https://bugs.webkit.org/show_bug.cgi?id=196216
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-build/events.py:
+
+2019-03-25  Aakash Jain  <aakash_jain@apple.com>
+
         [ews-build] use lz4 compression for improving buildbot performance
         https://bugs.webkit.org/show_bug.cgi?id=196155