All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: Juergen Gross <jgross@suse.com>,
	Lars Kurth <lars.kurth@citrix.com>, Wei Liu <wei.liu2@citrix.com>,
	Doug Goldstein <cardoe@cardoe.com>,
	Committers <committers@xenproject.org>,
	Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: Xen project CI systems and committer workflow
Date: Tue, 30 Apr 2019 11:07:00 +0100	[thread overview]
Message-ID: <20190430100700.GU30543@zion.uk.xensource.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1904181048040.1370@sstabellini-ThinkPad-X260>

On Thu, Apr 18, 2019 at 10:54:05AM -0700, Stefano Stabellini wrote:
> On Thu, 18 Apr 2019, Wei Liu wrote:
> > Hi all
> > 
> > We now have Gitlab CI as a complementary system to Osstest and have planned to
> > add bots. It's high time we think about how we integrate them and how it may
> > improve our workflow.
> > 
> > ## Requirements
> > 
> > 1. We want to have light weight build tests before a patch series is reviewed
> > or committed.
> > 
> > 2. We don't want to push broken patches to central repository such that
> > everyone is blocked.
> > 
> > 3. We don't want to significantly change committer workflow.
> > 
> > Requirement 2 means that our current branching model will need to be changed.
> > Details will follow.
> > 
> > ## Overview of automation systems
> > 
> > - Gitlab CI
> > 
> >     It is capable of running build tests with relatively short turnaround time.
> > 
> > - Bots like Patchew and Patchwork
> > 
> >     They are able to slurp patches from xen-devel and maybe run customised
> >     scripts on those patches.
> > 
> > - Osstest
> > 
> >     Pushgate, integration test system. It runs more sophisticated tests
> >     compared to Gitlab CI. Turnaround time is long.
> >     
> > ## New world
> > 
> > There will be an unified endpoint for committers and bots. Committers and bots
> > will have their git trees. Patches are committed to those trees. An automated
> > system will get patches from those trees and trigger CI runs.
> > 
> > The system will pick up commits from one of the trees, merge them with master
> > and send the merge to CI systems.
> > 
> > For bots, only Gitlab CI build tests will run. Results are sent back to
> > xen-devel.
> > 
> > For committers' trees, at first Gitlab CI build tests are run, if the result is
> > successful, the merge commit is submitted to osstest. If osstest deems the
> > merge is good, the merge is pushed (published) to xen.git, otherwise the merge
> > is discarded. Test results are sent back to xen-devel.
> > 
> > With this system, all published commits should have already passed Gitlab CI
> > and osstest tests.
> > 
> > ## Gaps
> > 
> > The component / system which merges trees and drives CI systems is missing.
> > 
> > Patchew and Patchwork don't do all the things we care about yet.
> 
> I understand the general principle and I am on board. But I missing some
> details.
> 
> Is the idea that each committer would have his own git tree and branch
> with a specific name which would be picked up automatically by the
> CI-loop daily? In the style of linux-next? If it passed, it is given to
> OSSTest automatically and eventually committed?

Branch / tree -- whichever works best.

If the target under test passes, it will eventually be committed to
xen.git; otherwise the target is discarded and submitters / committers
get notified what failed.

> 
> Or is it the idea that each committer would have a way to manually
> submit a branch to the CI-loop for testing when he wished to do so?  In
> the style of github pull-requests-based CI-loops? If this is the case,
> then we just need a way to trigger the CI-loops on a given branch?
> 

This is the same as above. How the system works internally has no
visible effect on committer workflow.

In both cases, you just need to follow instructions to commit to a tree
/ branch / repository.

> In any case, my only feedback would be to also allow CI-loops on
> branches that are *not* meant to be committed automatically if tests
> pass. So that we can apply a complex series to a branch and see if tests
> pass before doing reviews or running experiments.

Understood.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

WARNING: multiple messages have this Message-ID (diff)
From: Wei Liu <wei.liu2@citrix.com>
To: Stefano Stabellini <sstabellini@kernel.org>
Cc: Juergen Gross <jgross@suse.com>,
	Lars Kurth <lars.kurth@citrix.com>, Wei Liu <wei.liu2@citrix.com>,
	Doug Goldstein <cardoe@cardoe.com>,
	Committers <committers@xenproject.org>,
	Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [Xen-devel] Xen project CI systems and committer workflow
Date: Tue, 30 Apr 2019 11:07:00 +0100	[thread overview]
Message-ID: <20190430100700.GU30543@zion.uk.xensource.com> (raw)
Message-ID: <20190430100700.VTA8bY2gR83JLXltAsTjw6WtYaLVqx48pUQnOozfp28@z> (raw)
In-Reply-To: <alpine.DEB.2.10.1904181048040.1370@sstabellini-ThinkPad-X260>

On Thu, Apr 18, 2019 at 10:54:05AM -0700, Stefano Stabellini wrote:
> On Thu, 18 Apr 2019, Wei Liu wrote:
> > Hi all
> > 
> > We now have Gitlab CI as a complementary system to Osstest and have planned to
> > add bots. It's high time we think about how we integrate them and how it may
> > improve our workflow.
> > 
> > ## Requirements
> > 
> > 1. We want to have light weight build tests before a patch series is reviewed
> > or committed.
> > 
> > 2. We don't want to push broken patches to central repository such that
> > everyone is blocked.
> > 
> > 3. We don't want to significantly change committer workflow.
> > 
> > Requirement 2 means that our current branching model will need to be changed.
> > Details will follow.
> > 
> > ## Overview of automation systems
> > 
> > - Gitlab CI
> > 
> >     It is capable of running build tests with relatively short turnaround time.
> > 
> > - Bots like Patchew and Patchwork
> > 
> >     They are able to slurp patches from xen-devel and maybe run customised
> >     scripts on those patches.
> > 
> > - Osstest
> > 
> >     Pushgate, integration test system. It runs more sophisticated tests
> >     compared to Gitlab CI. Turnaround time is long.
> >     
> > ## New world
> > 
> > There will be an unified endpoint for committers and bots. Committers and bots
> > will have their git trees. Patches are committed to those trees. An automated
> > system will get patches from those trees and trigger CI runs.
> > 
> > The system will pick up commits from one of the trees, merge them with master
> > and send the merge to CI systems.
> > 
> > For bots, only Gitlab CI build tests will run. Results are sent back to
> > xen-devel.
> > 
> > For committers' trees, at first Gitlab CI build tests are run, if the result is
> > successful, the merge commit is submitted to osstest. If osstest deems the
> > merge is good, the merge is pushed (published) to xen.git, otherwise the merge
> > is discarded. Test results are sent back to xen-devel.
> > 
> > With this system, all published commits should have already passed Gitlab CI
> > and osstest tests.
> > 
> > ## Gaps
> > 
> > The component / system which merges trees and drives CI systems is missing.
> > 
> > Patchew and Patchwork don't do all the things we care about yet.
> 
> I understand the general principle and I am on board. But I missing some
> details.
> 
> Is the idea that each committer would have his own git tree and branch
> with a specific name which would be picked up automatically by the
> CI-loop daily? In the style of linux-next? If it passed, it is given to
> OSSTest automatically and eventually committed?

Branch / tree -- whichever works best.

If the target under test passes, it will eventually be committed to
xen.git; otherwise the target is discarded and submitters / committers
get notified what failed.

> 
> Or is it the idea that each committer would have a way to manually
> submit a branch to the CI-loop for testing when he wished to do so?  In
> the style of github pull-requests-based CI-loops? If this is the case,
> then we just need a way to trigger the CI-loops on a given branch?
> 

This is the same as above. How the system works internally has no
visible effect on committer workflow.

In both cases, you just need to follow instructions to commit to a tree
/ branch / repository.

> In any case, my only feedback would be to also allow CI-loops on
> branches that are *not* meant to be committed automatically if tests
> pass. So that we can apply a complex series to a branch and see if tests
> pass before doing reviews or running experiments.

Understood.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-04-30 10:07 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-18 12:31 Xen project CI systems and committer workflow Wei Liu
2019-04-18 12:31 ` [Xen-devel] " Wei Liu
2019-04-18 12:32 ` Wei Liu
2019-04-18 12:32   ` [Xen-devel] " Wei Liu
2019-04-18 13:30   ` Doug Goldstein
2019-04-18 13:30     ` [Xen-devel] " Doug Goldstein
2019-04-18 13:21 ` Ian Jackson
2019-04-18 13:21   ` [Xen-devel] " Ian Jackson
2019-04-18 13:36   ` Doug Goldstein
2019-04-18 13:36     ` [Xen-devel] " Doug Goldstein
2019-04-18 13:59 ` Andrew Cooper
2019-04-18 13:59   ` [Xen-devel] " Andrew Cooper
2019-04-18 14:02   ` Ian Jackson
2019-04-18 14:02     ` [Xen-devel] " Ian Jackson
2019-04-25 12:37     ` Jan Beulich
2019-04-25 12:37       ` [Xen-devel] " Jan Beulich
2019-04-25 12:53       ` Julien Grall
2019-04-25 12:53         ` [Xen-devel] " Julien Grall
2019-04-25 13:01         ` George Dunlap
2019-04-25 13:01           ` [Xen-devel] " George Dunlap
2019-04-18 21:33   ` Doug Goldstein
2019-04-18 21:33     ` [Xen-devel] " Doug Goldstein
2019-04-23  9:12   ` Wei Liu
2019-04-23  9:12     ` [Xen-devel] " Wei Liu
2019-04-18 17:54 ` Stefano Stabellini
2019-04-18 17:54   ` [Xen-devel] " Stefano Stabellini
2019-04-30 10:07   ` Wei Liu [this message]
2019-04-30 10:07     ` Wei Liu
2019-04-25 12:33 ` Jan Beulich
2019-04-25 12:33   ` [Xen-devel] " Jan Beulich
2019-04-25 14:51   ` George Dunlap
2019-04-25 14:51     ` [Xen-devel] " George Dunlap

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=20190430100700.GU30543@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=cardoe@cardoe.com \
    --cc=committers@xenproject.org \
    --cc=jgross@suse.com \
    --cc=lars.kurth@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.