-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table in comment #8297
Open
djangoliv
wants to merge
5
commits into
mozilla:master
Choose a base branch
from
djangoliv:table-in-comment
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Table in comment #8297
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4859645
add a more complex unittest for intermittents commenter
ogiorgis 9ae18ee
Fix comment emphasis for intermittent bugs
ogiorgis 0b0a890
Add section titles in intermittent bug comments
ogiorgis 3a1005c
feat: add table visualization in intermittents comments
ogiorgis e10f317
add emphasys in table labels
ogiorgis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
## Summary | ||
1 failures in 10 pushes (0.1 failures/push) were associated with this bug in the last 7 days. | ||
|
||
This is the #1 most frequent failure this week. | ||
|
||
Repository breakdown: | ||
## Repository breakdown: | ||
* mozilla-central: 1 | ||
|
||
Platform and build breakdown: | ||
## Platform and build breakdown: | ||
* b2g-emu-jb: 1 | ||
* debug: 1 | ||
|
||
For more details, see: | ||
## Table | ||
| |**B2G Emulator Image Build**| | ||
|---|:-:| | ||
|**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 |
30 changes: 30 additions & 0 deletions
30
tests/intermittents_commenter/expected_comment_with_5_failures.text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Summary | ||
5 failures in 10 pushes (0.5 failures/push) were associated with this bug in the last 7 days. | ||
|
||
This is the #1 most frequent failure this week. | ||
|
||
## Repository breakdown: | ||
* mozilla-central: 5 | ||
|
||
## Platform and build breakdown: | ||
* b2g-emu-jb: 2 | ||
* debug: 1 | ||
* opt: 1 | ||
* osx-10-6: 1 | ||
* debug: 1 | ||
* osx-10-7: 1 | ||
* debug: 1 | ||
* windows7-32: 1 | ||
* debug: 1 | ||
|
||
## Table | ||
| |**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| | ||
|
||
## For more details, see: | ||
https://treeherder.mozilla.org/intermittent-failures/bugdetails?bug=1&startday=2012-05-09&endday=2018-05-10&tree=all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,51 @@ | ||
{{total}} failures in {{test_run_count}} pushes ({{failure_rate}} failures/push) were associated with this bug {% if weekly_mode %}in the last 7 days{% else %}yesterday{% endif %}. | ||
## Summary | ||
{{total}} failures in {{test_run_count}} pushes ({{failure_rate}} failures/push) were associated with this bug {% if weekly_mode %}in the last 7 days{% else %}yesterday{% endif %}. | ||
|
||
{%- if rank %} | ||
|
||
This is the #{{rank}} most frequent failure this week.{% endif %} | ||
|
||
{%- if priority==1 %} | ||
|
||
** This failure happened more than 75 times this week! Resolving this bug is a very high priority. ** | ||
**This failure happened more than 75 times this week! Resolving this bug is a very high priority.** | ||
|
||
** Try to resolve this bug as soon as possible. If unresolved for 1 week, the affected test(s) may be disabled. ** {% endif %} | ||
**Try to resolve this bug as soon as possible. If unresolved for 1 week, the affected test(s) may be disabled.** {% endif %} | ||
|
||
{%- if priority==2 %} | ||
|
||
** This failure happened more than 30 times this week! Resolving this bug is a high priority. ** | ||
**This failure happened more than 30 times this week! Resolving this bug is a high priority.** | ||
|
||
** Try to resolve this bug as soon as possible. If unresolved for 2 weeks, the affected test(s) may be disabled. ** {% endif %} | ||
**Try to resolve this bug as soon as possible. If unresolved for 2 weeks, the affected test(s) may be disabled.** {% endif %} | ||
|
||
{%-if priority==3 %} | ||
|
||
** This test has failed more than 150 times in the last 21 days. It should be disabled until it can be fixed. ** {% endif %} | ||
**This test has failed more than 150 times in the last 21 days. It should be disabled until it can be fixed.** {% endif %} | ||
|
||
Repository breakdown: | ||
## Repository breakdown: | ||
{% for repository, count in repositories.items() -%} | ||
* {{repository}}: {{count}} | ||
{% endfor %} | ||
Platform and build breakdown: | ||
## Platform and build breakdown: | ||
{% for platform, count in platforms.items() -%} | ||
* {{platform}}: {{count}} | ||
{%- for build, count in counts[platform].items() %} | ||
* {{ build }}: {{ count }} | ||
{%- endfor %} | ||
{% endfor %} | ||
For more details, see: | ||
## Table | ||
| | | ||
{%- for variant in test_variants -%} | ||
**{{variant}}**| | ||
{%- endfor %} | ||
|---| | ||
{%- for test_variant in test_variants -%} | ||
:-:| | ||
{%- endfor %} | ||
{% for platform_and_build, test_by_variant in test_suites.items() -%} | ||
|**{{platform_and_build}}**| | ||
{%- for variant in test_variants -%} | ||
{{test_by_variant.get(variant, " ")}}| | ||
{%- endfor %} | ||
{% endfor %} | ||
## For more details, see: | ||
https://treeherder.mozilla.org/intermittent-failures/bugdetails?bug={{bug_id}}&startday={{startday}}&endday={{endday}}&tree=all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a good shortcut, but will not work long term, here are a few cases to consider:
-
in them: https://searchfox.org/mozilla-central/search?q=suffix&path=variants.yml&case=false®exp=falseof these, 1 and 2 need to be solved, we can hack around #3 as that is normal, but in the scope of parsing, it could be agreed as an "edge case".
as this is python code, we could copy it from another source (a phab request parsing task names to find variants, search for
found_variants
). When that code lands, I have some refactoring I want to do so eventually this will become an easier library to reuse.we should update the sample test data in order to have more modern and useful task names.
The rest of the changes look good!