[Buildbot-devel] OT [Re: Dynamic list of logfiles]
Steve 'Ashcrow' Milner
smilner at redhat.com
Mon Feb 16 20:35:43 UTC 2009
On 16/02/09 14:35 -0500, Greg Ward wrote:
>Hi all --
>
>I have a ShellCommand that creates log files based on what it finds in
>its build tree. Specifically, it's a wrapper around "rpmbuild" that
>processes <dir>/*.spec, creating one log for each .spec file
>processed.
>
>Currently, I have cobbled something together where I use a SetProperty
>step to look for the same list of *.spec files and derive the log
>filenames from that. That's a bit gross because I'm repeating two
>bits of logic (find *.spec and transmute foo.spec to foo.log) in two
>places (the script being run and master.cfg).
>
>It has occurred to me that a ShellCommand that dynamically discovers
>log files would be really cool. I think I want something like this:
>
> ShellCommand(name="build-rpms",
> command=["./buildrpms",
> "--spec-dir", "spec",
> "--log-dir", "log"],
> logfilepattern="log/buildrpms.*.log")
>
>Then, as my buildrpms script is running, SlaveShellCommand (I think)
>would periodically look for files matching my logfilepattern and
>update the step's log files accordingly.
>
>Does this sound crazy? Has anyone attempted this? Is it possible
>to do entirely within master.cfg, or would I need to patch slave-side
>code?
>
>Thanks --
>
> Greg
>
>------------------------------------------------------------------------------
>Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>-Strategies to boost innovation and cut costs with open source participation
>-Receive a $600 discount off the registration fee with the source code: SFAD
>http://p.sf.net/sfu/XcvMzF8H
>_______________________________________________
>Buildbot-devel mailing list
>Buildbot-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/buildbot-devel
On a side note, check out the rpm code comming down in a future
version
http://github.com/djmitche/buildbot/tree/aa3a5bc6ee13859022b4ad13283b34f7ccf78781/buildbot/steps/package/rpm.
--
kthxbye!
Steve 'Ashcrow' Milner
Agent of Infosec
IRC: ashcrow
GnuPG ID: 28DFD4BE
"In the heat of conversation I may have said certain things I believe
to be untrue. The alleged lie that you might have heard me saying
allegedly moments ago ... thats a parasite that lives in my neck."
-- Tad Ghostal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20090216/d9e90a64/attachment.bin>
More information about the devel
mailing list