Edit pass for relocated community documentation. (#28368)

* Edit pass for relocated community documentation.

* Updated info on Ansibullbot

Fixed improper link syntax
Change links to point to new documents
Changed Ansibot to Ansibullbot
Clarified workflow
Change formatting on commans and tags

* Update communication.rst

Add Contents
Use correct headings

* Update communication.rst

* Topics, remove whitespace, codeofconduct

* Formatting

* Correct heading

* Update maintainers.rst

* Minor edits and a request for more info

* Removed some hard-to-localize wording.

* Removed incomplete sentence

* Minor edits per review
This commit is contained in:
scottb
2017-08-31 12:14:35 -07:00
committed by GitHub
parent 84295e6124
commit b146e17733
9 changed files with 156 additions and 182 deletions

View File

@@ -1,177 +1,113 @@
The Ansible Development Process
===============================
.. contents:: Topics
This section discusses how the Ansible development and triage process works.
Roadmaps
========
Road Maps
=========
The Ansible Core team provides a roadmap for each upcoming release. These roadmaps can be found `here <http://docs.ansible.com/ansible/latest/roadmap/>`.
The Ansible Core team provides a road map for each upcoming release. These road maps can be found `here <http://docs.ansible.com/ansible/latest/roadmap/>`_.
Pull Requests
=============
Ansible accepts code via pull requests ("PRs" for short). GitHub provides a great overview of `how the pull request process works <https://help.github.com/articles/about-pull-requests/>` in general.
Ansible accepts code via **pull requests** ("PRs" for short). GitHub provides a great overview of `how the pull request process works <https://help.github.com/articles/about-pull-requests/>`_ in general.
Because Ansible receives many pull requests, we use an automated process to help us through the process of reviewing and merging pull requests. That process is managed by the Ansibot.
Because Ansible receives many pull requests, we use an automated process to help us through the process of reviewing and merging pull requests. That process is managed by **Ansibullbot**.
The Ansibot
Ansibullbot
===========
Overview
--------
The `Ansibot`_ serves many functions: \* Responds quickly
to PR submitters to thank them for submitting their PR; \* Identifies
the community maintainer responsible for reviewing PRs for any files
affected; \* Tracks the current status of PRs; \* Pings responsible
parties to remind them of any PR actions that they may be responsible
for; \* Provides maintainers with the ability to move PRs through our
workflow; \* Identifies PRs abandoned by their submitters so that we can
close them; \* Identifies modules abandoned by their maintainers so that
we can find new maintainers.
`Ansibullbot`_ serves many functions:
- Responds quickly to PR submitters to thank them for submitting their PR
- Identifies the community maintainer responsible for reviewing PRs for any files affected
- Tracks the current status of PRs
- Pings responsible parties to remind them of any PR actions for which they may be responsible
- Provides maintainers with the ability to move PRs through the workflow
- Identifies PRs abandoned by their submitters so that we can close them
- Identifies modules abandoned by their maintainers so that we can find new maintainers
Community Maintainers
---------------------
Each module in Core and Extras has at least one assigned maintainer,
listed in two maintainers files: one for `Core`_ and one for `Extras`_.
Each module has at least one assigned maintainer, listed in a `maintainer's file`_:
Some modules have no community maintainers assigned. In this case, the
maintainer is listed as “ansible”. Ultimately, its our goal to have at
least one community maintainer for every module.
.. _Ansibullbot: https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md
.. _maintainer's file: https://github.com/ansible/ansible/blob/devel/.github/BOTMETA.yml
The maintainers job is to review PRs and decide whether that PR should
be merged (“shipit!”) or revised (“needs\_revision”).
Some modules have no community maintainers assigned. In this case, the maintainer is listed as ``$team_ansible``. Ultimately, its our goal to have at least one community maintainer for every module.
The ultimate goal of any Pull Request is to reach “shipit” status, where
the Core team then decides whether the PR is ready to be merged. Not
every PR that reaches the “shipit” label is actually ready to be merged,
but the better our reviewers are, and the better our guidelines are, the
more likely it will be that a PR that reaches “shipit” will be
mergeable.
The maintainers job is to review PRs and decide whether that PR should be merged (``shipit``) or revised (``needs_revision``).
.. _Ansibot: https://github.com/ansible/ansibullbot/blob/master/triage.py
.. _Core: https://github.com/ansible/ansibullbot/blob/master/MAINTAINERS-CORE.txt
.. _Extras: https://github.com/ansible/ansibullbot/blob/master/MAINTAINERS-CORE.txt
The ultimate goal of any pull request is to reach **shipit** status, where the Core team then decides whether the PR is ready to be merged. Not every PR that reaches the **shipit** label is actually ready to be merged, but the better our reviewers are, and the better our guidelines are, the more likely it will be that a PR that reaches **shipit** will be mergeable.
Some modules have no community maintainers assigned. In this case, the
maintainer is listed as “ansible”. Ultimately, its our goal to have at
least one community maintainer for every module.
The maintainers job is to review PRs and decide whether that PR should
be merged (“shipit!”) or revised (“needs\_revision”).
The ultimate goal of any Pull Request is to reach “shipit” status, where
the Core team then decides whether the PR is ready to be merged. Not
every PR that reaches the “shipit” label is actually ready to be merged,
but the better our reviewers are, and the better our guidelines are, the
more likely it will be that a PR that reaches “shipit” will be
mergeable.
Workflow
--------
The triage bot runs every six hours and examines every open PR in both
core and extras repositories, and enforces state roughly according to
the following workflow:
Ansibullbot runs continuously. You can generally expect to see changes to your issue or pull request within thirty minutes. Ansibullbot examines every open pull request in the repositories, and enforces state roughly according to the following workflow:
- If a PR has no workflow labels, its considered “new”. Files in the
PR are identified, and the maintainers of those files are pinged by
the bot, along with instructions on how to review the PR. (Note:
sometimes we strip labels from a PR to “reboot” this process.)
- If the module maintainer is not “ansible”, the PR then goes into the
“community\_review” state.
- If the module maintainer is “ansible”, the PR then goes into the
“core\_review” state (and probably sits for a while).
- If the PR is in “community\_review” and has received comments from
the maintainer:
- If the maintainer says “shipit”, the PR is labeled “shipit”,
whereupon the Core team assesses it for final merge.
- If the maintainer says “needs\_info”, the PR is labeled “needs\_info”
and the submitter is asked for more info.
- If the maintainer says “needs\_revision”, the PR is labeled
“needs\_revision” and the submitter is asked to fix some things.
- If the PR is in “needs\_revision/needs\_info” and has received
comments from the submitter:
- If the submitter says “ready\_for\_review”, the PR is put back into
community\_review/core\_review and the maintainer is notified that
the PR is ready to be reviewed again.
- If the PR is in “needs\_revision/needs\_info” and the submitter has
not responded lately:
- The submitter is first politely pinged after two weeks, pinged again
after two more weeks and labeled “pending action”, and then may be
closed two weeks after that.
- If the submitter responds at all, the clock is reset.
- If the PR is in “community\_review” and the reviewer has not
responded lately:
- The reviewer is first politely pinged after two weeks, pinged again
after two more weeks and labeled “pending\_action”, and then may be
reassigned to “ansible” / core\_review, or often the submitter of the
PR is asked to step up as a maintainer.
- If Travis fails, or if the code is not mergable, the PR is
automatically put into “needs\_revision” along with a message to the
submitter explaining why.
- If a pull request has no workflow labels, its considered **new**. Files in the pull request are identified, and the maintainers of those files are pinged by the bot, along with instructions on how to review the pull request. (Note: sometimes we strip labels from a pull request to “reboot” this process.)
- If the module maintainer is not ``$team_ansible``, the pull request then goes into the **community_review** state.
- If the module maintainer is ``$team_ansible``, the pull request then goes into the **core_review** state (and probably sits for a while).
- If the pull request is in **community_review** and has received comments from the maintainer:
- If the maintainer says ``shipit``, the pull request is labeled **shipit**, whereupon the Core team assesses it for final merge.
- If the maintainer says ``needs_info``, the pull request is labeled **needs_info** and the submitter is asked for more info.
- If the maintainer says **needs_revision**, the pull request is labeled **needs_revision** and the submitter is asked to fix some things.
- If the submitter says ``ready_for_review``, the pull request is put back into **community_review** or **core_review** and the maintainer is notified that the pull request is ready to be reviewed again.
- If the pull request is labeled **needs_revision** or **needs_info** and the submitter has not responded lately:
- The submitter is first politely pinged after two weeks, pinged again after two more weeks and labeled **pending action**, and the issue or pull request will be closed two weeks after that.
- If the submitter responds at all, the clock is reset.
- If the pull request is labeled **community_review** and the reviewer has not responded lately:
- The reviewer is first politely pinged after two weeks, pinged again after two more weeks and labeled **pending_action**, and then may be reassigned to ``$team_ansible`` or labeled **core_review**, or often the submitter of the pull request is asked to step up as a maintainer.
- If Shippable tests fail, or if the code is not able to be merged, the pull request is automatically put into **needs_revision** along with a message to the submitter explaining why.
There are corner cases and frequent refinements, but this is the workflow in general.
There are corner cases and frequent refinements, but this is the workflow in general.
PR Labels
---------
There are two types of PR Labels generally: *workflow labels* and
*information labels*.
There are two types of PR Labels generally: *workflow labels* and *information labels*.
Workflow Labels
~~~~~~~~~~~~~~~
- **community\_review**: Pull requests for modules that are currently
awaiting review by their maintainers in the Ansible community.
- **core\_review**: Pull requests for modules that are currently
awaiting review by their maintainers on the Ansible Core team.
- **needs\_info**: Waiting on info from the submitter.
- **needs\_rebase**: Waiting on the submitter to rebase. (Note: no
longer used by the bot.)
- **needs\_revision**: Waiting on the submitter to make changes.
- **shipit**: Waiting for final review by the core team for potential
merge.
- **community_review**: Pull requests for modules that are currently awaiting review by their maintainers in the Ansible community.
- **core_review**: Pull requests for modules that are currently awaiting review by their maintainers on the Ansible Core team.
- **needs_info**: Waiting on info from the submitter.
- **needs_rebase**: Waiting on the submitter to rebase. (Note: no longer used by the bot.)
- **needs_revision**: Waiting on the submitter to make changes.
- **shipit**: Waiting for final review by the core team for potential merge.
Informational Labels
~~~~~~~~~~~~~~~~~~~~
- **backport**: this is applied automatically if the PR is requested
against any branch that is not devel. The bot immediately assigns the
labels “backport” and “core\_review”.
- **bugfix\_pull\_request**: applied by the bot based on the
templatized description of the PR.
- **cloud**: applied by the bot based on the paths of the modified
files.
- **docs\_pull\_request**: applied by the bot based on the templatized
description of the PR.
- **easyfix**: applied manually, inconsistently used but sometimes
useful.
- **feature\_pull\_request**: applied by the bot based on the
templatized description of the PR.
- **networking**: applied by the bot based on the paths of the modified
files.
- **owner\_pr**: largely deprecated. Formerly workflow, now
informational. Originally, PRs submitted by the maintainer would
automatically go to “shipit” based on this label; now, if the
submitter is also a maintainer, we notify the other maintainers and
still require one of the maintainers (including the submitter) to
give a “shipit”.
- **P1 - P5**: deprecated for modules because they were wildly
inconsistent and not useful. The bot now strips these.
- **pending\_action**: applied by the bot to PRs that are not moving.
Reviewed every couple of weeks by the community team, who tries to
figure out the appropriate action (closure, asking for new
maintainers, etc).
- **backport**: this is applied automatically if the PR is requested against any branch that is not devel. The bot immediately assigns the labels backport and ``core_review``.
- **bugfix_pull_request**: applied by the bot based on the templatized description of the PR.
- **cloud**: applied by the bot based on the paths of the modified files.
- **docs_pull_request**: applied by the bot based on the templatized description of the PR.
- **easyfix**: applied manually, inconsistently used but sometimes useful.
- **feature_pull_request**: applied by the bot based on the templatized description of the PR.
- **networking**: applied by the bot based on the paths of the modified files.
- **owner_pr**: largely deprecated. Formerly workflow, now informational. Originally, PRs submitted by the maintainer would automatically go to **shipit** based on this label. If the submitter is also a maintainer, we notify the other maintainers and still require one of the maintainers (including the submitter) to give a **shipit**.
- **pending_action**: applied by the bot to PRs that are not moving. Reviewed every couple of weeks by the community team, who tries to figure out the appropriate action (closure, asking for new maintainers, etc).
Special Labels
~~~~~~~~~~~~~~
- **new\_plugin**: this is for new modules or plugins that are not yet
in Ansible. **Note: this kicks off a completely separate process, and
frankly it doesnt work very well at present. Were working our best
to improve this process.**
- **new_plugin**: this is for new modules or plugins that are not yet in Ansible.
**Note:** `new_plugin` kicks off a completely separate process, and frankly it doesnt work very well at present. Were working our best to improve this process.