Files
UnrealEngine/Engine/Source/ThirdParty/OpenVDB/openvdb-12.0.0/tsc/process/codereview.md
2025-05-18 13:04:45 +08:00

2.4 KiB

Code Reviewing and Merging OpenVDB Pull Requests

The Maintainers have write-access to the OpenVDB repository and are responsible for triaging, reviewing and ultimately merging or rejecting GitHub pull requests. This document lists the policy and best practices to guide the Maintainers in this process.

Policy

  • No direct commits to the master (or any other protected) branch, every code change should be a pull request
  • Any member of the community can provide feedback on any pull request (and is encouraged to do so)
  • A CODEOWNERS file introduced to the root of the repo to configure ownership (global, per-directory and/or per-file) - this will automatically request pull request reviews from the relevant maintainers (https://help.github.com/articles/about-codeowners/)
  • Minimum of one non-author Maintainer member approval on every pull request before merging
  • Non fast-forward merges must be used (ie the merge must not be rebased onto master)
  • Travis CI and DCO status checks must strictly pass before merging, ASWF Jenkins CI should loosely pass (https://help.github.com/articles/types-of-required-status-checks)

Best Practices

  • Prefer all requested reviewers to approve before merging
  • Merging a pull request should be the responsibility of the author if they are a Maintainer member
  • Any Maintainer member can merge a pull request authored by a non-Maintainer member, but with a preferred minimum of two approvals from Maintainer members (including themself)
  • Re-writing the branch history by rebasing a pull request branch just before a merge is discouraged, unless it significantly improves the overall history (such as any broken commits on the review branch that might make reverting or bisecting more difficult)
  • Prefer pull requests to be open for a minimum of 72 hours before merging in order to gather any feedback
  • Aim for all pull requests to be responded to by one of the Maintainer members within a minimum of two weeks with either explanation of non-acceptance, request for changes or merge
  • TSC meetings should regularly review and discuss any outstanding pull requests
  • Pull requests should link to the associated Jira ticket (if applicable) in the description or title, this provides a route back to the Jira ticket through the Git history (git blame -> PR merge -> Jira ticket)
  • All pull request comments should aim to be answered and resolved before committing