Changeset 233107 in webkit


Ignore:
Timestamp:
Jun 22, 2018 4:05:50 PM (6 years ago)
Author:
dbates@webkit.org
Message:

Security EWS: bots fails with exception 'NoneType' object has no attribute 'is_closed'
https://bugs.webkit.org/show_bug.cgi?id=186923

Reviewed by Lucas Forschler.

Attachments downloaded from the status server (http://webkit-queues.webkit.org) do not
have an associated Bug object (i.e. Attachment.bug() is None) and reflect the state they
were in, including flags set, at the time they were uploaded to the status server. We
will add support for fetching up-to-date status info about the attachment and its bug
in <https://bugs.webkit.org/show_bug.cgi?id=186817>. For now, we only check if the
bug associated with the patch we are processing is closed if the attachment has a
non-None Bug object.

  • Scripts/webkitpy/tool/bot/earlywarningsystemtask.py:

(EarlyWarningSystemTask.validate):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r233102 r233107  
     12018-06-22  Daniel Bates  <dabates@apple.com>
     2
     3        Security EWS: bots fails with exception 'NoneType' object has no attribute 'is_closed'
     4        https://bugs.webkit.org/show_bug.cgi?id=186923
     5
     6        Reviewed by Lucas Forschler.
     7
     8        Attachments downloaded from the status server (http://webkit-queues.webkit.org) do not
     9        have an associated Bug object (i.e. Attachment.bug() is None) and reflect the state they
     10        were in, including flags set, at the time they were uploaded to the status server. We
     11        will add support for fetching up-to-date status info about the attachment and its bug
     12        in <https://bugs.webkit.org/show_bug.cgi?id=186817>. For now, we only check if the
     13        bug associated with the patch we are processing is closed if the attachment has a
     14        non-None Bug object.
     15
     16        * Scripts/webkitpy/tool/bot/earlywarningsystemtask.py:
     17        (EarlyWarningSystemTask.validate):
     18
    1192018-06-22  Ross Kirsling  <ross.kirsling@sony.com>
    220
  • trunk/Tools/Scripts/webkitpy/tool/bot/earlywarningsystemtask.py

    r225500 r233107  
    4242
    4343    def validate(self):
     44        # FIXME: Need a way to ask the status server for latest status of a security bug.
     45        # Attachments downloaded from the status server do not have an associated bug and
     46        # reflect the Bugzilla state at the time they were uploaded to the status server.
     47        # See <https://bugs.webkit.org/show_bug.cgi?id=186817>.
    4448        self._patch = self._delegate.refetch_patch(self._patch)
    4549        if self._patch.is_obsolete():
    4650            self.error = "Patch is obsolete."
    4751            return False
    48         if self._patch.bug().is_closed():
     52        if self._patch.bug() and self._patch.bug().is_closed():
    4953            self.error = "Bug is already closed."
    5054            return False
Note: See TracChangeset for help on using the changeset viewer.