Changeset 254545 in webkit
- Timestamp:
- Jan 14, 2020, 5:08:32 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
BuildSlaveSupport/ews-app/ews/views/statusbubble.py (modified) (3 diffs)
-
ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py
r252939 r254545 1 # Copyright (C) 2018-20 19Apple Inc. All rights reserved.1 # Copyright (C) 2018-2020 Apple Inc. All rights reserved. 2 2 # 3 3 # Redistribution and use in source and binary forms, with or without … … 117 117 elif build.result == Buildbot.FAILURE: 118 118 bubble['state'] = 'fail' 119 bubble['details_message'] = self._most_recent_ step_message(build)119 bubble['details_message'] = self._most_recent_failure_message(build) 120 120 elif build.result == Buildbot.SKIPPED: 121 121 bubble['state'] = 'none' … … 204 204 return False 205 205 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_string206 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 '' 211 211 212 212 def get_latest_build_for_queue(self, patch, queue, parent_queue=None): -
trunk/Tools/ChangeLog
r254543 r254545 1 2020-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 1 12 2020-01-14 Jonathan Bedard <jbedard@apple.com> 2 13
Note:
See TracChangeset
for help on using the changeset viewer.