BugBot: Difference between revisions

3,971 bytes removed ,  12 April 2019
Minor cleanups of the styles and nits
(now with an autofix)
(Minor cleanups of the styles and nits)
Line 1: Line 1:
This page lists all the actions done by the autonag bot.
{{ DISPLAYTITLE:Autonag, our bugzilla automatic triage bot and alerting system }}


https://github.com/mozilla/relman-auto-nag/tree/master/auto_nag/scripts
<p style="font-size: larger; font-weight:bold;">
This page lists all the actions done by the [https://github.com/mozilla/relman-auto-nag/tree/master/auto_nag/scripts Autonag bot].</p>


Autofix checkers are executed every hour at *:15. Checkers without autofix are run every day. 14:00 Paris time.
== Introduction ==
For now, security bugs aren't touched.
Autofix checkers are executed every hour at *:15. Checkers without autofix are run every day. 14:00 Paris time. ''For now, security bugs aren't touched.''


== With autofix ==
== With autofix ==


{| border="1"
{| class="wikitable"
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| '''File'''
|| '''Rules'''
|| '''Why'''
|| '''Has autofix'''
|| '''Example'''
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| assignee_but_unconfirmed.py
|| Change the status from unconfirmed to assigned if there is an assignee
|| Mitigate an issue in bugzilla (bugs reported by new bugzilla users are not tagged as NEW)
|| Yes
|| {{Bug|1495908}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| has_regression_range_no_keyword.py
|| Regression range = yes has been set but missing keyword
|| Regression keyword is important to differentiate actual defect
|| Yes
|| {{Bug|1461034}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| leave_open.py
|| Remove the leave-open keyword on bug closed
|| Mismatch in metadata
|| Yes
|| {{Bug|1382185}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| meta_summary_missing.py
|| Has [meta] in the description but not the keyword
|| Keyword helps a lot in search
|| Yes
|| {{Bug|1435799}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| nightly_reopened.py
|| If a bug is reopened in nightly, the status flags aren’t automatically updated
|| Avoids some potential issues for sheriff and release managers
|| Yes
|| {{bug|1495962}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| no_assignee.py
|| no assignees and a patch which landed in m-c
|| Bugs without assignee is making our life harder
|| Yes
|| {{bug|1514338}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| no_crashes.py
|| Crash bugs without any crash reports for more than 12 weeks
|| Mitigate the backlog
|| Yes
|| {{bug|1470864}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| stalled.py
|| But closed but has the stalled keyword
|| If the bug is closed, it isn't stalled anymore
|| Yes
|| {{bug|1491624}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| summary_meta_missing.py
|| Has the meta keyword but [meta] is missing in the description
|| Having [meta] in the summary help with search of bugs
|| Yes
|| {{bug|1257692}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| missing_beta_status.py
|| Status flags are set for nightly and release but not for beta
|| Inconsistency in status flags
|| Yes
|| {{bug|1500273}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| mismatch-priority-tracking-*.py
|| If a bug is tracked by a release manager, update the priority (P2 for nightly, P1 for the rest)
|| Show that it is important
|| Yes
|| {{bug|1515946}} / {{bug|1508277}} / {{bug|1512493}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| regression.py
|| Bug without the regression keyword
|| Regression keyword is important to differentiate actual defect. Uses machine learning
|| Yes
|| {{bug|1529139}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| component.py
|| Bug in untriaged
|| Move the bug into the right component. Uses machine learning
|| Yes
|| {{bug|1530316}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| copy_duplicate_info.py
|| Bug resolved as duplicate
|| Copy crash signatures from dup bug to original bug and copy product/component from original to dup.
|| Yes
|| {{bug|1517205}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| tracked_bad_severity.py
|| Bug tracked by release managers but small severity
|| Inconsistency in metadata
|| Yes
|| {{bug|1538966}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|| workflow/no_priority.py
|| Bug with no priority set.
|| Needinfo or nag triage owner to set priority.
|| Yes
|| {{bug|1527818}}
|-
|-
! File
! Rules
! Why
! Example
|-
| assignee_but_unconfirmed.py
| Change the status from unconfirmed to assigned if there is an assignee
| Mitigate an issue in bugzilla (bugs reported by new bugzilla users are not tagged as NEW)
| {{Bug|1495908}}
|-
| has_regression_range_no_keyword.py
| Regression range = yes has been set but missing keyword
| Regression keyword is important to differentiate actual defect
| {{Bug|1461034}}
|-
| leave_open.py
| Remove the leave-open keyword on bug closed
| Mismatch in metadata
| {{Bug|1382185}}
|-
| meta_summary_missing.py
| Has [meta] in the description but not the keyword
| Keyword helps a lot in search
| {{Bug|1435799}}
|-
| nightly_reopened.py
| If a bug is reopened in nightly, the status flags aren’t automatically updated
| Avoids some potential issues for sheriff and release managers
| {{bug|1495962}}
|-
| no_assignee.py
| no assignees and a patch which landed in m-c
| Bugs without assignee is making our life harder
| {{bug|1514338}}
|-
| no_crashes.py
| Crash bugs without any crash reports for more than 12 weeks
| Mitigate the backlog
| {{bug|1470864}}
|-
| stalled.py
| But closed but has the stalled keyword
| If the bug is closed, it isn't stalled anymore
| {{bug|1491624}}
|-
| summary_meta_missing.py
| Has the meta keyword but [meta] is missing in the description
| Having [meta] in the summary help with search of bugs
| {{bug|1257692}}
|-
| missing_beta_status.py
| Status flags are set for nightly and release but not for beta
| Inconsistency in status flags
| {{bug|1500273}}
|-
| mismatch-priority-tracking-*.py
| If a bug is tracked by a release manager, update the priority (P2 for nightly, P1 for the rest)
| Show that it is important
| {{bug|1515946}} <br> {{bug|1508277}} <br> {{bug|1512493}}
|-
| regression.py
| Bug without the regression keyword
| Regression keyword is important to differentiate actual defect. Uses machine learning
| {{bug|1529139}}
|-
| component.py
| Bug in untriaged
| Move the bug into the right component. Uses machine learning
| {{bug|1530316}}
|-
| copy_duplicate_info.py
| Bug resolved as duplicate
| Copy crash signatures from dup bug to original bug and copy product/component from original t dup.
| {{bug|1517205}}
|-
| tracked_bad_severity.py
| Bug tracked by release managers but small severity
| Inconsistency in metadata
| {{bug|1538966}}
|-
| workflow/no_priority.py
| Bug with no priority set.
| Needinfo or nag triage owner to set priority.
| {{bug|1527818}}
|}
|}


== Without autofix ==
== Without autofix ==
{|  border="1"
{|  class="wikitable"
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-  
|| '''File'''
! File
|| '''Rules'''
! Rules
|| '''Why'''
! Why
|| '''Has autofix'''
! Action
|| '''Example'''
! Example
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-  
|| feature_regression.py  
| feature_regression.py  
|| the bug with both feature and regression keywords
| the bug with both feature and regression keywords
|| Mismatch in metadata
| Mismatch in metadata
|| No
| Not yet
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| leave_open_no_activity.py  
| leave_open_no_activity.py  
|| Has the leave-open keyword but no activity for a while
| Has the leave-open keyword but no activity for a while
|| Help identify dead/inactive bugs
| Help identify dead/inactive bugs
|| Needinfo to triage owner
| Needinfo to triage owner
|| {{Bug|1367072}}
| {{Bug|1367072}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| meta_no_deps_no_activity.py  
| meta_no_deps_no_activity.py  
|| Meta bug without open dependencies and no activity
| Meta bug without open dependencies and no activity
|| Help identify dead/inactive bugs
| Help identify dead/inactive bugs
|| Needinfo to triage owner
| Needinfo to triage owner
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| mismatch-priority-tracking.py  
| mismatch-priority-tracking.py  
|| A bug is tracked by release management but the severity is small (<normal)
| A bug is tracked by release management but the severity is small (<normal)
|| Mismatch in metadata
| Mismatch in metadata
|| No
| Not yet
||  
|  
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| ni_from_manager.py  
| ni_from_manager.py  
|| Bugs with a ni from a director or a release manager and no activity
| Bugs with a ni from a director or a release manager and no activity
|| We need to have fast turn around on bugs
| We need to have fast turn around on bugs
|| Mail
| Mail
||  
|  
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| ni_triage_owner.py  
| ni_triage_owner.py  
|| Bugs with no priority and no activity
| Bugs with no priority and no activity
|| Triage owners need to process the backlog
| Triage owners need to process the backlog
|| Needinfo to triage owner (only Andrew for now)
| Needinfo to triage owner (only Andrew for now)
|| {{bug|1503461}}
| {{bug|1503461}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| one_two_word_summary.py  
| one_two_word_summary.py  
|| Bugs with only one or two words in the summary
| Bugs with only one or two words in the summary
|| usually a sign of an useless bug
| usually a sign of an useless bug
|| No
| Not yet
|| {{bug|1512823}}
| {{bug|1512823}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| query_creator.py  
| query_creator.py  
|| Send reminders to developer with assigned tracked bugs  
| Send reminders to developer with assigned tracked bugs  
|| Make sure that bugs for the next release are addressed
| Make sure that bugs for the next release are addressed
|| No
| Not yet
||  
|  
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| reporter_with_ni.py  
| reporter_with_ni.py  
|| Identify bugs with needinfo on the reporter without activity
| Identify bugs with needinfo on the reporter without activity
|| Usually a sign of a reporter not answering to more requests
| Usually a sign of a reporter not answering to more requests
|| No
| Not yet
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-  
|| topcrash_bad_severity.py  
| topcrash_bad_severity.py  
|| Topcrash bugs with normal severity
| Topcrash bugs with normal severity
|| Consistency and help getting traction on bugs
| Consistency and help getting traction on bugs
|| No
| Not yet
|| {{bug|1471692}}
| {{bug|1471692}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| tracked_needinfo.py  
| tracked_needinfo.py  
|| Tracked or Nominated for Tracking with Need-Info?
| Tracked or Nominated for Tracking with Need-Info?
|| Make sure that bugs for the next release are addressed
| Make sure that bugs for the next release are addressed
|| Email
| Email
||  
|  
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| tracking.py  
| tracking.py  
|| Get the tracked bugs in a release and untouched this week
| Get the tracked bugs in a release and untouched this week
|| Identify inactive bugs
| Identify inactive bugs
|| Email
| Email
||  
|  
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| unaffected_affected_no_reg.py  
| unaffected_affected_no_reg.py  
|| List bugs marked as non affecting a release but affecting the next one
| List bugs marked as non affecting a release but affecting the next one
|| Sign of a regression
| Sign of a regression
|| Email
| Email
||  
|  
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| unlanded.py  
| unlanded.py  
|| Patches which didn’t land on beta and esr
| Patches which didn’t land on beta and esr
|| Make sure that we ship with the bugs that we need
| Make sure that we ship with the bugs that we need
|| Email
| Email
|| {{bug|1509394}}
| {{bug|1509394}}
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| untriage_important_sev.py  
| untriage_important_sev.py  
|| Firfox/untriaged with an important severity
| Firfox/untriaged with an important severity
|| Identify potential important issues in untriage
| Identify potential important issues in untriage
||
| Not yet
||  
|  
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| version_affected.py  
| version_affected.py  
|| Bug with version set but not status_firefox
| Bug with version set but not status_firefox
|| Version is set automatically by bugzilla but status_firefox isn’t
| Version is set automatically by bugzilla but status_firefox isn’t
|| Email  
| Email  
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| ../next_release.py
| ../next_release.py
|| Check if the release dates are consistent on the Wiki pages
| Check if the release dates are consistent on the Wiki pages
|| We use these dates in automation
| We use these dates in automation
|| Email
| Email
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| code_freeze_week.py
| code_freeze_week.py
|| Fixed bug with patches which landed in mozilla-central during the soft freeze week
| Fixed bug with patches which landed in mozilla-central during the soft freeze week
|| Give some information like number of patches, number of changed lines, ...
| Give some information like number of patches, number of changed lines, ...
|| Email
| Email
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| missed_uplifts.py
| missed_uplifts.py
|| Fixed bug in nightly with patches and beta or release affected.
| Fixed bug in nightly with patches and beta or release affected.
|| Give some information about priority, severity, ...
| Give some information about priority, severity, ...
|| Email
| Email
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| newbie_with_ni.py
| newbie_with_ni.py
|| Bug where the reporter has a needinfo and with no activity
| Bug where the reporter has a needinfo and with no activity
|| Help to identify probably unactionnable bugs because of lack of information  
| Help to identify probably unactionnable bugs because of lack of information  
|| Email
| Email
||
|
|- style="border:none;padding-top:0cm;padding-bottom:0cm;padding-left:0.053cm;padding-right:0.053cm;"
|-
|| not_landed.py
| not_landed.py
|| Bug with a r+ patch but the patch didn't land.
| Bug with a r+ patch but the patch didn't land.
|| Maybe a checkin-needed is required or the patch is obsolete  
| Maybe a checkin-needed is required or the patch is obsolete  
|| Email
| Email
||
|
|}
 
[[category:Release_Management|Autonag]]
Confirmed users
1,311

edits