openstack-manuals/doc/contributor-guide/source/docs-review.rst

7.0 KiB

Reviewing documentation

To see what documentation changes are ready for review, use the Documentation Program Dashboard. It is organized in groupings based on the audience for the documentation. To see current proposed changes, make sure you register and log into https://review.openstack.org. For more details on the review process, see Code Review.

Repositories and core team

The OpenStack Docs team is core for api-site, openstack-manuals, operations-guide, openstackdocstheme, and openstack-doc-tools projects.

For the following repositories that are part of the Documentation program, special rules apply:

  • docs-specs: has a separate core team, see docs-specs <blueprints-and-specs> section.
  • security-doc: has a separate core team consisting of Docs team members and Security team members. The rule here is that each patch needs an approval by a Docs core and a Security core.
  • training-guides: has a separate core team.
  • training-labs: has a separate core team.

The current list of docs cores for openstack-manuals can be found at https://review.openstack.org/#/admin/groups/30,members.

Achieving a core reviewer status

Core reviewers are able to +2 and merge content into the projects they have the core status in. Core status is granted to those who have not only done a lot of reviews, but who also have shown care and wisdom in those reviews. Becoming a core reviewer also carries with it a responsibility: you are now the guardian of the gate, and it is up to the core team to ensure that nothing untoward gets through, without discouraging contributions. The core reviewer's role is complex, and having a great core team is crucial to the success of any OpenStack project.

With great power comes great responsibility.

For this reason, we want to ensure that we have a suitably small team of core reviewers, but that each core reviewer we have is active and engaged. In order to do this, we changed the process for achieving core reviewer status to ensure there was a good mix between a statistics-based and nomination-based approach. This means a couple of things:

  • The core team changes slightly faster than before, with inactive core team members being removed and new, active core team members being added on a more regular basis.
  • Now, the existing core team can act faster on recognizing valuable team members.

The process is:

How to review a documentation patch

Before you proceed with reviewing patches, make sure to read carefully the Review Guidelines for documentation and Code Review Guidelines. Once done, follow the steps below to submit a patch review.

  1. Go to the Documentation Program Dashboard.
  2. Click a patch set.
  3. Click a file that was uploaded to view the changes side by side.
  4. If you see some inconsistencies or have questions to the patch owner, double click the line in question for a Comment field to appear. Click Save button once you write a draft of your comment.
  5. In the Jenkins check section, click the Jenkins checkbuild gate link (for the openstack-manuals, it is called gate-openstack-manuals-tox-doc-publish-checkbuild) and review the built manuals to see how the change will look on the web page. For a new patch, it takes some time before Jenkins checks appear on the Gerrit page. You can also build the patch locally if necessary.
  6. Click Review to vote and enter any comments about your review, then click Publish Comments.

Note

The patch with WorkInProgress (WIP) status needs additional work before it gets merged. Therefore, you may skip such a patch and review once it is ready. For more information, see Work In Progress.

How to build an existing patch locally

Before proceeding, make sure you have all the necessary tools <setting_up_for_contribution> installed and set up for contribution.

To build a patch locally:

  1. In terminal, switch to a necessary directory. For example:

    cd openstack-manuals
  2. Run the below command to create a local branch with the patch in question:

    git review -d <nnnn>

    where the value of <nnnn> is a Gerrit commit number. For example, 226632 is the commit number of the patch https://review.openstack.org/#/c/226632.

  3. Build all the books that are affected by changes in the patch set:

    sudo tox -e checkbuild
  4. Find the build result in openstack-manuals/publish-docs/index.html.

  5. Review the source and the output. You are also welcomed to edit and update the patch:

    1. Ensure that your edits adhere to the Writing Style <stg_writing_style> for OpenStack documentation and uses standard US English.

    2. Once the build and new output are good to commit, run:

      git commit -a --amend
    3. When the editor opens, update the commit message if necessary. But do not add information on what your specific patch set changes. A reviewer can use the Gerrit interface to see the difference between patches.

    4. Save the changes if any and exit the editor. If your editor is vi, use the :wq command to save the file and exit vi.

    5. Send your patch to the existing review:

      git review
    6. Leave a comment in Gerrit explaining the reason for your patch set.