librelist archives

« back to archive

Providing polling support to integrity

Providing polling support to integrity

From:
Joel Chippindale
Date:
2009-12-21 @ 15:19
The default mechanism for triggering integrity builds automatically is
to use the github post commit server hooks. If you don't use github or
your continuous integration server is not able to recieve HTTP
requests from github then you are broadly on your own.

There is
- the start of a polling example at http://integrityapp.com/ (see
'polling' section).
- a google search will give you guide to to adding post-commit hooks
to your own git repositories e.g.
http://morethanseven.net/2008/12/28/local-continuous-integration-integrity/

However I think it would be really valuable to provide first class
support for setting up integrity to poll for new commits because
anyone with a git repository can use this. By first class support I
meant that we should enable someone to set up Integrity to poll for
new commits without them having to write (or even copy and paste) any
code.

Perhaps by this could be done adding a polling rake task (like the one
is this commit 
http://github.com/econsultancy/integrity/commit/ad6ec64475b09c670ab10c1b0a6da9846cd53771)
or command line script to the main integrity project with instructions
on how to add it to your list of cron jobs.

Or perhaps, if it wasn't considered core, by pointing people towards a
gem plugin integrity-polling say, that could easily be added to the
project (in the same way that notifiers are). This is the approach
taken by Ben Koski with his out of date integrity-watcher
(http://github.com/bkoski/integrity-watcher).

What do you think?

J.

Re: [integrity] Providing polling support to integrity

From:
Simon Rozet
Date:
2009-12-21 @ 20:14
On Mon, Dec 21, 2009 at 4:19 PM, Joel Chippindale
<joel.chippindale@gmail.com> wrote:
> What do you think?

Yeah, I definitely want to make using something else than GitHub
to trigger builds easy.

I've renamed the current push endpoint into /github to allows the
addition of a new push endpoint with a much simpler payload format:

  { "uri" => "git://..", "branch" => "master", "commits" =>
    [{"id" => "HEAD"}] }.to_json

I'll see about the rake task.

Thanks,

--
github.com/sr

Re: [integrity] Providing polling support to integrity

From:
Simon Rozet
Date:
2009-12-22 @ 23:11
On Mon, Dec 21, 2009 at 9:14 PM, Simon Rozet <simon@rozet.name> wrote:
> On Mon, Dec 21, 2009 at 4:19 PM, Joel Chippindale
> <joel.chippindale@gmail.com> wrote:
>> What do you think?
>
> Yeah, I definitely want to make using something else than GitHub
> to trigger builds easy.
>
> I've renamed the current push endpoint into /github to allows the
> addition of a new push endpoint with a much simpler payload format:
>
>  { "uri" => "git://..", "branch" => "master", "commits" =>
>    [{"id" => "HEAD"}] }.to_json


http://github.com/integrity/integrity/commit/ba231d2203e90626d6d89f617e883b59ad6c7e98

Now to document how to use it...

-- 
github.com/sr