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

Changeset 243914 in webkit


Ignore:
Timestamp:
Apr 4, 2019, 3:44:38 PM (7 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-app] while waiting in queue status-bubble for testers queues should display build information from builder queue
https://bugs.webkit.org/show_bug.cgi?id=196618

Reviewed by Lucas Forschler.

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

(StatusBubble): Added QUEUE_TRIGGERS.
(StatusBubble._build_bubble): Get the build from builder if tester has not started the build yet.
(StatusBubble._get_parent_queue): Get the name of the parent (builder) queue.
(StatusBubble.get_latest_build_for_queue): If the queue doesn't have any build yet, return build information from
its parent(builder).

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r243913 r243914  
    4141                    'mac-debug', 'mac-debug-wk1', 'mac-wk1', 'mac-wk2', 'style', 'webkitperl', 'webkitpy', 'win', 'wincairo', 'wpe']
    4242    ENABLED_QUEUES = ['api-ios', 'api-mac', 'webkitperl']
     43    # FIXME: Auto-generate the queue's trigger relationship
     44    QUEUE_TRIGGERS = {
     45        'api-ios': 'ios-sim',
     46        'api-mac': 'mac',
     47    }
    4348
    4449    STEPS_TO_HIDE = ['Killed old processes', 'Configured build', '^OS:.*Xcode:', '(skipped)']
     
    4853            'name': queue,
    4954        }
    50         build = self.get_latest_build_for_queue(patch, queue)
     55        build, is_parent_build = self.get_latest_build_for_queue(patch, queue, self._get_parent_queue(queue))
    5156        if not self._should_show_bubble_for_build(build):
    5257            return None
     
    6469            bubble['details_message'] = 'Build is in-progress. Recent messages:\n\n' + self._steps_messages(build)
    6570        elif build.result == Buildbot.SUCCESS:
    66             bubble['state'] = 'pass'
    67             bubble['details_message'] = 'Pass'
     71            if is_parent_build:
     72                bubble['state'] = 'started'
     73                bubble['details_message'] = 'Build is in-progress. Recent messages:\n\n' + self._steps_messages(build) + '\n\nWaiting to run tests.'
     74            else:
     75                bubble['state'] = 'pass'
     76                bubble['details_message'] = 'Pass'
    6877        elif build.result == Buildbot.WARNINGS:
    6978            bubble['state'] = 'pass'
     
    108117        return bubble
    109118
     119    def _get_parent_queue(self, queue):
     120        return StatusBubble.QUEUE_TRIGGERS.get(queue)
     121
    110122    def get_os_details(self, build):
    111123        for step in build.step_set.all():
     
    134146        return recent_step.state_string
    135147
    136     def get_latest_build_for_queue(self, patch, queue):
     148    def get_latest_build_for_queue(self, patch, queue, parent_queue=None):
    137149        builds = self.get_builds_for_queue(patch, queue)
     150        is_parent_build = False
     151        if not builds and parent_queue:
     152            builds = self.get_builds_for_queue(patch, parent_queue)
     153            is_parent_build = True
    138154        if not builds:
    139             return None
     155            return (None, None)
    140156        builds.sort(key=lambda build: build.started_at, reverse=True)
    141         return builds[0]
     157        return (builds[0], is_parent_build)
    142158
    143159    def get_builds_for_queue(self, patch, queue):
  • trunk/Tools/ChangeLog

    r243913 r243914  
     12019-04-04  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-app] while waiting in queue status-bubble for testers queues should display build information from builder queue
     4        https://bugs.webkit.org/show_bug.cgi?id=196618
     5
     6        Reviewed by Lucas Forschler.
     7
     8        * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
     9        (StatusBubble): Added QUEUE_TRIGGERS.
     10        (StatusBubble._build_bubble): Get the build from builder if tester has not started the build yet.
     11        (StatusBubble._get_parent_queue): Get the name of the parent (builder) queue.
     12        (StatusBubble.get_latest_build_for_queue): If the queue doesn't have any build yet, return build information from
     13        its parent(builder).
     14
    1152019-04-04  Aakash Jain  <aakash_jain@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.