xref: /aosp_15_r20/external/angle/doc/ChoosingANGLEBranch.md (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker# Choosing an ANGLE branch for your project
2*8975f5c5SAndroid Build Coastguard Worker
3*8975f5c5SAndroid Build Coastguard WorkerANGLE is under continuous development, and does not create release tarballs or
4*8975f5c5SAndroid Build Coastguard Workertag specific revisions as releases, which may make the process of choosing a
5*8975f5c5SAndroid Build Coastguard Workerpoint in ANGLE's history as the dependency for your project less than obvious.
6*8975f5c5SAndroid Build Coastguard WorkerThis document illustrates how to choose a branch of ANGLE which can be expected
7*8975f5c5SAndroid Build Coastguard Workerto be updated with critical fixes, should they be needed.
8*8975f5c5SAndroid Build Coastguard Worker
9*8975f5c5SAndroid Build Coastguard Worker## ANGLE automatic branching
10*8975f5c5SAndroid Build Coastguard Worker
11*8975f5c5SAndroid Build Coastguard WorkerBranches are created automatically in ANGLE to correspond to branches created in
12*8975f5c5SAndroid Build Coastguard WorkerChromium. These branches are named `chromium/####`, where the number is the
13*8975f5c5SAndroid Build Coastguard Workermatching Chromium branch. These branches will be created from the revision which
14*8975f5c5SAndroid Build Coastguard Workerthat Chromium branch points to as its dependency. So, for example, the
15*8975f5c5SAndroid Build Coastguard Worker`chromium/2013` branch point is at r28bcf4ff, because [Chromium's dependency
16*8975f5c5SAndroid Build Coastguard Workerfile for the 2013 branch]
17*8975f5c5SAndroid Build Coastguard Worker(http://src.chromium.org/viewvc/chrome/branches/2013/src/DEPS?revision=272741)
18*8975f5c5SAndroid Build Coastguard Workeruses this ANGLE revision.
19*8975f5c5SAndroid Build Coastguard Worker
20*8975f5c5SAndroid Build Coastguard WorkerIt isn't necessary to be familiar with how Chromium's dependency management
21*8975f5c5SAndroid Build Coastguard Workerworks to choose an appropriate ANGLE branch for your project. You will, however,
22*8975f5c5SAndroid Build Coastguard Workerlikely want to make sure that you choose a branch that is used for a relatively
23*8975f5c5SAndroid Build Coastguard Workerstable Chromium release channel build, as those branches will be deployed with
24*8975f5c5SAndroid Build Coastguard WorkerChromium, and receive updates if bugs are found and fixed during release
25*8975f5c5SAndroid Build Coastguard Workerlifetime, while the more volatile channels will turn over quickly, and their
26*8975f5c5SAndroid Build Coastguard Workerbranches will be short-lived.
27*8975f5c5SAndroid Build Coastguard Worker
28*8975f5c5SAndroid Build Coastguard Worker**We recommend choosing a branch corresponding to a Beta or Stable Chromium
29*8975f5c5SAndroid Build Coastguard Workerrelease** if you are pursuing periodic, not continuous, integration of ANGLE.
30*8975f5c5SAndroid Build Coastguard Worker
31*8975f5c5SAndroid Build Coastguard Worker## Matching a Chromium release to an ANGLE branch
32*8975f5c5SAndroid Build Coastguard Worker
33*8975f5c5SAndroid Build Coastguard WorkerIn order to determine which branches are used by Chromium releases, please use
34*8975f5c5SAndroid Build Coastguard Worker[the OmahaProxy tool](http://omahaproxy.appspot.com/), which lists build
35*8975f5c5SAndroid Build Coastguard Workerinformation about current Chromium releases. Find the entry for a suitable
36*8975f5c5SAndroid Build Coastguard Workerrelease channel (for now, we recommend one of the Windows desktop releases), and
37*8975f5c5SAndroid Build Coastguard Workernote the branch listed in the `true_branch` column. This identifies the ANGLE
38*8975f5c5SAndroid Build Coastguard Workerbranch used by that Chromium release.
39*8975f5c5SAndroid Build Coastguard Worker
40*8975f5c5SAndroid Build Coastguard Worker## Updates to release branches
41*8975f5c5SAndroid Build Coastguard Worker
42*8975f5c5SAndroid Build Coastguard WorkerIf bugs (stability, security, performance, or otherwise) are discovered after a
43*8975f5c5SAndroid Build Coastguard Workerbranch has been created, and that branch is used by a Chromium release, the
44*8975f5c5SAndroid Build Coastguard Workerfixes for those bugs will be applied to the ANGLE branches for uptake by
45*8975f5c5SAndroid Build Coastguard WorkerChromium and any other projects using that branch. You should need only to
46*8975f5c5SAndroid Build Coastguard Workerperform a `git pull` to check for and apply any such changes.
47*8975f5c5SAndroid Build Coastguard Worker
48*8975f5c5SAndroid Build Coastguard Worker## Cherry-picking a change to a release branch
49*8975f5c5SAndroid Build Coastguard Worker
50*8975f5c5SAndroid Build Coastguard WorkerOccasionally a bug fix must be merged back to an earlier Chromium
51*8975f5c5SAndroid Build Coastguard Workerrelease branch. To do this, first look up the branch number in
52*8975f5c5SAndroid Build Coastguard Worker[OmahaProxy](https://omahaproxy.appspot.com/). For example, M55
53*8975f5c5SAndroid Build Coastguard Workercorresponds to branch number 2883.
54*8975f5c5SAndroid Build Coastguard Worker
55*8975f5c5SAndroid Build Coastguard WorkerIn the simple case where there are no conflicts, the merge can be done
56*8975f5c5SAndroid Build Coastguard Workerentirely in the Gerrit UI. Click the "Cherry pick" button and enter
57*8975f5c5SAndroid Build Coastguard Worker`chromium/[branch_number]` as the branch to merge to.
58*8975f5c5SAndroid Build Coastguard Worker
59*8975f5c5SAndroid Build Coastguard WorkerIf there are conflicts, however, follow these steps:
60*8975f5c5SAndroid Build Coastguard Worker
61*8975f5c5SAndroid Build Coastguard Worker1. `git checkout chromium/[branch_number]`
62*8975f5c5SAndroid Build Coastguard Worker2. `git cherry-pick [commit_hash]`
63*8975f5c5SAndroid Build Coastguard Worker3. Fix any merge conflicts.
64*8975f5c5SAndroid Build Coastguard Worker4. `git cl upload`
65*8975f5c5SAndroid Build Coastguard Worker
66*8975f5c5SAndroid Build Coastguard WorkerHave the cherry-pick reviewed, and then land it. It's also OK to skip
67*8975f5c5SAndroid Build Coastguard Workerthe review and land it yourself with TBR= in the issue description, if
68*8975f5c5SAndroid Build Coastguard Workeryou have that ability.
69*8975f5c5SAndroid Build Coastguard Worker
70*8975f5c5SAndroid Build Coastguard WorkerThere is one final step to pick up the ANGLE change into a Chromium Beta or
71*8975f5c5SAndroid Build Coastguard WorkerStable branch. A Skia auto-roller updates the DEPS file in the corresponding
72*8975f5c5SAndroid Build Coastguard WorkerChromium branch automatically once the ANGLE change is merged into an ANGLE
73*8975f5c5SAndroid Build Coastguard Workerbranch. To make sure that your change has made it into Chromium you can check
74*8975f5c5SAndroid Build Coastguard Workerthese auto-rollers:
75*8975f5c5SAndroid Build Coastguard Worker
76*8975f5c5SAndroid Build Coastguard Worker1. https://autoroll.skia.org/r/angle-chromium-beta-autoroll
77*8975f5c5SAndroid Build Coastguard Worker1. https://autoroll.skia.org/r/angle-chromium-stable-autoroll
78