Repository navigation
gh-1815: Clarify when to open issues and pull requests #1957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
picnixz
wants to merge
5
commits into
python:main
Choose a base branch
from
picnixz:fixing-issues-triage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+116
−9
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
117785f
Explain when an issue is ready to be worked on
picnixz 2c7275b
Explain how changes are proposed and when a pull request is needed
picnixz 3ee4c1d
Recommend `pyperf timeit` and `-X importtime` for benchmarks
picnixz cfbc33b
Link the typo and NEWS guidance instead of repeating it
picnixz 21e3273
List reports that are not bugs on the issue tracker page
picnixz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,10 +16,59 @@ For the truly adventurous looking for a challenge, you can look for issues that | |
| are not considered easy and try to fix those. It must be warned, though, that | ||
| it is quite possible that a bug that has been left open has been left into that | ||
| state because of the difficulty compared to the benefit of the fix. It could | ||
| also still be open because no consensus has been reached on how to fix the | ||
| issue, although having a pull request that proposes a fix can turn the tides of the | ||
| discussion to help bring it to a close. Regardless of why the issue is open, | ||
| also still be open because nobody agreed on how to fix it (see | ||
| :ref:`fixing-issues-readiness`). Regardless of why the issue is open, | ||
| you can also always provide useful comments if you do attempt a fix, successful | ||
| or not. | ||
|
|
||
|
|
||
| .. _fixing-issues-readiness: | ||
|
|
||
| Check that the issue is ready to be worked on | ||
| ============================================= | ||
|
|
||
| An obvious bug that nobody is working on can be fixed directly, but most | ||
| other issues have to be confirmed as worth fixing first, as they may be | ||
| duplicates, feature requests filed as bugs, already rejected features, etc. | ||
| A genuine bug is not always fixed either, since the fix may break existing | ||
| code and its impact has to be weighed. In that case, wait until a triager | ||
| or a core team member has acknowledged the issue. | ||
|
|
||
| If you are unsure, ask in the issue, but avoid superfluous comments, since | ||
| every comment notifies everyone following the issue. Issues are not | ||
| assigned to contributors who ask for it, but once an issue has been | ||
| acknowledged and is still relevant, you can start working on it and | ||
| mention it in the issue. | ||
|
|
||
| Before opening a pull request, read the whole discussion and check that the | ||
| issue still applies to the latest state of the branch you are targeting, | ||
| usually ``main``: an acknowledged issue may have been fixed since, or the | ||
| code it describes may have changed. For old issues, reporting that the | ||
| behaviour can no longer be reproduced on a supported Python version (see | ||
| :ref:`branchstatus`) is helpful on its own. | ||
|
|
||
| In general, avoid opening a pull request if: | ||
|
|
||
| * the issue has the :gh-label:`pending` label; | ||
| * the issue is old and its discussion never reached consensus; | ||
| * someone, such as the issue's author, already said they would open one; | ||
| * a pull request for the issue already exists. | ||
|
|
||
| In the last two cases, if there has been no activity for a while, ask the | ||
| contributor whether they still want to work on it. | ||
|
|
||
| Do not use automated tools to open pull requests on new issues either: a | ||
| pull request on an untriaged issue costs triagers more time than the issue | ||
| alone (see :ref:`ai-tools`). | ||
|
|
||
|
|
||
| .. _fixing-issues-no-pullrequest: | ||
|
|
||
| Consider whether a pull request is needed | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "what is an issue" is in the issue-tracker, but that tracker is in the triage page. I think it makes more sense to have it with the rest of the issues templates but I (and Claude) wasn't able to find a place in getting-started. So I added this section here. |
||
| ========================================= | ||
|
|
||
| Before writing a pull request, check that the report describes an actual | ||
| bug (see :ref:`issue-tracker-not-a-bug`). | ||
|
|
||
|
|
||
| .. _"easy" issues: https://github.com/python/cpython/issues?q=is%3Aissue+is%3Aopen+label%3Aeasy | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to say "avoid asking in the issue 'any updates?'" if you're not interested by the feature at all... But I don't know how to say it (which is why I limited myself to the last 2 cases).
For very old issues I think it's better we find them once again if someone submits a newer report or if someone raises the issue again because they encountered the same problem rather than someone wanting to contriubute and randomly picking a very old issue.