[Buildbot-devel] Fwd: How to debug FileUpload

Dustin J. Mitchell dustin at v.igoro.us
Mon May 12 03:01:08 UTC 2014


I'm not sure what would be wrong with the step to turn it red.  Setting
'debug = True' in slave/buildslave/commands/transfer.py might give more
information.  In general, the places that you see 'self.rc = 1' there are
where that red status might originate.

The mode should be an integer, written with a leading 0.

Dustin


On Thu, May 8, 2014 at 8:11 AM, Julia S.S. <hithwen at gmail.com> wrote:

> Hi, I'm trying to upload some html reports from slaves to master, the step
> fails but I can't guess the reason.
> Step is defined like this:
>
> class UploadReport(FileUpload):
>     def __init__(self):
>         FileUpload.__init__(self,
>                             slavesrc=WithProperties('build/python/%s',
> 'report_path'),
>
> masterdest=WithProperties("/var/www/testreport/%s.html", 'report_path'))
>
> (report_path) property is set in a previous step.
>
> The step executes, description is set to "uploading develop-1676.html" but
> it turns red.
> I don't see any errors anywhere, not in the slave log nor in the master
> one. File exists with (-rw------- permissions).
> I've tried setting a relative path in masterdest (even if it has write
> permissions in the given folder, but just in case). How can i guess what is
> happening here?
>
> Also is not clear in the documentation, if I want to pass a mode to
> FileUpload constructor should I pass an integer, a string? which format?
>
>
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> • 3 signs your SCM is hindering your productivity
> • Requirements for releasing software faster
> • Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20140511/cbf0e4b5/attachment.html>


More information about the devel mailing list