[OpenAFS-devel] Re: buildbot changes - adding config.log

Andrew Deason adeason@sinenomine.net
Mon, 21 Feb 2011 10:16:17 -0600


On Mon, 21 Feb 2011 08:41:47 -0500
Marc Dionne <marc.c.dionne@gmail.com> wrote:

> Maybe we could detect in the build script whether the current commit
> touches any configure files (src/cf/*, *.m4, *.ac) and include it only
> in that case?  Using "git diff" creatively can probably give us that
> information.

git diff-tree --numstat --no-commit-id HEAD | cut -f3

It still seems only likely to be useful if the build fails, though,
isn't it? Buildbot doesn't seem to have built-in functionality for
running steps only on failure, but I think it's possible with a custom
build step. Something with the arguments

alwaysRun=True, doStepIf=lambda step: step.build.terminate

might be able to do it, but it's a guess.

-- 
Andrew Deason
adeason@sinenomine.net