Repository navigation
docs: keep a bug fix to its own scope - #17274
Merged
Merged
Conversation
A pull request that fixes, or sets out to fix, a bug or an issue is approved on the bug it claims to fix, the regressions it causes against its base branch and its own new code. A review finding that behaves the same on the base branch is pre-existing: a reviewer can suggest taking it on, but that is optional and never a condition of approval, and by default it goes to an issue or a pull request of its own. Pull requests that add features or other new functionality are not covered. Adds the rule to CONTRIBUTING.md under the change review process, and to AGENTS.md as critical rule 15 with a bug-fix scope section.
9 of 17 tasks
A pre-existing finding goes to an issue or a separate pull request by default; the rule does not say which branch that pull request targets or whether it is backported.
Contributors to an Apache project are volunteers who choose what they work on, so a review can suggest taking on a pre-existing finding but cannot require it. A review labels such a suggestion as optional, also when an agent helped write it, and AGENTS.md tells reviewing agents to.
Quote and link How the ASF works, the Committers' FAQ, the Apache Voting Process and the Incubator's Guide to Successful Community Building where the bug-fix scope rule says that a review can suggest more work but cannot require it.
This was referenced Dec 2, 2026
jdaugherty
marked this pull request as ready for review
December 2, 2026 15:06
jamesfredley
approved these changes
Dec 2, 2026
Contributor
Author
|
This was approved via the weekly meeting, merging. |
14 of 16 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds a rule that keeps a bug fix to its own scope, so that a fix that needs to ship soon is not held up by bugs that were already there. Contributors to an Apache project are volunteers who set their own priorities, so a review can suggest more work but cannot require it (see ASF basis below), and reviews written with agents have been presenting such suggestions as required changes. It is proposed on dev@ in the thread "[DISCUSS] Keep a bug-fix pull request to the bug it fixes", and should merge only once that thread has settled. It replaces #17273, which had the same change on a fork branch.
What the rule says
Where
CONTRIBUTING.md: a new subsection, "Keeping a Bug Fix to Its Scope", at the end of "Change Review Process".AGENTS.md(whichCLAUDE.mdlinks to): critical rule 15, and a "Bug-fix scope" section under "Pull Request Guidelines".It targets 7.0.x so that every release branch gets the rule through the usual merge-up.
ASF basis
Why: November 2026
I went through the reviews on the 41 public pull requests I took part in from 2026-11-01 to 2026-12-01. I counted each time a pull request took on behaviour that was the same on its base branch without it, whether a review asked for it or the author (often me) widened it unasked. A regression the pull request caused, or a bug in its own new code, is not counted.
Effect on 8.0.1
src/main.Examples
At least three of my asks offered a way out ("If that is too far from #16813, say so", "Either restore the previous cacheable value or say in the Javadoc that it stays off", "If H5 queries are meant to be out of scope here, please say so"). Each time, the pull request took the fix on. That is why the rule makes the expanded scope explicitly optional, rather than leaving it to the reviewer's wording.
Per pull request
8.0.xstacked8.0.x7.0.x9.0.x7.0.x8.0.x8.0.xstacked9.0.xstacked8.0.x7.0.xstackedstacked7.0.x7.0.x8.0.x9.0.x7.0.x7.0.x8.0.x8.0.x8.1.x8.0.x7.0.x8.0.x7.2.x8.0.x7.0.xstacked7.0.x7.0.x7.0.xmain8.0.x8.0.x9.0.x8.0.xstacked8.0.xAll 92 cases
"Kind" says who started it. "Base result shown" is yes when the thread shows the same result on the base branch. Times run from the ask to the commits that addressed it; for my own expansions there is no ask to time from.
The cases were classified from the review threads; nothing was re-run for this summary. Several cases can share a review round, so the per-case numbers are not summed into review totals; the per pull request review counts come from GitHub.
Contributor Checklist
Please review the following checklist before submitting your pull request. Pull requests that do not meet these requirements may be closed without review.
Issue and Scope
7.0.x,7.2.x,8.0.x): Bug fixes only, released as the next patch version. No new features or API changes. A bug fix targets the oldest release branch that has the bug and still gets releases, and is merged up.8.1.xbefore 8.1.0): New features are welcome, but breaking existing APIs must be avoided.9.0.xbefore 9.0.0): Reserved for major changes. Breaking API changes are permitted.grails-skills/upgrade/skills/grails-upgrade/SKILL.md) has the same entry.Code Quality
./gradlew build --rerun-tasks../gradlew codeStyleand resolved any violations. See Code Style for details. (Documentation only.)Licensing and Attribution
Documentation