blob: 454322f5662b134efe49da5a2ec0020eee56083b [file] [log] [blame] [view]
Abdul Syede21aa1b2017-07-06 17:13:061# Merge Request Process
2
3[TOC]
4
5## tl;dr
6
7* After branch point, all merges will be closely reviewed (either manually or
8 automatically) by TPMs and release owners.
9* Requirements for approving merges are becoming more
10 stringent and scrutiny of merges gets higher as we get closer to the
11 stable launch date. Any necessary merges should be requested as early as
12 possible.
13* All merge candidates should have full automated unit test coverage, have been deployed in Canary
14 for at least 24 hours, and full developer confidence that change will be
15 safe.
16* When requesting merge review, please provide clear explanation for why a merge
17 is required, the criticality and impact of the issue, and ensure that
18 bug is correctly labeled for all impacted OS's.
19
20## Introduction
21
22Chrome ships across multiple channels which are built from different release
23branches. In general, changes should first land on trunk, be shipped and
24verified in a canary release, and then promoted to our Dev, Beta, and Stable
25channels overtime. However, due to many reasons and scenarios, it’s
26possible that changes may miss branch date and require a merge post branch.
27
28**Merge**: any change that is cherry picked from trunk to a release branch.
29
30Please read overview of [Chrome Release
31Cycle](https://chromium.googlesource.com/chromium/src.git/+/master/docs/process/release_cycle.md)
32to understand in detail how the Chrome release cycle works and understand key
33release concepts and terminology. Please read [Defining Release
34Blockers](https://chromium.googlesource.com/chromium/src.git/+/master/docs/process/release_blockers.md)
35to understand how issues/bugs are categorized as release blocking.
36List of schedule and release owners can be found at [Chrome
37Calendar](https://chromepmo.appspot.com/calendar) (Googlers only, opening to all in the near future).
38
39## When to Request a Merge?
40
41This section will discuss when and what type of bugs can be merged based on
42criticality of the issue. Please note that the scrutiny of merges
43gets higher as we get closer to the stable launch date. Merges post
44stable-rollout have a higher bar than merges prior to Stable.
45
46![Chrome Merge Schedule](images/chrome_merge_schedule.png)
47
48**Phase 1: First Two Weeks After Branch (two weeks before beta promotion)**
49
50There are bugs and polish fixes that may not necessarily be considered
51critical but help with the overall quality of the product. There are also
52scenarios where dependent CL’s are missed by hours or days. To accommodate
53these scenarios, merges will be considered for all polish bugs, regressions,
54and release blocking bugs for the first two weeks after branch point.
55Please note that merges will not be accepted for
56implementing or enabling brand new features or functionality. Features
57should already be complete. Merges will be reviewed manually and
58automatically, depending on the type of change.
59
60GRD file changes are allowed only during this phase. If you have a critical
61string change needed after this phase, please reach out to release owner or
62Chrome TPMs.
63
64**Phase 2: First Four Weeks of Beta Rollout**
65
66During the first four weeks of Beta, merges should only be requested if
67the bug is considered either release blocking or
68considered a high-impact regression.
69
70Security bugs should be consulted with
71[[email protected]]([email protected]) to
72determine criticality. If your issue does not meet the above criteria
73but you would still like to consider this merge, please reach out to
74release owner or TPMs with a detailed justification.
75
76**Phase 3: Last Two Weeks of Beta and Post Stable**
77
78During the last 2 weeks of Beta and after stable promotion, merges
79should only be requested for critical, release blocking issues where the
80fix is low complexity.
81
82Security bugs should be consulted with [chrome-security@]([email protected])
83to determine criticality.
84
85This table below provides key dates and phases as an example, for M61 release.
86
87Key Event | Date
88------- | --------
89Feature Freeze | June 23rd, 2017
90Branch Date | July 20th, 2017
91Branch Stabilization Period | July 20th to August 3rd, 2017
92Merge Reviews Phase 1 | July 20th to August 3rd, 2017
93Beta Rollout | August 3rd to September 12th 2017
94Merge Reviews Phase 2 | August 3rd to August 31st 2017
95Merge Reviews Phase 3 | August 31st 2017 and post Stable release
96Stable Release | September 6th, 2017 + rollout schedule
97
98## Merge Requirements
99
100Before requesting a merge, please ensure following conditions are met:
101* **Full automated unit test coverage:** please add unit tests or
102 functional tests before requesting a merge.
103* **Deployed in Canary for at least 24 hours:** change has to
104 be tested and verified in Canary or Dev, before requesting a
105 merge. Fix should be tested by either test engineering or the
106 original reporter of the bug.
107* **Safe Merge:** Need full developer confidence that the
108 change will be a safe merge. Safe merge means that your
109 change will not introduce new regressions, or break
110 anything existing. If you are not confident that your
111 merge is fully safe, then reach out to TL or TPMs for
112 guidance.
113
114## Merge Request
115If the merge review requirements are met (listed in
116section above) and your change fits one of the timelines
117above, please go ahead and apply the
118Merge-Request-[Milestone Number] label on the bug and
119please provide clear justification in the bug.
120
121Please provide clear explanation for why a merge is required, what is the
122criticality and impact of the issue, and ensure that bug is correctly
123labeled for all impacted OS's.
124
125Approved merge requests in Phase 2 and Phase 3 will require a post mortem.
126
127Once Merge is approved, the bug will be marked with
128Merge-Approved-[Milestone-Number] label. Please merge
129**immediately after**. Please note that if change is not
130merged in time after approval, it can be rejected.
131
132If merge is rejected, “Merge-Rejected” label will be
133applied. If you think it’s important to consider the
134change for merge and does not meet the criteria above,
135please reach out to the release owners, TPMs or TLs for
136guidance.
137
138## Merge Reviews
139
140The release team has an automated process that helps
141with the merge evaluation process. It will enforce many
142of the rules listed in sections above. If the rules
143above don’t pass, it will either auto-reject or flag
144for manual review. Please allow up to 24 hours for the
145automated process to take effect.
146
147Manual merge reviews will be performed by release
148owners and TPMs.