Skip to content

Patch Review Process

sbenthall edited this page May 25, 2011 · 11 revisions

GeoNode Patch Review Process

THIS IS A DRAFT PROPOSAL. IT HAS NOT YET BEEN VOTED INTO EFFECT BY THE PSC.

This document outlines the code review process for GeoNode code. Each commit proposed for inclusion in GeoNode should be reviewed by at least one developer other than the author. For pragmatic reasons, some developers, referred to in this document as core committers, may commit directly to the GeoNode repository without waiting for review. Such changes are still subject to review and may be reverted if the change introduces problems outlined in Quality Guidelines.

A related process is Improvement Proposals. While patch review protects code quality in the GeoNode project at a small granularity, the Improvement Proposal process is intended to promote coordinated design and feedback for larger modifications such as new features or architectural changes.

Goals

By requiring a review of code coming into GeoNode, we aim to maintain code quality within the GeoNode project while still allowing contributions from the GeoNode community.

The specific qualities we aim to preserve are described in Quality Guidelines.

Process

For contributors who do not have commit access to the GeoNode repository, the review process is as follows:

  1. Find or create a ticket describing the feature or bug to be resolved.
  2. Create changes to GeoNode code addressing the ticket.
  3. Publish those changes and request a review from the GeoNode committers. The recommended format is a GitHub pull request. If you are unable or unwilling to provide a change as a branch on GitHub, some other options are listed in :doc:/git-in-geonode.
  4. At least one GeoNode committer should review the submitted changes. If he finds the patch acceptable, the changes will be pulled into GeoNode. If problems are found, then he should list them clearly in order to allow the original author to update the submission (at which point we return to point 2 in this process.) In the case of a feature idea which is simply not suitable for inclusion as core GeoNode functionality, the patch may be rejected outright.

Code Review Flow

The general workflow for code patches coming into GeoNode.

Core Committers

It is assumed that core committers are familiar with the quality guidelines and capable of producing acceptable patches without the need for waiting on review. Therefore, core committers may make changes without requesting review first (although they are welcome to request review for code if they feel it is appropriate.) For commits made without prior review, committers should review the changes and revert them if they are in violation of the project quality guidelines.

Becoming a Core Committer

In order for a developer to become a core committer, he must demonstrate familiarity with the quality guidelines for the GeoNode project by producing at least two patches which successfully pass review and are merged without requiring modification. A candidate for core committer-ship must be nominated by a member of the Project Steering Committee, and approved via Apache consensus voting among PSC members.

Clone this wiki locally