Closed Bug 1313240 Opened 10 years ago Closed 8 years ago

OrangeFactor should report all failures to the associated bug

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1372277

People

(Reporter: karlt, Unassigned)

Details

It seems that there is some frequency threshold for OrangeFactor robot reports on bugs. It is good that frequent occurrences are coalesced into single reports to reduce noise, but sometimes they are missed altogether. This makes it look like a bug is no longer occurring even when it is. See for example bug 1211213 where there are no robot comments since December 2015 and yet there were failures in March and October 2016 according to https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=1211213&startday=2015-12-31&endday=2016-10-26&tree=all
Hi, thank you for filing :-) A rough overview of the current implementation & reasoning for it can be found here: https://groups.google.com/d/msg/mozilla.dev.tree-management/az643p0u4hs/3el7fqIDBwAJ With some extra details in bug 1179821 comment 5. The script that does the commenting is here: https://hg.mozilla.org/automation/orangefactor/file/tip/woo_commenter.py It really makes no difference to me personally what the thresholds are (I'm very rarely CCed on a bug that receives such bugmail, nor do I have to hack on Bugzilla to fix the performance issues related to comment volume), so I'm happy for someone to pick new thresholds (including "1") or entirely new algorithms. However some thoughts: * At some point in the future bugs will stop being the canonical location for tracking intermittents, and instead only the most important/actionable have bugs filed, which will be linked from a dashboard that manages intermittents. (a rewritten OrangeFactor v2 - think something like crashstats with "top risers" and ways to link failures together etc). * In that world, a bug wouldn't be filed for unactionable intermittents, or if there was already an existing bug, it wouldn't be reopened if the failure rate dropped (like in the case of bug 1211213). * The current OrangeFactor is pretty much EOL, so (a) it's likely going to need people to work on patches themselves, (b) the overall codebase is legacy and pretty awful to work on. * I'd chat with jmaher since he's looking into this area at the moment (https://elvis314.wordpress.com/2016/10/10/working-towards-a-productive-definition-of-intermittent-orange/) plus also the sheriffs, since bug modification times affected the SnR in the Treeherder classification panel (offset by sometimes reducing the false negative rate). Hope that helps :-)
Summary: orange factor should report all failures to the associated bug → OrangeFactor should report all failures to the associated bug
:karlt, I would agree with you that there is a case where we think the bug is not happening anymore even though we get a couple instances most days. I found that most bugs happen for a short duration of time. For example looking at 6 months of history of bugs, anything that happened <10 times in a given day has at most 102 instances. That could imply that the bug has one day of 9 failures and 93 days of 1 failure each. Typically these bugs have less than 20 days of data, they are short lived. One case where we have a slowly occuring consistent failure would be bug 1260209: https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=1260209&startday=2016-04-01&endday=2016-09-18&tree=all another example is bug 1267477: https://brasstacks.mozilla.com/orangefactor/?display=Bug&bugid=1267477&startday=2016-04-01&endday=2016-09-18&tree=all Our current thresholds of 15/daily and 5/week have served us well. Should we change? I think for the daily threshold we should consider making it 10/day. That is something that is actionable and would account for 85% of our oranges we see. As for the 5/week, I would argue that seems reasonable. The large majority of the issues we might see which do not occur 5 times/week will be hard to reproduce. The information is stored in orange factor, so it could be queried, but that is not a dashboard/tool that is common for investigating bugs, especially ones we think are not occurring anymore. would it be useful to have data if it reproduced once in a given week? Would a monthly summary on all bugs be useful?
(In reply to Joel Maher ( :jmaher) from comment #2) > I think for the daily threshold we should consider making it 10/day. That > is something that is actionable and would account for 85% of our oranges we > see. The weekly summary is the main summary, the daily one is just icing on the cake, to prevent the extreme cases from going unreported for up to 6 days until the next weekly summary. If the threshold for the daily summary is made too low, then the SnR will be worse. (In reply to Joel Maher ( :jmaher) from comment #2) > Would a monthly summary on all bugs be useful? This is something I considered in the current implementation but left for the future - I agree it may be useful :-)
can we get some stats on how many bugs get the daily vs weekly vs no bug comments? right now we have a lot of oranges, I don't think adding more emails to bugs for the daily would be useful- ideally we will fix a bunch of the oranges and we could lower the daily threshold. Possibly a monthly summary even for intermittents that have no cases- so we get a comment and know that there is no activity- more of a prompt to consider closing the bug :)
I wonder if the threshold could be lowered only for bugs that have not had orangefactorbot comment in them for <x days/weeks>? (So, for a bug that hasn't been commented in for a month, drop WEEKLY_THRESHOLD down to 1?)
That sounds very similar to a monthly summary, except harder implementation (having to compare against bug comments or previous intermittent data) and more confusing UX (since people will file bugs thinking the weekly summary is broken, given it will only appear sometimes for these bugs)?
Thank you everyone for the overview and comments. (In reply to Joel Maher ( :jmaher) from comment #2) > would it be useful to have data if it reproduced once in a given week? > Would a monthly summary on all bugs be useful? Either a weekly or monthly summary would be useful to me for two reasons: 1. Some failures are important even if they occur infrequently. Even for failures hard to reproduce, additional logging can sometimes be added to the test and/or code to provide more insight on the cause during the next failure. Getting notification of the next failure is then useful. A weekly interval would be more helpful than monthly for this purpose, but this is not a frequent situation, and so checking OrangeFactor manually is fine. A monthly reminder would still be helpful, because I may well give up looking manually if there are no results. 2. Checking orangefactor takes so long that I wouldn't bother checking. If I'm looking at the bug and know the information would be in the bug if the failure still occurs, then I'm happy to close the bug after a year of no reproductions and get it out of everyone's hair. (In reply to Joel Maher ( :jmaher) from comment #4) > can we get some stats on how many bugs get the daily vs weekly vs no bug > comments? right now we have a lot of oranges, I don't think adding more > emails to bugs for the daily would be useful- ideally we will fix a bunch of > the oranges and we could lower the daily threshold. IMO the daily reminder is useful when the frequency is high enough that the cost from nagging on bugs is less than the cost to sheriffs of annotating these bugs. However, as you imply, it is better to constrain nagging to those bugs that are causing the biggest problems. It is also useful if the frequency has recently changed, because then someone can look for a likely cause, but this is hard for low frequency failures, so the currently levels may be fine for this. > Possibly a monthly summary even for intermittents that have no cases- so we > get a comment and know that there is no activity- more of a prompt to > consider closing the bug :) Maybe something like that. I'm not sure. Nagging to close a bug that is now known to not likely to be important is usually noise to me. I prefer to close bugs when they are getting in my way, and old bugs don't generally get in my way unless I'm searching for something similar (but not related). If the treeherder suggestions get in the way, then they can be investigated when they do. Nagging once a month would be too often. A year seems a reasonable period to me if there is no known reasons to suspect the bug has been fixed.
OrangeFactor now always comments in the weekly job, even if only 1 failure occurred per bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.