Update the code review guide to take the Merge Results in account
What does this MR do?
This updates the Code Review guidelines to take in account the upcoming enablement of the "Merge Results" setting.
This is a preparation step for #200037 (closed).
Summary of the changes:
- When ready to merge, maintainers should:
-
Start a new merge request pipeline with the
Run Pipeline
button in the merge request's "Pipelines" tab, and enable "Merge When Pipeline Succeeds" (MWPS). Note that:- If the latest Pipeline for Merged Results finished less than 2 hours ago, you
might merge without starting a new pipeline as the merge request is close
enough to
master
. - If the merge request is from a fork, check how far behind
master
the source branch is. If it's more than 100 commits behind, ask the author to rebase it before merging. - If master is broken,
in addition to the two above rules, check that that any failure also happens
in
master
and post a link to the master:broken issue before clicking the red "Merge" button.
- If the latest Pipeline for Merged Results finished less than 2 hours ago, you
might merge without starting a new pipeline as the merge request is close
enough to
-
Start a new merge request pipeline with the
Note: Thanks to "Pipeline for Merged Results", authors won't have to rebase their
branch as frequently anymore (only when there are conflicts) since the Merge
Results Pipeline will already incorporate the latest changes from master
.
This results in faster review/merge cycles since maintainers don't have to ask
for a final rebase: instead, they only have to start a MR pipeline and set MWPS.
This step brings us very close to the actual Merge Trains feature by testing the
Merge Results against the latest master
at the time of the pipeline creation.
Review app:
- http://docs-preview-ee-25449.178.62.207.141.nip.io/ee/development/code_review.html
- http://docs-preview-ee-25449.178.62.207.141.nip.io/ee/development/contributing/merge_request_workflow.html
Related issues
Related to #200037 (closed).
Author's checklist
-
Follow the Documentation Guidelines and Style Guide. -
If applicable, update the permissions table. -
Link docs to and from the higher-level index page, plus other related docs where helpful. -
Apply the documentation label.
Review checklist
All reviewers can help ensure accuracy, clarity, completeness, and adherence to the Documentation Guidelines and Style Guide.
1. Primary Reviewer
-
Review by a code reviewer or other selected colleague to confirm accuracy, clarity, and completeness. This can be skipped for minor fixes without substantive content changes.
2. Technical Writer
-
Optional: Technical writer review. If not requested for this MR, must be scheduled post-merge. To request for this MR, assign the writer listed for the applicable DevOps stage.
3. Maintainer
-
Review by assigned maintainer, who can always request/require the above reviews. Maintainer's review can occur before or after a technical writer review. -
Ensure a release milestone is set. -
If there has not been a technical writer review, create an issue for one using the Doc Review template.