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

Changeset 254545 in webkit


Ignore:
Timestamp:
Jan 14, 2020, 5:08:32 PM (7 years ago)
Author:
aakash_jain@apple.com
Message:

[EWS] Status bubble tooltip might display success message sometimes on a failed build
​https://bugs.webkit.org/show_bug.cgi?id=206180

Reviewed by Jonathan Bedard.

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

(StatusBubble._build_bubble):
(StatusBubble._most_recent_failure_message): Returns the status from failed step instead of last step.

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r252939 r254545  
    1 # Copyright (C) 2018-2019 Apple Inc. All rights reserved.
     1# Copyright (C) 2018-2020 Apple Inc. All rights reserved.
    22#
    33# Redistribution and use in source and binary forms, with or without
    … …  
    117117        elif build.result == Buildbot.FAILURE:
    118118            bubble['state'] = 'fail'
    119             bubble['details_message'] = self._most_recent_step_message(build)
     119            bubble['details_message'] = self._most_recent_failure_message(build)
    120120        elif build.result == Buildbot.SKIPPED:
    121121            bubble['state'] = 'none'
    … …  
    204204        return False
    205205
    206     def _most_recent_step_message(self, build):
    207         recent_step = build.step_set.last()
    208         if not recent_step:
    209             return ''
    210         return recent_step.state_string
     206    def _most_recent_failure_message(self, build):
     207        for step in build.step_set.all().order_by('-uid'):
     208            if step.result == Buildbot.FAILURE:
     209                return step.state_string
     210        return ''
    211211
    212212    def get_latest_build_for_queue(self, patch, queue, parent_queue=None):
  • trunk/Tools/ChangeLog

    r254543 r254545  
     12020-01-14  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [EWS] Status bubble tooltip might display success message sometimes on a failed build
     4        https://bugs.webkit.org/show_bug.cgi?id=206180
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
     9        (StatusBubble._build_bubble):
     10        (StatusBubble._most_recent_failure_message): Returns the status from failed step instead of last step.
     11
    1122020-01-14  Jonathan Bedard  <jbedard@apple.com>
    213
Note: See TracChangeset for help on using the changeset viewer.