Committer Etiquette

Role split: Maintainers review code. Committers merge it. Being a committer doesn't make you the reviewer.

  1. Merge only with a maintainer's approval.

    • Check MAINTAINERS for the component the change touches.

    • A component may have several maintainers. One is enough to +1 (or +2).

    • If you are a maintainer of the component, you can +2 and merge directly.

    • A change that touches several components needs one maintainer's +1 from each affected component, unless item 2 applies.

  2. Exception: small, mechanical, cross-cutting changes.

    • Examples are a function or macro rename, a header move, or a trivial signature update across the codebase.

    • A +1 from one maintainer of the most affected component is enough.

    • The change must be purely mechanical, with no behaviour change and no design decisions. Say so in the commit message.

    • If any maintainer objects, normal rules resume.

  3. Exception: trivial changes. A committer may merge these without maintainer review. Examples:

    • Typo fixes in comments, docs and log messages.

    • Coverity or other static-analysis annotations and false-positive markers.

    • Whitespace and make checkstyle fixes.

    • Removing dead or obsolete comments.

    • Broken links or formatting in docs.

    • Fixing a build break, or reverting a change that broke master.

    • Adding a missing const, static or __clib_unused that doesn't change behaviour.

    • Trivial bug fixes: small, obviously correct and low risk. Committers are trusted to use good judgment here.

    Conditions:

    • Apart from a trivial bug fix, the change has no behaviour change.

    • The change touches no API, ABI or CLI output.

    • It is a handful of lines, not a sweep.

    • If in doubt, treat it as non-trivial and ask a maintainer.

    • Mention a maintainer on the change if the area is theirs. They may ask for a revert.

    • Don't use a series of "trivial" commits to slip in a bigger change.

  4. Maintainers are expected to respond. Maintainers should respond within a reasonable time frame (about 2 weeks), even if only to say "I do not have time right now". A maintainer who cannot review right now must say so in a Gerrit comment on the change and give their own deadline for the review, which must not be more than 1 month away. The maintainer may extend the deadline once, by up to 1 month, with another Gerrit comment. Silence is not consent. A committer may merge a non-trivial change without maintainer review in one of two cases:

    • A maintainer of the component gave a review deadline in Gerrit, the deadline (including a single extension) has passed, and the review did not happen.

    • The maintainers did not react within 2 weeks. In this case the patch author sends an email to the maintainer(s), using the address listed in the MAINTAINERS file, and leaves a note about it on the change in Gerrit. If there is still no response, the change may be merged once more than 2 weeks have passed since submission and more than 1 week since the email was sent.

    In both cases the committer must fully understand what is being merged.

  5. Don't merge your own change unless it is trivial under item 3 or you are a maintainer of the component. A maintainer author may merge their own change, but for non-trivial changes should get another maintainer's or committer's eyes on it when one is available.

  6. Check the state before merging.

    • Verified +1.

    • No unresolved -1 from anyone, including other maintainers of the component.

    • No open "please wait" request.

    • No unaddressed design discussion on the change or in vpp-dev.

  7. Don't merge a change you think is wrong. If you disagree with a maintainer's +1, say so on the change or take it to vpp-dev. Don't merge quietly, and don't veto silently.

  8. Mind the release calendar. Don't merge risky changes close to a freeze, and don't merge features after freeze without the release manager's agreement.

  9. Merge with no company bias. Don't prioritize your employer's changes over others in the queue.