⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245282 in webkit


Ignore:
Timestamp:
May 14, 2019, 9:18:24 AM (7 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-app] Status bubble should turn orange when any build step fails
https://bugs.webkit.org/show_bug.cgi?id=197812

Reviewed by Jonathan Bedard.

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

(StatusBubble._build_bubble): Turn status-bubble orange if there is any failed step in the on-going build.
(StatusBubble._does_build_contains_any_failed_step): Method to check if build contains any failed step.

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r244930 r245282  
    7272
    7373        if build.result is None:  # In-progress build
    74             bubble['state'] = 'started'
     74            if self._does_build_contains_any_failed_step(build):
     75                bubble['state'] = 'provisional-fail'
     76            else:
     77                bubble['state'] = 'started'
    7578            bubble['details_message'] = 'Build is in-progress. Recent messages:\n\n' + self._steps_messages(build)
    7679        elif build.result == Buildbot.SUCCESS:
     
    151154        return not filter(lambda step_to_hide: re.search(step_to_hide, step.state_string), StatusBubble.STEPS_TO_HIDE)
    152155
     156    def _does_build_contains_any_failed_step(self, build):
     157        for step in build.step_set.all():
     158            if step.result and step.result != Buildbot.SUCCESS:
     159                return True
     160        return False
     161
    153162    def _most_recent_step_message(self, build):
    154163        recent_step = build.step_set.last()
  • trunk/Tools/ChangeLog

    r245281 r245282  
     12019-05-14  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-app] Status bubble should turn orange when any build step fails
     4        https://bugs.webkit.org/show_bug.cgi?id=197812
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
     9        (StatusBubble._build_bubble): Turn status-bubble orange if there is any failed step in the on-going build.
     10        (StatusBubble._does_build_contains_any_failed_step): Method to check if build contains any failed step.
     11
    1122019-05-14  Alex Christensen  <achristensen@webkit.org>
    213
Note: See TracChangeset for help on using the changeset viewer.