[Buildbot-devel] factory workdir

Dustin J. Mitchell dustin at v.igoro.us
Tue Jul 16 03:44:07 UTC 2013


On Wed, Jul 10, 2013 at 4:24 PM, Leif Walsh <leif.walsh at gmail.com> wrote:
> With a multiple codebase build, what exactly gets passed to a factory
> workdir function?  I'd like to know what API I'll be working with, whether
> it's a dict or list or just some object.  Alternatively, if someone has a
> way I can sort of trap one of these things in an environment where I can
> poke at it interactively, or at least print out features of it into a log,
> that would be enough to get me rolling.  I'm not sure how to log from
> within a factory workdir function.

It's a SourceStamp object, according to the documentation.

You can log from just about anywhere either with 'log.msg'
(twisted.python.log).  You can also use 'print', although I try to
avoid that except for temporary debugging stuff.

Dustin




More information about the devel mailing list