On Sat, 22 Aug 2015, Martin Winter wrote:

On 20 Aug 2015, at 6:13, Paul Jakma wrote:

So what you're asking is to push a commit at a time, and wait till the CI has run before pushing the next?

Yes, when possible. Or at least just bundle related commits together. My goal is still to have some automatic feedback on test results back to list (or maintainer) for each run, but at this time the result still needs too much manual investigation to make sure it’s not a false alarm if things break.

This could be tricky. We have to couple the pushing of commits to the running of the CI tool on those commits. Hmm. So the commiter would need to:

1. Push the next minimum set of commits that are needed to build (ideally that'd be 1 commit)
2. Check the CI tool and wait till it has run
3. Go to 1

?

This is the CI at https://ci1.netdef.org/browse/QUAGGA-QMASTER right?

Better would be to remember the last head the CI ran on, then after more commits are pulled in, go through each commit and do the CI on each? E.g. if abc123 was the last commit ID, then get the list of more recent commits, checkout and run the CI in that with something like:

for COMMIT in $(git rev-list abc123..); do
git checkout $COMMIT && runci() || exit ...
done

Unfortunately not without rewriting the whole CI system (as fas as I know). Atlassian Bamboo (which I use) and Jenkins work in a way that they get triggered by git server telling them that new commits are available
or by polling a git server for changes.

And they don't support doing something akin to 'git bisect' to find the commit? Surely others must have run into this?

Hmm, seems so:

https://issues.jenkins-ci.org/browse/JENKINS-12972
https://jira.atlassian.com/browse/SRCTREE-1125

Also, your suggestion would break builds in the rare case where multiple commits need to be tested together to build a working system (not sure if and how often this might happen).

Yeah, ideally every commit should be 'golden' and produce a buildable and workign tree. The ideal and reality have a tendency to disagree every now and then though, despite best efforts. ;)

regards,
--
Paul Jakma      [email protected]  @pjakma Key ID: 64A2FF6A
Fortune:
Experience is not what happens to you; it is what you do with what happens
to you.
                -- Aldous Huxley
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to