[Buildbot-commits] [Buildbot] #1963: FileUpload creates truncated file when buildslave is not on localhost

Buildbot nobody at buildbot.net
Tue May 24 18:58:28 UTC 2011


#1963: FileUpload creates truncated file when buildslave is not on localhost
----------------------+------------------------
Reporter:  landry     |       Owner:
    Type:  undecided  |      Status:  new
Priority:  major      |   Milestone:  undecided
 Version:  0.8.3p1    |  Resolution:
Keywords:             |
----------------------+------------------------

Comment (by landry):

 I've just changed debug = True in buildslave/commands/transfer.py, and
 here's what i'm getting :

 {{{
 2011-05-24 09:54:39+0200 [Broker,client]  startCommand:uploadFile [id
 1576]
 2011-05-24 09:54:39+0200 [Broker,client] SlaveFileUploadCommand started
 2011-05-24 09:54:39+0200 [Broker,client] Opened '/var/buildslave/mozilla-
 aurora-sparc64/build/objdir/dist/firefox-5.0a2.en-
 US.openbsd4.9-sparc64.tar.bz2' for upload
 2011-05-24 09:54:39+0200 [Broker,client] sendStatus {'header': 'sending
 /var/buildslave/mozilla-aurora-sparc64/build/objdir/dist/firefox-5.0a2.en-
 US.openbsd4.9-sparc64.tar.bz2'}
 2011-05-24 09:54:39+0200 [-] SlaveFileUploadCommand._writeBlock():
 allowed=16384 readlen=14
 2011-05-24 09:54:39+0200 [Broker,client]
 SlaveFileUploadCommand._writeBlock(): allowed=16384 readlen=0
 2011-05-24 09:54:39+0200 [Broker,client] EOF: callRemote(close)
 2011-05-24 09:54:39+0200 [Broker,client] finished: stderr=None, rc=0
 2011-05-24 09:54:39+0200 [Broker,client] sendStatus {'rc': 0}
 2011-05-24 09:54:39+0200 [Broker,client] SlaveBuilder.commandComplete
 <buildslave.commands.transfer.SlaveFileUploadCommand instance at
 0x2087e9b00>
 }}}

 So it looks like the slave has some issues reading the file, but the file
 was generated by the previous buildstep (make package), and is supposed to
 be here. I was using previously the following steps :
 - run a script which copies the file in a known dir on the slave
 - DirectoryUpload the dir to the master
 and it worked...

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1963#comment:4>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list