Bug triaging and issue curation#
The issue tracker is important to the communication in the project: it helps developers identify major projects to work on, as well as to discuss priorities. For this reason, it is important to curate it, adding labels to issues and closing issues that are not necessary.
Working on issues to improve them#
Improving issues increases their chances of being successfully resolved. Guidelines on submitting good issues can be found here. A third party can give useful feedback or even add comments on the issue. The following actions are typically useful:
documenting issues that are missing elements to reproduce the problem such as code samples
suggesting better use of code formatting
suggesting to reformulate the title and description to make them more explicit about the problem to be solved
linking to related issues or discussions while briefly describing how they are related, for instance “See also #xyz for a similar attempt at this” or “See also #xyz where the same thing happened in SomeEstimator” provides context and helps the discussion.
Working on PRs to help review#
Reviewing code is also encouraged. Contributors and users are welcome to participate to the review process following our review guidelines.
Triaging operations for members of the core and contributor experience teams#
In addition to the above, members of the core team and the contributor experience team can do the following important tasks:
Update labels for issues and PRs: see the list of the available github labels.
Determine if a PR must be relabeled as stalled or needs help (this is typically very important in the context of sprints, where the risk is to create many unfinished PRs)
If a stalled PR is taken over by a newer PR, then label the stalled PR as “Superseded”, leave a comment on the stalled PR linking to the new PR, and likely close the stalled PR.
Triage issues:
close usage questions and politely point the reporter to use Stack Overflow instead.
close duplicate issues, after checking that they are indeed duplicate. Ideally, the original submitter moves the discussion to the older, duplicate issue
close issues that cannot be replicated, after leaving time (at least a week) to add extra information
Saved replies are useful to gain time and yet be welcoming and polite when triaging.
See the github description for roles in the organization.
A typical workflow for triaging issues#
The following workflow [1] is a good way to approach issue triaging:
Thank the reporter for opening an issue
The issue tracker is many people’s first interaction with the scikit-learn project itself, beyond just using the library. As such, we want it to be a welcoming, pleasant experience.
Is this a usage question? If so close it with a polite message (here is an example).
Is the necessary information provided?
If crucial information (like the version of scikit-learn used), is missing feel free to ask for that and label the issue with “Needs info”.
Is this a duplicate issue?
We have many open issues. If a new issue seems to be a duplicate, point to the original issue. If it is a clear duplicate, or consensus is that it is redundant, close it. Make sure to still thank the reporter, and encourage them to chime in on the original issue, and perhaps try to fix it.
If the new issue provides relevant information, such as a better or slightly different example, add it to the original issue as a comment or an edit to the original post.
Make sure that the title accurately reflects the issue. If you have the necessary permissions edit it yourself if it’s not clear.
Is the issue minimal and reproducible?
For bug reports, we ask that the reporter provide a minimal reproducible example. See this useful post by Matthew Rocklin for a good explanation. If the example is not reproducible, or if it’s clearly not minimal, feel free to ask the reporter if they can provide and example or simplify the provided one. Do acknowledge that writing minimal reproducible examples is hard work. If the reporter is struggling, you can try to write one yourself.
If a reproducible example is provided, but you see a simplification, add your simpler reproducible example.
Add the relevant labels, such as “documentation” when the issue is about documentation, “Bug” if it is clearly a bug, “Enhancement” if it is an enhancement request, …
If the issue is clearly defined and the fix seems relatively straightforward, label the issue as “Good first issue”.
An additional useful step can be to tag the corresponding module e.g.
sklearn.linear_models
when relevant.Remove the “Needs Triage” label from the issue if the label exists.