Zymunt tried to send this to validation, but it bounced.


Begin forwarded message:

From: Zygmunt Bazyli Krynicki <zkrynicki@gmail.com>
Date: 9 July 2013 15:48:58 GMT+01:00
To: Dave Pigott <dave.pigott@linaro.org>
Subject: Fwd: Automatically testing and landing approved LAVA merge requests



---------- Forwarded message ----------
From: Zygmunt Krynicki <zkrynicki@gmail.com>
Date: 2013/7/5
Subject: Automatically testing and landing approved LAVA merge requests
To: linaro-validation@lists.linaro.org
Cc: tyler.baker@linaro.org


Hi.

I'm working on CI that automatically tests and lands approved branches to lp:lava subprojects. Currently the process of adding another project to support is manual. It requires adding a few lines to tarmac configuration file and creating the required ci-info directory.

I've done that for lp:lava-tool and lp:lava-server (which fails CI today) and I'm doing that for lp:lava-dispatcher (also fails today).

Currently the automatic merges are *already enabled* for lp:lava-tool. Any merge request that has at least one "approved" review comment the whole merge request is switched to "approved" state is automatically landed. Failure to run tests obviously prevents landing with an appropriate comment being added to the merge request. Merges happen every hour, I can easily make that more common if you want to though.

Currently all testing happens on Ubuntu 12.04.2 LTS. If required we can enable testing on any OS of choice without much issues but someone should add 1GB to the machine that runs all tests for proper virtualization support. I was thinking that we could extend that to Fedora and Debian if there is interest.

I'll be rolling this out with Tyler's approval to all the other projects in the LAVA group. Currently the CI information (how to run tests, etc) is inside the lava-landing-tests repository but it can be moved to particular project repositories (the code already supports that).

I've pushed the code to https://github.com/zyga/lava-landing-tests - comments, questsions, bugs, pull requests are all welcome.

Thanks
ZK