From e10f317b5ab8d88f27b977aa14695020aa2d1063 Mon Sep 17 00:00:00 2001 From: Olivier Giorgis Date: Tue, 19 Nov 2024 10:49:11 +0100 Subject: [PATCH] add emphasys in table labels --- tests/intermittents_commenter/expected_comment.text | 4 ++-- .../expected_comment_with_5_failures.text | 12 ++++++------ treeherder/intermittents_commenter/comment.template | 4 ++-- treeherder/intermittents_commenter/commenter.py | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/intermittents_commenter/expected_comment.text b/tests/intermittents_commenter/expected_comment.text index 5aa93f3b37a..7c73cb68a5f 100644 --- a/tests/intermittents_commenter/expected_comment.text +++ b/tests/intermittents_commenter/expected_comment.text @@ -11,9 +11,9 @@ This is the #1 most frequent failure this week. * debug: 1 ## Table -| |B2G Emulator Image Build| +| |**B2G Emulator Image Build**| |---|:-:| -|b2g-emu-jb/debug|1| +|**b2g-emu-jb/debug**|1| ## For more details, see: https://treeherder.mozilla.org/intermittent-failures/bugdetails?bug=1&startday=2012-05-09&endday=2018-05-10&tree=all \ No newline at end of file diff --git a/tests/intermittents_commenter/expected_comment_with_5_failures.text b/tests/intermittents_commenter/expected_comment_with_5_failures.text index 20cd264e180..2aaeb2d95e6 100644 --- a/tests/intermittents_commenter/expected_comment_with_5_failures.text +++ b/tests/intermittents_commenter/expected_comment_with_5_failures.text @@ -18,13 +18,13 @@ This is the #1 most frequent failure this week. * debug: 1 ## Table -| |B2G Emulator Image Build|Mochitest Browser Chrome| +| |**B2G Emulator Image Build**|**Mochitest Browser Chrome**| |---|:-:|:-:| -|b2g-emu-jb/debug|1| | -|b2g-emu-jb/opt|1| | -|osx-10-6/debug| |1| -|osx-10-7/debug| |1| -|windows7-32/debug| |1| +|**b2g-emu-jb/debug**|1| | +|**b2g-emu-jb/opt**|1| | +|**osx-10-6/debug**| |1| +|**osx-10-7/debug**| |1| +|**windows7-32/debug**| |1| ## For more details, see: https://treeherder.mozilla.org/intermittent-failures/bugdetails?bug=1&startday=2012-05-09&endday=2018-05-10&tree=all \ No newline at end of file diff --git a/treeherder/intermittents_commenter/comment.template b/treeherder/intermittents_commenter/comment.template index 57b2f60eea3..adc0808e7ee 100644 --- a/treeherder/intermittents_commenter/comment.template +++ b/treeherder/intermittents_commenter/comment.template @@ -35,14 +35,14 @@ This is the #{{rank}} most frequent failure this week.{% endif %} ## Table | | {%- for variant in test_variants -%} - {{variant}}| + **{{variant}}**| {%- endfor %} |---| {%- for test_variant in test_variants -%} :-:| {%- endfor %} {% for platform_and_build, test_by_variant in test_suites.items() -%} -|{{platform_and_build}}| +|**{{platform_and_build}}**| {%- for variant in test_variants -%} {{test_by_variant.get(variant, " ")}}| {%- endfor %} diff --git a/treeherder/intermittents_commenter/commenter.py b/treeherder/intermittents_commenter/commenter.py index 6c162219c31..fe111839c4d 100644 --- a/treeherder/intermittents_commenter/commenter.py +++ b/treeherder/intermittents_commenter/commenter.py @@ -63,7 +63,7 @@ def generate_bug_changes(self, startday, endday, alt_startday, alt_endday): priority = 0 rank = top_bugs.index(bug_id) + 1 if self.weekly_mode and bug_id in top_bugs else None - test_variants |= bug_stats[bug_id]['test_variants'] + test_variants |= bug_stats[bug_id]["test_variants"] if bug_info and bug_id in bug_info: if self.weekly_mode: priority = self.assign_priority(counts)