Changeset 242880 in webkit


Ignore:
Timestamp:
Mar 13, 2019 4:27:08 AM (5 years ago)
Author:
aakash_jain@apple.com
Message:

[ews-app] status bubble should be hidden for certain builds
https://bugs.webkit.org/show_bug.cgi?id=194597

Reviewed by Dewei Zhu.

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

(StatusBubble._build_bubble):
(StatusBubble._should_show_bubble_for_build): Hide bubble for builds which were skipped
because the patch didn't have relevant changes.
(StatusBubble._should_show_bubble_for_queue): Hide bubbles for queues which are not deployed
in production yet.

Location:
trunk/Tools
Files:
2 edited

Legend:

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

    r242827 r242880  
    2323from __future__ import unicode_literals
    2424
     25import re
     26
    2527from django.http import HttpResponse
    2628from django.shortcuts import render
     
    4345        }
    4446        build = self.get_latest_build_for_queue(patch, queue)
     47        if not self._should_show_bubble_for_build(build):
     48            return None
     49
    4550        if not build:
    4651            bubble["state"] = "none"
     
    8085        return [build for build in patch.build_set.all() if build.builder_display_name == queue]
    8186
    82     def _should_show_bubble_for(self, patch, queue):
    83         # TODO: https://bugs.webkit.org/show_bug.cgi?id=194597
     87    def _should_show_bubble_for_build(self, build):
     88        if build and build.result == 3 and re.search(r'Patch .* doesn\'t have relevant changes', build.state_string):
     89            return False
     90        return True
     91
     92    def _should_show_bubble_for_queue(self, queue):
    8493        return queue in StatusBubble.ENABLED_QUEUES
    8594
     
    93102
    94103        for queue in StatusBubble.ALL_QUEUES:
    95             if not self._should_show_bubble_for(patch, queue):
     104            if not self._should_show_bubble_for_queue(queue):
    96105                continue
    97106
  • trunk/Tools/ChangeLog

    r242842 r242880  
     12019-03-13  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews-app] status bubble should be hidden for certain builds
     4        https://bugs.webkit.org/show_bug.cgi?id=194597
     5
     6        Reviewed by Dewei Zhu.
     7
     8        * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
     9        (StatusBubble._build_bubble):
     10        (StatusBubble._should_show_bubble_for_build): Hide bubble for builds which were skipped
     11        because the patch didn't have relevant changes.
     12        (StatusBubble._should_show_bubble_for_queue): Hide bubbles for queues which are not deployed
     13        in production yet.
     14
    1152019-03-12  Ross Kirsling  <ross.kirsling@sony.com>
    216
Note: See TracChangeset for help on using the changeset viewer.