[Notes] [Git][BuildStream/buildstream][bst-1.2] 2 commits: widget.py: Limit failure summary to currently failing elements (#386)



Title: GitLab

Tristan Van Berkom pushed to branch bst-1.2 at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_frontend/widget.py
    ... ... @@ -522,12 +522,15 @@ class LogLine(Widget):
    522 522
                 text += "\n\n"
    
    523 523
     
    
    524 524
             if self._failure_messages:
    
    525
    -            text += self.content_profile.fmt("Failure Summary\n", bold=True)
    
    526 525
                 values = OrderedDict()
    
    527 526
     
    
    528 527
                 for element, messages in sorted(self._failure_messages.items(), key=lambda x: x[0].name):
    
    529
    -                values[element.name] = ''.join(self._render(v) for v in messages)
    
    530
    -            text += self._format_values(values, style_value=False)
    
    528
    +                for queue in stream.queues:
    
    529
    +                    if any(el.name == element.name for el in queue.failed_elements):
    
    530
    +                        values[element.name] = ''.join(self._render(v) for v in messages)
    
    531
    +            if values:
    
    532
    +                text += self.content_profile.fmt("Failure Summary\n", bold=True)
    
    533
    +                text += self._format_values(values, style_value=False)
    
    531 534
     
    
    532 535
             text += self.content_profile.fmt("Pipeline Summary\n", bold=True)
    
    533 536
             values = OrderedDict()
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]