[ANNOUNCE] Batch and Task plugins

96 views
Skip to first unread message

mf...@codeaurora.org

unread,
Nov 16, 2018, 1:46:55 PM11/16/18
to Repo and Gerrit Discussion
After two years of eager anticipation (better late than never), I would like
to finally announce the availability of the "batch" and "task" plugins on
https://gerrit-review.googlesource.com! I gave a talk about these plugins
at the 2016 Gerrit User Summit, and earlier this week at the Gerrit
Hackathon in Palo Alto I was able to finally complete a basic port of these
plugins to the open source versions of Gerrit. They are now available for
consumption, feedback, and improvement.

We use both of these plugins internally and would like to share them with
the Gerrit community with the hope that more common solutions will be
available to CI developers. They are focused abstractions of some principles
and ideas that we have found essential and common to designing reliable CI
systems. They are aimed at supporting large teams and organizations with a
high throughput of change creation and submission. They help support
complex custom business workflow requirements and inter team coordination
for change vetting, testing, and submission.

The batch plugin:
https://gerrit-review.googlesource.com/admin/repos/plugins/batch

From the plugin description:
The batch plugin provides a mechanism for building and previewing sets of
proposed updates to multiple projects/branches/refs that should be applied
together. The focus of batch updates tend to be verification (by CI
systems). The batch update service provides the tools to build refs by
merging changes to temporary "snapshot" refs, which can then be tested
extensively, and finally submitted "as is".

The task plugin:
https://gerrit-review.googlesource.com/admin/repos/plugins/task

From the plugin description:
The task plugin provides a mechanism to manage tasks which need to be
performed on changes along with a way to expose and query this information.
Tasks are organized hierarchically, and task definitions use Gerrit queries
to define which changes each task applies to, and how to define the status
criteria for each task. An important use case of the task plugin is to have
a common place for CI systems to define which changes they will operate on,
and when they will do so.

I would really love to hear any stories about people's experiences with
them. Thanks!

-Martin

* The 2016 Gerrit User summit talk abstract:
https://gerrit.googlesource.com/summit/2016/+/3f554b767555ecc144bb9c197aaff5
51e27ab9f1/sessions/ci-system-plugins.md

* Some previous discussions about the need for the batch plugin.
https://groups.google.com/d/msg/repo-discuss/O2KIkHEoU38/OFnwBexyAQAJ
https://groups.google.com/d/msg/repo-discuss/JpgVDENhISg/SKPGJ8urDAAJ
https://groups.google.com/d/msg/repo-discuss/N6QazQQgLRk/XCmOKee9AAAJ
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation


David Pursehouse

unread,
Nov 17, 2018, 3:24:32 AM11/17/18
to mf...@codeaurora.org, Repo and Gerrit Discussion
The batch plugin for Gerrit 2.15 is available to download from CI:


I'm working on getting it working for 2.16 and it should be available within the coming week.

The task plugin is not yet build on CI.


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luca Milanesio

unread,
Nov 17, 2018, 9:42:42 AM11/17/18
to David Pursehouse, Luca Milanesio, Martin Fick, Repo and Gerrit Discussion

On 17 Nov 2018, at 00:24, David Pursehouse <david.pu...@gmail.com> wrote:

The batch plugin for Gerrit 2.15 is available to download from CI:


I'm working on getting it working for 2.16 and it should be available within the coming week.

The task plugin is not yet build on CI.

Woking on it :-)

Luca.

David Pursehouse

unread,
Nov 17, 2018, 10:08:43 AM11/17/18
to Luca Milanesio, Martin Fick, Repo and Gerrit Discussion
On Sat, Nov 17, 2018 at 6:42 AM Luca Milanesio <luca.mi...@gmail.com> wrote:

On 17 Nov 2018, at 00:24, David Pursehouse <david.pu...@gmail.com> wrote:

The batch plugin for Gerrit 2.15 is available to download from CI:


I'm working on getting it working for 2.16 and it should be available within the coming week.

The task plugin is not yet build on CI.

Woking on it :-)


The project currently only has a Maven-based build.  I added the Bazel build here:

Luca Milanesio

unread,
Nov 17, 2018, 10:54:44 AM11/17/18
to David Pursehouse, Luca Milanesio, Martin Fick, Repo and Gerrit Discussion

On 17 Nov 2018, at 07:08, David Pursehouse <david.pu...@gmail.com> wrote:

On Sat, Nov 17, 2018 at 6:42 AM Luca Milanesio <luca.mi...@gmail.com> wrote:

On 17 Nov 2018, at 00:24, David Pursehouse <david.pu...@gmail.com> wrote:

The batch plugin for Gerrit 2.15 is available to download from CI:


I'm working on getting it working for 2.16 and it should be available within the coming week.

The task plugin is not yet build on CI.

Woking on it :-)


The project currently only has a Maven-based build.

Gerrit-CI supports any builds system:
- Maven
- Sbt
- Bazel
- ... you name it :-)

Developing a plugin for Gerrit doesn't really forces the use of Bazel, it is just a suggestion
Cool.
Reply all
Reply to author
Forward
0 new messages