xref: /aosp_15_r20/external/angle/doc/CodeReviewProcess.md (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# ANGLE's Code Review Process
2*8975f5c5SAndroid Build Coastguard Worker
3*8975f5c5SAndroid Build Coastguard WorkerThis page describes the review process for ANGLE reviewers and committers. For
4*8975f5c5SAndroid Build Coastguard Workerinstructions on submitting your change list for review, please see
5*8975f5c5SAndroid Build Coastguard Worker[ContributingCode](ContributingCode.md).
6*8975f5c5SAndroid Build Coastguard Worker
7*8975f5c5SAndroid Build Coastguard Worker## Reviewing Changes
8*8975f5c5SAndroid Build Coastguard Worker
9*8975f5c5SAndroid Build Coastguard WorkerThe author of a CL may designate reviewers. Please feel free to weigh in on
10*8975f5c5SAndroid Build Coastguard Workerchanges even if you are not a designated reviewer!
11*8975f5c5SAndroid Build Coastguard Worker
12*8975f5c5SAndroid Build Coastguard Worker1.  To review a change, you can either navigate directly to the URL for the CL,
13*8975f5c5SAndroid Build Coastguard Worker    or, if you are one of the designated reviewers, the change will appear in
14*8975f5c5SAndroid Build Coastguard Worker    your dashboard at https://chromium-review.googlesource.com/
15*8975f5c5SAndroid Build Coastguard Worker2.  Review the change listed by looking over the diffs listed in the most recent
16*8975f5c5SAndroid Build Coastguard Worker    patch set.
17*8975f5c5SAndroid Build Coastguard Worker    *   You may view the diffs either side-to-side, or in unified diff format.
18*8975f5c5SAndroid Build Coastguard Worker    *   You can comment on a specific line of code by double-clicking that line,
19*8975f5c5SAndroid Build Coastguard Worker        or on the file as a whole by clicking the "Add file comment" icon, which
20*8975f5c5SAndroid Build Coastguard Worker        appears above the diff, in the line number column.
21*8975f5c5SAndroid Build Coastguard Worker    *   Note that, for CLs submitted as fixes to standing bugs, style issues
22*8975f5c5SAndroid Build Coastguard Worker        that pre-exist the CL are not required to be addressed in the CL. As a
23*8975f5c5SAndroid Build Coastguard Worker        reviewer, you can request a follow-up CL to address the style issue if
24*8975f5c5SAndroid Build Coastguard Worker        you desire. This exception doesn't apply for CLs which implement new
25*8975f5c5SAndroid Build Coastguard Worker        functionality, perform refactoring, or introduce style issues
26*8975f5c5SAndroid Build Coastguard Worker        themselves.
27*8975f5c5SAndroid Build Coastguard Worker3.  Once your review is complete, click the "Review" button
28*8975f5c5SAndroid Build Coastguard Worker    *   If you are satisfied with the change list as it is, give a positive
29*8975f5c5SAndroid Build Coastguard Worker        review (Code-Review +1 or +2).
30*8975f5c5SAndroid Build Coastguard Worker    *   If you think the change list is a good idea, but needs changes, leave
31*8975f5c5SAndroid Build Coastguard Worker        comments and a neutral review. (Code-Review 0)
32*8975f5c5SAndroid Build Coastguard Worker    *   If you think the change list should be abandoned, give a negative
33*8975f5c5SAndroid Build Coastguard Worker        review. (Code-Review -1 or -2)
34*8975f5c5SAndroid Build Coastguard Worker    *   A +2 code review is required before landing. Only ANGLE committers may
35*8975f5c5SAndroid Build Coastguard Worker        provide a +2 code review.
36*8975f5c5SAndroid Build Coastguard Worker    *   ANGLE has a 2-reviewer policy for CLs. This means all changes should get
37*8975f5c5SAndroid Build Coastguard Worker        a positive review from more than one person before they are accepted.
38*8975f5c5SAndroid Build Coastguard Worker        This is most usually handled by reserving the +2 review for the second
39*8975f5c5SAndroid Build Coastguard Worker        reviewer to clear the CL.
40*8975f5c5SAndroid Build Coastguard Worker    *   If you made comments on the files, the draft comments will appear below
41*8975f5c5SAndroid Build Coastguard Worker        the cover message. These comments are not published until you click on
42*8975f5c5SAndroid Build Coastguard Worker        the "Publish Comments" button.
43*8975f5c5SAndroid Build Coastguard Worker4.  Verification and landing:
44*8975f5c5SAndroid Build Coastguard Worker    *   If the CL author is not an ANGLE committer, the CL should be verified
45*8975f5c5SAndroid Build Coastguard Worker        and landed by a committer. Once verified, the "+1 Verified" status may
46*8975f5c5SAndroid Build Coastguard Worker        be added, and the CL may be landed with the "Publish and Submit" button.
47*8975f5c5SAndroid Build Coastguard Worker        There should be no need to rebase via the "Rebase Change" button prior
48*8975f5c5SAndroid Build Coastguard Worker        to landing.
49*8975f5c5SAndroid Build Coastguard Worker    *   If the CL author is an ANGLE committer, they should verify and land the
50*8975f5c5SAndroid Build Coastguard Worker        CL themselves.
51*8975f5c5SAndroid Build Coastguard Worker    *   Please note: Verification and commit-queue workflow may be subject to
52*8975f5c5SAndroid Build Coastguard Worker        change in the near future.
53*8975f5c5SAndroid Build Coastguard Worker5.  Cherry-picking to other branches
54*8975f5c5SAndroid Build Coastguard Worker    *   If the change is needed on other branches, you may be able to land it
55*8975f5c5SAndroid Build Coastguard Worker        using the "Cherry Pick To" button on the CL page.
56*8975f5c5SAndroid Build Coastguard Worker    *   If this cherry pick fails, you will need to rebase the patch yourself
57*8975f5c5SAndroid Build Coastguard Worker        and submit a new change for review on the branch.
58