Changeset 258997 in webkit
- Timestamp:
- Mar 25, 2020 11:08:01 AM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/ews-app/ews/common/buildbot.py
r258611 r258997 40 40 SUCCESS, WARNINGS, FAILURE, SKIPPED, EXCEPTION, RETRY, CANCELLED = ALL_RESULTS 41 41 icons_for_queues_mapping = {} 42 queue_name_by_shortname_mapping = {} 42 43 builder_name_to_id_mapping = {} 43 44 … … 97 98 def update_icons_for_queues_mapping(cls): 98 99 config = cls.fetch_config() 100 if not config: 101 _log.warn('Unable to fetch buildbot config.json') 99 102 for builder in config.get('builders', []): 100 103 shortname = builder.get('shortname') 101 104 Buildbot.icons_for_queues_mapping[shortname] = builder.get('icon') 105 Buildbot.queue_name_by_shortname_mapping[shortname] = builder.get('name') 102 106 103 107 @classmethod -
trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py
r258937 r258997 97 97 if not queue_position: 98 98 return None 99 if self._get_parent_queue(queue): 100 queue = self._get_parent_queue(queue) 101 queue_full_name = Buildbot.queue_name_by_shortname_mapping.get(queue) 102 if queue_full_name: 103 bubble['url'] = 'https://{}/#/builders/{}'.format(config.BUILDBOT_SERVER_HOST, queue_full_name) 99 104 bubble['details_message'] = 'Waiting in queue, processing has not started yet.\n\nPosition in queue: {}'.format(queue_position) 100 105 return bubble -
trunk/Tools/ChangeLog
r258978 r258997 1 2020-03-25 Aakash Jain <aakash_jain@apple.com> 2 3 [ews] status-bubble should link to buildbot queue while waiting in queue 4 https://bugs.webkit.org/show_bug.cgi?id=209543 5 6 Reviewed by Jonathan Bedard. 7 8 * BuildSlaveSupport/ews-app/ews/views/statusbubble.py: 9 (StatusBubble._build_bubble): Link to buildbot queue whil patch is waiting in queue. 10 * BuildSlaveSupport/ews-app/ews/common/buildbot.py: 11 (Buildbot.update_icons_for_queues_mapping): Generate the mapping for shortname to full queue name. 12 1 13 2020-03-25 Ting-Wei Lan <lantw44@gmail.com> 2 14
Note: See TracChangeset
for help on using the changeset viewer.