[Buildbot-devel] Fix the permissions before starting a new build

Nathaniel Smith njs at pobox.com
Mon Mar 5 19:19:56 UTC 2007


On Sat, Mar 03, 2007 at 09:43:20PM +0100, Benoit Sigoure wrote:
> It would be great if BuildBot could chmod -R u+w the build directory before
> removing it. Actually I'm doing this manually by adding a build step before the
> checkout step, but I guess that many projects will end up with the same problem
> so why not just change this in the BuildBot? :)

+1, we run into this problem all the time as well.  Very annoying --
need to find the buildbot owner and get them to intervene manually
every time it happens.

We have our build step set up to do it automatically even when the
distcheck itself fails, similar to the suggestion downthread of using
a shell script[1].  This reduces the frequency a lot, but we _still_
run into it all the time -- there are times when buildbot will simply
kill off a running build, e.g. when it appears wedged, or when the
slave connection drops.  In such cases, there's just no way for build
code to clean up -- it's already dead.  The only thing that can
reliably fix this is buildbot itself.

-- Nathaniel

[1] Our actual build command is the beautiful:
  make distcheck && chmod -R u+w .) \
  || (chmod -R u+w .;  cat monotone-*/_build/tester_dir/tester.log; \
      cat monotone-*/_build/unit_tests.log; \
      false)

-- 
Damn the Solar System.  Bad light; planets too distant; pestered with
comets; feeble contrivance; could make a better one myself.
  -- Lord Jeffrey




More information about the devel mailing list