Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/docs/ISSUE_TRIAGE.md

raw symbols SCIP
1 <!--
2 Copyright (c) 2022 Dell Inc., or its subsidiaries. All Rights Reserved.
3
4 Licensed under the GPL, Version 3.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 https://www.gnu.org/licenses/gpl-3.0.txt
9 -->
10
11 # Triage issues
12
13 The main goals of an issue triage are to categorize open issues based on priority and to ensure that these issues contain adequate information for contributors to work on them.
14
15 > **Note:** This information is for project Maintainers, Owners, and Admins. If you are a Contributor, then you will not be able to perform most of the tasks in this topic.
16
17 The core maintainers of this project are responsible for categorizing all incoming issues and delegating any critical or important issue to other maintainers. Triage provides an important way to contribute to an open source project.
18
19 A triage helps resolve issues quickly by :
20
21 - Ensuring the intent of an issue is clear. The issue should clearly describe the problem the end user is experiencing as well as the steps to reproduce the problem.
22 - Giving a contributor the information they need before they commit to resolving an issue.
23 - Streamlining the development process by identifying and closing duplicate issues.
24
25 If you don't have the knowledge or time to code, consider helping with triage. The community will thank you for saving them time by spending some of yours.
26
27 ## 1. Find issues that need triage
28
29 The easiest way to find issues that haven't been triaged is to search for issues with the `needs-triage` label.
30
31 ## 2. Ensure the issue contains basic information
32
33 When creating a new issue, the author must provide all of the information required by the project's GitHub issue template
34
35 ### Standard issue information that must be included
36
37 The following section describes the various issue templates and the expected content.
38
39 #### Bug reports
40
41 A bug report should contain explanation of what the problem is, what the expected outcome is, and how to reproduce the problem. Additionally, any other supporting information such as screenshots, console logs, and environment details should be included in the bug report.
42
43 - Product Name/Version
44 - Component/Module Name
45 - Ansible Collection Version
46 - Configuration
47 - Steps to Reproduce
48 - Expected/Actual Behavior
49 - Logs/Screenshots
50 - Any other additional information...
51
52 #### Feature requests
53
54 Should explain what feature that the author wants to be added and why that is needed.
55
56 #### Ask a Question requests
57
58 In general, if the issue description and title are perceived as questions no more information is needed.
59
60 ### Good practices
61
62 To make issue handling easier for everyone, it is suggested to:
63
64 - Make sure that issue titles are named to explain the subject of the issue, have correct spelling, and don't include irrelevant information and/or sensitive information.
65 - Make sure that issue descriptions don't include irrelevant information.
66 - Make sure that issues do not contain sensitive information.
67 - Make sure that issues have all relevant fields filled in.
68 - If an issue is unclear, then try to edit the title and description for more clarity or leave a comment requesting that edits to the issue be made.
69
70 ### Dealing with missing information
71
72 Depending on the issue, you might not feel all this information is needed. Use your best judgement. If you cannot triage an issue using what its author provided, explain kindly to the author that they must provide the above information to clarify the problem. Label issue with `triage/needs-information`.
73
74 If the author provides the standard information but you are still unable to triage the issue, then request additional information. Do this kindly and politely because you are asking for more of the author's time. Label issue with `triage/needs-information`.
75
76 If the author does not respond to the requested information within the timespan of a week, close the issue with a kind note stating that the author can request for the issue to be reopened when the necessary information is provided.
77
78 If you receive a notification that additional information was provided but you are no longer working on issue triage, then you should delegate the issue to the current person working on issue triage.
79
80 ## 3. Categorizing an issue
81
82 ### Duplicate issues
83
84 Make sure it's not a duplicate by searching existing issues using related terms from the issue title and description. If you think the issue may be a potential duplicate and can't find the original existing issue, then please reach out to one of the maintainers and ask for help. If you identify that the issue is a duplicate of an existing issue:
85
86 1. Add a comment `duplicate of #<issue number>`
87 2. Add the `triage/duplicate` label
88
89 ### Bug reports
90
91 If it's not perfectly clear that it's an actual bug, quickly try to reproduce it.
92
93 **It's a bug/it can be reproduced:**
94
95 1. Add a comment describing detailed steps for how to reproduce it, if applicable.
96 2. If maintainers aren't able to address the issue in a timely manner, then label the issue with `help wanted` and an optional `beginner friendly`. Also, include pointers to the problematic source code. Doing this allows us to solicit help from the community to get the issue resolved.
97 3. Move on to [prioritizing the issue](#4-prioritization-of-issues).
98
99 **It can't be reproduced:**
100
101 1. Either request that [more information](#2-ensure-the-issue-contains-basic-information) is needed to investigate the issue more thoroughly. Provide details in a comment. <br>
102 or <br>
103 2. [delegate further investigations](#investigation-of-issues) to someone else. Provide details in a comment.
104
105 **It works as intended/by design:**
106
107 1. Kindly and politely add a comment explaining briefly why we think it works as intended and close the issue.
108 2. Label the issue `triage/works-as-intended`.
109 3. Remove the `needs-triage` label.
110
111 ### Feature requests
112
113 1. If the feature request does not align with the product vision, add a comment indicating so, remove the `needs-triage` label and close the issue
114 2. Otherwise, move on to [prioritizing the issue](#4-prioritization-of-issues). Assign the appropriate priority label to the issue, add the appropriate comments to the issue, and remove the `needs-triage` label.
115
116 ## 4. Prioritization of issues
117 In general, bugs and feature request issues should be labeled with a priority.
118
119 This can be the most difficult task when triaging issues since it requires a lot of knowledge, context, and experience before being able to start feeling comfortable adding a certain priority label.
120
121 In order to gain comfort with prioritizing issues, consulting with experienced project members on issues is highly encouraged.
122
123 In case there is an uncertainty around the prioritization of an issue, please ask the maintainers for help.
124
125 | Label | Description |
126 | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
127 | `priority/critical` | Highest priority. Must be actively worked on as someone's immediate top priority. |
128 | `priority/high` | Must be worked on soon, ideally in time for the next release. |
129 | `priority/low` | Lowest priority. Possibly useful, but not critical to functionality. |
130
131 ### Critical priority
132
133 1. If an issue has been categorized and any of the following criteria apply to it, then the issue should be labeled as critical and must be actively worked on as someone's immediate top priority.
134
135 - Results in any data loss
136 - Critical security or performance issues
137 - Problem that makes a feature unusable
138 - Multiple users experience a severe problem affecting their business, users, etc.
139
140 2. Label the issue `priority/critical`.
141 3. Escalate the problem to the maintainers.
142 4. Assign the issue or ask a maintainer for help assigning the issue to someone as their immediate top priority.
143 5. Add the issue to the next upcoming release milestone.
144
145 ### High priority
146
147 1. Label the issue `priority/high`.
148 2. Add the issue to the next upcoming release milestone.
149 3. Prioritize it or assign someone to work on it now or very soon.
150 4. Consider requesting [help from the community](#5-requesting-help-from-the-community).
151
152 ### Low priority
153
154 1. If the issue is deemed possibly useful but is a low priority, then label the issue `priority/low`.
155 2. The functional impact of an issue determines how high of a priority the issue is.
156 3. Consider requesting [help from the community](#5-requesting-help-from-the-community).
157
158 ## 5. Requesting help from the community
159
160 Due to constraints, maintainers aren't always able to resolve issues in a timely manner, especially those of lower priority. For such issues, consider requesting help from the community. Use your best judgement. In general, requesting help from the community means that a contribution has a good chance of getting accepted and merged.
161
162 In many cases, the issue author or the community is most suitable to contribute changes since they're experts in their domain. Also, it's very common for someone to seek help from the community on a problem.
163
164 1. Kindly and politely add a comment which will notify the users subscribed to the issue of any updates.
165 - Explain that the issue would be nice to get resolved, but it isn't prioritized to be worked on by maintainers for the foreseeable future.
166 - If possible or applicable, try to help contributors get started by adding pointers to relevant source code or files as well as adding any helpful input on how to resolve the issue.
167 2. Label the issue with `help wanted`.
168 3. If applicable, label the issue with `beginner friendly` to denote that the issue is suitable for a beginner to work on.
169
170 ## Investigation of issues
171
172 When an issue has all basic information provided, but the reported problem cannot be reproduced at a first glance, label the issue `triage/needs-information` and post a comment explaining why this label is being applied. Depending on the perceived severity and/or number of upvotes, the investigation will either be delegated to another maintainer for further investigation or put on hold until someone else (maintainer or contributor) picks it up and eventually starts investigating it.
173
174
175 Even if you don't have the time or the knowledge to investigate an issue we highly recommend that you upvote the issue if you happen to have the same problem. If you have further details that may help with investigating the issue please provide as much information as possible.
176
177 ## External pull requests
178
179 Part of issue triage should also be triaging of external PRs. The main goal should be to make sure PRs from external contributors have an owner/reviewer and are not forgotten.
180
181 1. Check new external PRs which do not have a reviewer.
182 1. Check if there is a link to an existing issue.
183 1. If not and you know which issue it is solving, add the link yourself, otherwise ask the author to link the issue or create one.
184 1. Assign a reviewer based on who was handling the linked issue or what code or feature the PR touches (look at who was the last to make changes there if all else fails).
185
186 ## GitHub issue management workflow
187
188 The following section describes the triage workflow for new GitGHub issues that get created.
189
190 ### GitHub Issue: Bug
191
192 This workflow starts off with a GitHub issue of type bug being created.
193
194 1. Collaborator or maintainer creates a GitHub bug using the appropriate GitHub issue template
195 2. By default a bug will be created with the `type/bug` and `needs-triage` labels
196
197 The following flowchart defines the workflow,
198
199
200 ```
201 +--------------------------+
202 | New bug issue opened/more|
203 | information added |
204 +-------------|------------+
205 |
206 |
207 +----------------------------------+ NO +--------------|-------------+
208 | label: triage/needs-information --------- All required information |
209 | | | contained in issue? |
210 +-----------------------------|----+ +--------------|-------------+
211 | | YES
212 | |
213 +--------------------------+ | +---------------------+ YES +---------------------------------------+
214 |label: | | | Duplicate Issue? ------- Comment `Duplicate of #<issue number>`
215 |triage/needs-investigation| | NO | | | Remove needs-triage label |
216 +------|-------------------+ | +----------|----------+ | label: triage/duplicate |
217 | | | NO +-----------------|---------------------+
218 YES | | | |
219 | +---------------|----+ NO +------------|------------+ |
220 | |Needs investigation?|---------- Can it be reproduced? | |
221 |------- | +------------|------------+ |
222 +--------------------+ | YES |
223 | +----------|----------+
224 +-------------------------+ +------------|------------+ | Close Issue |
225 | Add release-found label |------------------ Works as intended? | | |
226 | label: release-found/* | NO | | +----------|----------+
227 +------------|------------+ +------------|------------+ |
228 | | |
229 | | YES |
230 | +----------------|----------------+ |
231 +--------------------------+ | Add comment | |
232 | Add area label | | Remove needs-triage label ------------------|
233 | label: area/* | | label: triage/works-as-intended |
234 +-------------|------------+ +---------------------------------+
235 |
236 | +----------+
237 | | Done ----------------------------------------
238 | +----|-----+ |
239 | |NO |
240 | | +------------------|------------------+
241 +------------|-------------+ +----|----------------+ YES | Add details to issue |
242 | ------------ Signal Community? ---------- label: help wanted |
243 |Remove needs-triage label | | | | label: beginner friendly (optional)|
244 +--------------------------+ +---------------------+ +-------------------------------------+
245
246 ```
247
248 ### GitHub Issue: Feature request
249
250 ```
251 +---------------------------------+
252 |New feature request issue opened/|
253 |more information added |
254 +----------------|----------------+
255 |
256 |
257 +---------------------------------+ NO +-------------|------------+
258 | label: triage/needs-information ---------- All required information |
259 | | | contained in issue? |
260 +---------------------------------+ +-------------|------------+
261 |
262 |
263 +---------------------------------------+ |
264 |Comment `Duplicate of #<issue number>` | YES +----------|----------+
265 |Remove needs-triage label ------- Duplicate issue? |
266 |label: triage/duplicate | | |
267 +-----|---------------------------------+ +-----------|---------+
268 | |NO
269 | +-------------------------+ NO +-----------------------------+
270 | |Add comment |-------- Is this a valid feature? |
271 | |Remove needs-triage label| | |
272 | +------|------------------+ +--------------|--------------+
273 | | | YES
274 | | |
275 | | +---------------|--------------+
276 | | | label: type/feature |
277 +-|---------|---+ +--------+ | Remove needs-triage label |
278 | Close issue | | Done ------ Remove type/feature-request |
279 | | | | | milestone? |
280 +---------------+ +--------+ +------------------------------+
281 ```
282 If the author does not respond to a request for more information within the timespan of a week, close the issue with a kind note stating that the author can request for the issue to be reopened when the necessary information is provided.
283
284 In some cases you may receive a request you do not wish to accept.  Perhaps the request doesn't align with the project scope or vision.  It is important to tactfully handle requests that don't meet the project standards.
285
286 1. Acknowledge the person behind the request and thank them for their interest and request.
287 2. Explain why it didn't fit into the scope of the project or vision.
288 3. Don't leave an unwanted request open.  Immediately close the request you do not wish to accept.
289
290
291