summaryrefslogtreecommitdiffstats
path: root/docs/bug-mgmt/policies/regressions-github.rst
blob: a981e79c5edf0f5fb6dd535ff3b26d51611747bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
Regressions from GitHub
=======================

Release Management and the weekly regression triage must be aware of the
status of all reported regressions in order to assure we are not
shipping known regressions in Firefox releases.

If a team is using GitHub to manage their part of the Firefox project,
there’s a risk that those groups might not see a regression.

We need an agreed to standard for how we keep track of these.

Policy
------

*All Firefox components, even if their bugs are tracked off of Bugzilla,
must have a component in Bugzilla.*

*If a regression bug is found in any of the release trains (Nightly,
Beta, Release, or ESR) and the bug is in a Firefox component which uses
an external repository, the regression must be tracked by a bug in
Bugzilla (whether or not the component in question uses an external
issue tracker).*

*Unless approved by Release Management, any GitHub managed code with
open regressions will not be merged to mozilla-central. Even if the
regression is not code that has been previously merged into
mozilla-central.*

*All Firefox code managed in GitHub which uses GitHub to manage
issues*  `must use the shared
tags <https://mozilla.github.io/bmo-harmony/labels>`__.

Comments
~~~~~~~~

The bug **must** have the regression keyword.

The bug **must** have release flags set.

If the team works in an external bug tracker, then the Bugzilla bug
**must** reference, using the see-also field, the URL of the bug in the
external tracker.

The bug **must not** be RESOLVED until the code from the external
repository containing the change set for the bug has landed in
mozilla-central. When the change set lands in mozilla-central, the
Bugzilla tracking bug should be set to RESOLVED FIXED and release status
flags should be updated to reflect the release trains the fix has been
landed or uplifted into.

If the change set containing the patch for the regression is reverted
from mozilla-central, for any reason, then the tracking bug for the
regression **must** be set to REOPENED and the release status flags
updated accordingly.

If the change set containing the patch for the bug is backed out, for
any reason, the bug must be reopened and the status flags on the
Bugzilla tracking bug updated.

The team responsible for the component with the regression **should**
strive to create a patch for mozilla-central which contains the fix for
the bug alone, not a monolithic patch containing changes for several
other bugs or features.

Landings of third-party libraries `must contain a manifest
file <https://docs.google.com/document/d/12ihxPXBo9zBBaU_pBsPrc_wNHds4Upr-PwFfiSHrbu8>`__.

Best Practices
--------------

You must file a regression bug in Bugzilla
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*If the code with the regression has landed in mozilla-central, you must
file a regression bug.*

Example
^^^^^^^

While using a release of Firefox (Nightly, Beta, Release, ESR) you run
across a bug. Upon research using MozRegression or other tools you find
that the bug was introduced in a change set imported from a component
whose code and issues are managed in GitHub.

Actions to take
'''''''''''''''

-  Open a new bug in Bugzilla in appropriate component and add the
   REGRESSION keyword
-  Set affected status for the releases where the bug appears
-  Open an issue in the corresponding GitHub project, put the Bugzilla
   bug number in the title with the prefix ‘Bug’ (i.e. “Bug 99999:
   Regression in foo”)
-  Add the REGRESSION label to the new issue
-  Add the link to the GitHub issue into the ‘See Also” field in the
   Bugzilla bug

Consequences
''''''''''''

*Until the regression is fixed or backed out of the GitHub repo, the
project cannot merge code into mozilla-central*

Example
^^^^^^^

You import a development branch of a component managed in GitHub into
your copy of master. You find a bug and isolate it to the imported
branch. The code is managed in their own GitHub project, but bugs are
managed in Bugzilla.

Actions to take
'''''''''''''''

-  Open a new bug in Bugzilla in appropriate component and add the
   REGRESSION keyword
-  Set affected status for the releases where the bug appears

Consequences
''''''''''''

*Until the regression is fixed or backed out of the GitHub repo, the
project cannot merge code into mozilla-central*

Do not file a regression bug in Bugzilla
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*If the code with the regression has not landed in mozilla-central, you
do not need to file a bug.*


Example
^^^^^^^

You import a development branch of a component managed in GitHub into
your copy of master. You find a bug and isolate it to the imported
branch. The code and issues are managed in their own GitHub project.


Actions to take
'''''''''''''''

-  File new issue in the GitHub repository of the imported code.
-  Label issue as REGRESSION

Consequence
'''''''''''

*Issue blocks merge of GitHub project with mozilla-central until
resolved or backed out.*