All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abhishek Lekshmanan <abhishek@suse.com>
To: Sage Weil <sweil@redhat.com>, Patrick Donnelly <pdonnell@redhat.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: build-integration-branch
Date: Tue, 05 Sep 2017 17:28:33 +0200	[thread overview]
Message-ID: <871snlupum.fsf@suse.com> (raw)
In-Reply-To: <alpine.DEB.2.11.1709051406000.20435@piezo.novalocal>

Sage Weil <sweil@redhat.com> writes:

> On Mon, 4 Sep 2017, Patrick Donnelly wrote:
>> On Wed, Aug 30, 2017 at 1:58 PM, Sage Weil <sweil@redhat.com> wrote:
>> > I got tired of doing this by hand and finally wrote a script to do it
>> > instead:
>> >
>> >         https://github.com/ceph/ceph/pull/17382
>> >
>> > Go tag your PRs with wip-whatever-testing, then
>> >
>> >  git checkout master
>> >  git pull
>> >  ../src/script/build-integration-branch wip-whatever-testing
>> >  make && ctest -j12 && git push ci $(git rev-parse --abbrev-ref HEAD)
>> 
>> I figure I'll share my own integration branch script (attached) which
>> is based on some work John Spray did. It's probably too specific to my
>> own workflow but pieces can be pulled out to suit others' needs.
>> 
>> How it's used:
>> 
>> $ python2 ptl_tool.py pr#1 pr#2 [...]
>> 
>> which does:
>> 
>> 1) Builds a branch based on refs/upstream/heads/master named
>> wip-$NAME-testing-$DATE.
>> 2) Fetches comments/reviews from GitHub for each PR, looking for
>> review approvals for Reviewed-bys.
>> 3) Merges refs/upstream/pull/pr#/head with a commit message including
>> each commit's title and "Reviewed-by".
>> 4) Labels each merged PR with "wip-$NAME-testing".
>> 5) Tags the integration branch locally for posterity.

We use
http://tracker.ceph.com/projects/ceph-releases/wiki/HOWTO_populate_the_integration_branch

for populating integration branches for teuthology runs, this currently
populates all the prs in a milestone, but making it do a label should be
easy enough, also after the tests,
a simple
$ git log --oneline --merges master..integration-branch

should list all the PRs that are merge-worthy

>>
>> You can also then merge into master or a release branch using:
>> 
>> $ python2 ptl_tool.py master pr#1 [...]
>> 
>> and the commit message is adjusted accordingly. (Also, no testing
>> label is applied as it's not an integration branch.)
>
> Nice! Populating the merge commit with the reviewers is tedious.. 
> automating that would be great. 
>
> The one bit of the above workflow I don't much like is having to manually 
> copy/paste or type the PR #'s.  It's easy to tag them in github while 
> browsing reviewing, so having the tool query the tags (instead of setting 
> them) seems easier (although the tool could easily support both 
> workflows).
>
> Similarly, for merging, we could make the tool merge all prs tagged with a 
> label.. or give it a specific pr # (or list).
>
> sage
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

-- 
Abhishek 

  reply	other threads:[~2017-09-05 15:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30 20:58 build-integration-branch Sage Weil
2017-09-04 19:28 ` build-integration-branch Patrick Donnelly
2017-09-04 20:36   ` build-integration-branch Patrick Donnelly
2017-09-05 14:08   ` build-integration-branch Sage Weil
2017-09-05 15:28     ` Abhishek Lekshmanan [this message]
2017-09-06 17:21     ` build-integration-branch Ken Dreyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871snlupum.fsf@suse.com \
    --to=abhishek@suse.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=pdonnell@redhat.com \
    --cc=sweil@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.