This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new e5bffb4fd2e HDDS-16938. Move contributor and committer guidelines to 
CONTRIBUTING.md (#11488)
e5bffb4fd2e is described below

commit e5bffb4fd2ec5dc8c5e0679ef4b4bfab1c7b0238
Author: Siyao Meng <[email protected]>
AuthorDate: Sun Oct 18 01:01:51 2026 -0700

    HDDS-16938. Move contributor and committer guidelines to CONTRIBUTING.md 
(#11488)
---
 AGENTS.md       | 57 ++++++++-------------------------------------------------
 CONTRIBUTING.md | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+), 49 deletions(-)

diff --git a/AGENTS.md b/AGENTS.md
index 41de8a14ca7..7da7bc46477 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -120,59 +120,18 @@ Key paths:
 - `hadoop-ozone/dev-support/checks`: scripts that mirror CI checks
 - `.run/`: IDE launch configurations for local services and HA topologies
 
-## Change Boundaries
-
-- Keep service responsibilities separated.
-  Do not move OM logic into SCM paths, bypass existing request/response layers,
-  or introduce cross-service shortcuts just because they are convenient.
-- When changing a wire type, expect to update the Protobuf definition,
-  translators, server-side logic, and relevant compatibility or integration 
tests.
-- Prefer existing bucket-layout, snapshot, and upgrade abstractions over 
one-off conditionals.
-- Do not hand-edit generated sources or generated web artifacts when a source 
file or generation step exists.
-- For integration coverage, extend an existing suite, base class, or cluster 
provider
-  before creating a new `MiniOzoneCluster` lifecycle.
-  Reuse existing cluster utilities where practical.
-
-## Coding Standards
-
-- Use 2-space indentation and stay within 120 characters.
-- Add the Apache license header to new files unless the surrounding area is 
explicitly exempted by RAT configuration.
-- Do not add `@author` tags.
-- Keep comments concrete and local to the code. Avoid vague architecture prose 
or newly invented terminology.
-- Prefer existing helpers and utility methods over new abstractions for 
single-call-site use.
-- When touching code that already follows a specific local pattern,
-  stay consistent with that pattern instead of normalizing the whole file.
-
-## Testing Standards
-
-- New behavior and bug fixes should come with tests.
-- Start with the narrowest useful test:
-  - unit tests for local logic
-  - integration tests when the behavior depends on service boundaries, cluster 
lifecycle, storage, RPC, or upgrade flows
-- When adding integration coverage, prefer merging it into an existing suite
-  over creating a brand-new test class that spins up another cluster for 
similar coverage.
-- Before wrapping up a non-trivial change, run 
`./hadoop-ozone/dev-support/checks/checkstyle.sh`.
+## Contribution Guidelines
+
+Follow the guidelines in [`CONTRIBUTING.md`](./CONTRIBUTING.md): the pull 
request workflow and guidelines,
+code conventions, design guidelines, and tests. Committers should also follow 
its committer guidelines.
+
+Before wrapping up a change:
+
+- For a non-trivial change, run 
`./hadoop-ozone/dev-support/checks/checkstyle.sh`.
 - If you added files or changed license headers, run 
`./hadoop-ozone/dev-support/checks/rat.sh`.
 - If you touched shell tooling, run 
`./hadoop-ozone/dev-support/checks/bats.sh`.
 - Use `acceptance.sh` and `kubernetes.sh` only when the changed area actually 
depends on those environments.
 
-## Commits and PRs
-
-- Every change should map to an Apache Jira in the HDDS project.
-- Branch names usually start with the Jira ID, for example `HDDS-1234`.
-- PR titles must be `HDDS-1234. Short summary of the change`.
-- Prefer commit subjects that also start with the Jira ID when it is known,
-  for example `HDDS-1234. Fix snapshot purge regression`.
-- For larger changes, use incremental commits so reviewers can inspect the 
delta.
-  Do not rewrite branch history unless explicitly asked.
-- To bring a branch up to date with `master`, merge instead of rebasing: `git 
merge --no-edit origin/master`
-- Avoid force-push when updating a PR unless a maintainer explicitly asks for 
rewritten history.
-- PR descriptions should include the Jira link, the problem statement,
-  the chosen approach, and how the patch was tested.
-- When non-trivial content is generated with AI tooling,
-  disclose it in the PR description as `Generated-by: TOOL (MODEL)`.
-  See the ASF generative tooling policy.
-
 ## Ask First
 
 - Large new features or design changes that may need an Ozone Enhancement 
Proposal
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 16a2487bb8e..0240710e219 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -109,9 +109,11 @@ We use GitHub pull requests for contributing changes to 
the repository. The main
   4. Create a local branch for your contribution (eg. `git checkout -b 
HDDS-1234`)
   5. Make your changes locally.
      * For complex changes, committing each logical part is recommended.
+     * Start commit messages with the Jira ID, e.g. `HDDS-1234. Fix snapshot 
purge regression`.
   6. Push your changes to your fork of Ozone
   7. Wait for the `build-branch` workflow to complete successfully for your 
commit.
   8. Create a pull request for your changes
+     * Use the Jira ID and summary as the PR title, e.g. `HDDS-1234. Fix 
snapshot purge regression`.
      * Please include the Jira link, problem description and testing 
instruction (follow the 
[template](https://github.com/apache/ozone/blob/master/.github/pull_request_template.md))
   9. Set the Jira issue to "Patch Available" state
   10. Address any review comments if applicable
@@ -121,6 +123,22 @@ We use GitHub pull requests for contributing changes to 
the repository. The main
       * In general, please try to avoid force-push when updating the PR.  Here 
are some great articles that explain why:
         * 
https://developers.mattermost.com/blog/submitting-great-prs/#4-avoid-force-pushing
         * 
https://www.freecodecamp.org/news/optimize-pull-requests-for-reviewer-happiness#request-a-review
+
+### Pull request guidelines
+
+* Keep distinct issues in separate PRs, and avoid unrelated changes, such as 
reformatting or renaming adjacent code.
+* Move build changes, refactoring or cleanup into a follow-up PR when they 
obscure the functional change.
+* For cleanup, consider compatibility and deprecation before removing public 
interfaces, and notify the original authors when practical.
+* For test fixes, inspect the failure evidence and address the cause instead 
of only increasing a timeout.
+* Keep the PR in draft while the implementation is unstable, fork CI is 
failing, or you are still addressing review comments.
+* CI resources are shared. Do not run CI for obsolete revisions, trigger it 
only when necessary, and do not rerun unrelated flaky tests that are already 
fixed on `master`.
+* If you use generative AI tooling, validate its analysis and proposed fixes 
before relying on them, and keep PR descriptions concise. When it produced 
non-trivial content, disclose it in the PR description as `Generated-by: TOOL 
(MODEL)`, see the [ASF Generative Tooling 
Guidance](https://www.apache.org/legal/generative-tooling.html).
+
+## Committer guidelines
+
+* Allow at least 24 hours for contributors in all time zones to provide 
feedback before merging non-trivial PRs, except for fixes of CI breakage.
+* Before merging another PR to `master`, wait until most CI jobs for the 
previous merge have completed (typically about one hour), leaving CI capacity 
for other PRs.
+
 ## Code convention and tests
 
 Basic code conventions followed by Ozone:
@@ -136,6 +154,20 @@ Ozone code style is shared via `.editorconfig` 
configuration file and will be au
 
 See 
https://www.jetbrains.com/help/idea/configure-project-settings.html#share-project-through-vcs
 for detailed instructions.
 
+### Design guidelines
+
+* Match the surrounding code. Reuse existing helpers, test scaffolding and 
abstractions (e.g. bucket layout, snapshot, upgrade) instead of adding one-off 
conditionals or new abstractions for a single call site.
+* Keep service responsibilities separated. Do not move OM logic into SCM 
paths, bypass existing request/response layers, or introduce cross-service 
shortcuts.
+* Changing a wire type usually requires updating the Protobuf definition, 
translators, server-side logic, and compatibility or integration tests.
+* Do not hand-edit generated sources or web artifacts when a source file or 
generation step exists.
+* Keep comments concrete and local to the code.
+
+### Tests
+
+* New behavior and bug fixes should come with tests.
+* Start with the narrowest useful test: unit tests for local logic, 
integration tests when the behavior depends on service boundaries, cluster 
lifecycle, storage, RPC or upgrade flows.
+* Prefer extending an existing test suite, base class or cluster provider over 
creating a new `MiniOzoneCluster` lifecycle for similar coverage.
+
 ### Check your contribution
 
 The [`hadoop-ozone/dev-support/checks` 
directory](https://github.com/apache/ozone/tree/master/hadoop-ozone/dev-support/checks)
 contains scripts to build and check Ozone.  Most of these are executed by CI 
for every commit and pull request.  Running them before creating a pull request 
is strongly recommended.  This can be achieved by enabling the `build-branch` 
workflow in your fork and letting GitHub run all of the checks, but most of the 
checks can also be run locally.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to