Changeset 244547 in webkit


Ignore:
Timestamp:
Apr 23, 2019 10:51:55 AM (5 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-app] Exception while loading status-bubble when no build step has started
https://bugs.webkit.org/show_bug.cgi?id=196676

Reviewed by Lucas Forschler.

  • BuildSlaveSupport/ews-app/ews/views/statusbubble.py:

(StatusBubble.get_build_timestamp): Check if build step is present before accessing its timestamp.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py

    r244284 r244547  
    131131
    132132    def get_build_timestamp(self, build):
    133         if not build.complete_at:  # In-progress build
    134             return self._iso_time(build.step_set.last().started_at)
    135         return self._iso_time(build.complete_at)
     133        if build.complete_at:
     134            return self._iso_time(build.complete_at)
     135
     136        recent_build_step = build.step_set.last()
     137        if recent_build_step:
     138            return self._iso_time(recent_build_step.started_at)
     139
     140        return self._iso_time(build.started_at)
    136141
    137142    def _iso_time(self, time):
  • trunk/Tools/ChangeLog

    r244543 r244547  
     12019-04-23  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-app] Exception while loading status-bubble when no build step has started
     4        https://bugs.webkit.org/show_bug.cgi?id=196676
     5
     6        Reviewed by Lucas Forschler.
     7
     8        * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
     9        (StatusBubble.get_build_timestamp): Check if build step is present before accessing its timestamp.
     10
    1112019-04-23  Stephan Szabo  <stephan.szabo@sony.com>
    212
Note: See TracChangeset for help on using the changeset viewer.