Project

General

Profile

HOWTO merge commits from the integration branch » History » Version 8

Loic Dachary, 05/22/2015 10:08 AM

1 2 Loic Dachary
After the [[HOWTO run integration and upgrade tests|tests successfully]] run on the [[HOWTO populate the integration branch|integration branch]]:
2 2 Loic Dachary
3 6 Loic Dachary
* List the pull requests that have been merged in the integration branch with something like:
4 6 Loic Dachary
<pre>
5 6 Loic Dachary
$ git log --oneline --merges ceph/giant..ceph/giant-backports
6 6 Loic Dachary
538d012 Merge 4214: osd/osd_types.cc: 456: FAILED assert(m_seed < old_pg_num)
7 6 Loic Dachary
</pre>
8 8 Loic Dachary
* Assign pull requests that have been backported and tested without interaction with the original author to the [[HOWTO#Leads|lead]] because (s)he is the one deciding if the backport is good enough. Although a discussion with the lead could be engaged before testing, it is less work for a busy lead to review a backport that is known to pass integration tests. Ask to the [[HOWTO#Leads|lead]] if the pull request can be merged by adding a message to the pull request with a URL to the test results.
9 8 Loic Dachary
* Wait for all pull requests to be approved and merged.
10 2 Loic Dachary
11 2 Loic Dachary
The backports from the integration branch can be merged (via github so that the pull requests are properly tagged as being merged) into the release branch. 
12 1 Loic Dachary
13 1 Loic Dachary
* for each pull request merged in the integration branch
14 1 Loic Dachary
* go to the github web interface
15 1 Loic Dachary
* click on the "Merge button"
16 1 Loic Dachary
* add the "Reviewed-by:" field to the input box
17 8 Loic Dachary
* when all pull requests are merged **git log --no-merges $release-backports ^$release** must be empty (i.e. the integration branch must have nothing left except diverging merges because all cherry-picked commits are now found in the $release branch).
18 8 Loic Dachary
* the $release-backports branch is reset to the $release branch to make it clear that it has been merged (git reset --hard ceph/$release)
19 1 Loic Dachary
20 8 Loic Dachary
Since the merge is not from the integration branch, the commit that has been tested won't match the SHA. This is inconvenient when trying to figure out if a mistake has been done. The content of the integration branch should be merged with a script instead of manually via the github web interface to avoid mistakes.