Changeset 258997 in webkit


Ignore:
Timestamp:
Mar 25, 2020 11:08:01 AM (4 years ago)
Author:
aakash_jain@apple.com
Message:

[ews] status-bubble should link to buildbot queue while waiting in queue
https://bugs.webkit.org/show_bug.cgi?id=209543

Reviewed by Jonathan Bedard.

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

(StatusBubble._build_bubble): Link to buildbot queue whil patch is waiting in queue.

  • BuildSlaveSupport/ews-app/ews/common/buildbot.py:

(Buildbot.update_icons_for_queues_mapping): Generate the mapping for shortname to full queue name.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-app/ews/common/buildbot.py

    r258611 r258997  
    4040    SUCCESS, WARNINGS, FAILURE, SKIPPED, EXCEPTION, RETRY, CANCELLED = ALL_RESULTS
    4141    icons_for_queues_mapping = {}
     42    queue_name_by_shortname_mapping = {}
    4243    builder_name_to_id_mapping = {}
    4344
     
    9798    def update_icons_for_queues_mapping(cls):
    9899        config = cls.fetch_config()
     100        if not config:
     101            _log.warn('Unable to fetch buildbot config.json')
    99102        for builder in config.get('builders', []):
    100103            shortname = builder.get('shortname')
    101104            Buildbot.icons_for_queues_mapping[shortname] = builder.get('icon')
     105            Buildbot.queue_name_by_shortname_mapping[shortname] = builder.get('name')
    102106
    103107    @classmethod
  • trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py

    r258937 r258997  
    9797            if not queue_position:
    9898                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)
    99104            bubble['details_message'] = 'Waiting in queue, processing has not started yet.\n\nPosition in queue: {}'.format(queue_position)
    100105            return bubble
  • trunk/Tools/ChangeLog

    r258978 r258997  
     12020-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
    1132020-03-25  Ting-Wei Lan  <lantw44@gmail.com>
    214
Note: See TracChangeset for help on using the changeset viewer.