[Buildbot-devel] Buildbot and Perforce
Tony Walker
tony.walker at crocodile-clips.com
Wed Jun 1 08:18:10 UTC 2005
Hi Brian,
Thanks for the info, I will chase this up. I have followed the link to
the log from the 'update failed' red box before, it gave me the
following info:
starting p4 sync
rm -rf /home/developer/Buildbot_Slave/full/build
in dir /home/developer/Buildbot_Slave/full (timeout 1200 secs)
argv: ['rm', '-rf', '/home/developer/Buildbot_Slave/full/build']
environment: {'SSH_ASKPASS': '/usr/libexec/openssh/gnome-ssh-askpass',
'LS_COLORS':
'no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01
:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00
;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;
31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*
.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.j
pg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.t
if=00;35:', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'SSH_CLIENT':
'192.168.0.21 44391 22', 'LOGNAME': 'developer', 'USER': 'developer',
'INPUTRC': '/etc/inputrc', 'PATH':
'/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/qt/bin:/usr/loca
l/bin:/home/developer/bin', 'QTDIR': '/usr/local/qt', 'P4PORT':
'192.168.0.80:1666', 'LD_LIBRARY_PATH': ':/usr/local/qt/lib', '_':
'/usr/bin/buildbot', 'LANG': 'en_GB.UTF-8', 'P4CLIENT': 'devbuilder0',
'TERM': 'xterm', 'SHELL': '/bin/bash', 'SHLVL': '1', 'SSH_TTY':
'/dev/ttyp6', 'OLDPWD': '/home/developer/Buildbot_Slave/full',
'HOSTNAME': 'devbuilder0', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE':
'1000', 'PWD': '/home/developer', 'P4USER': 'Tony', 'MAIL':
'/var/spool/mail/developer', 'SSH_CONNECTION': '192.168.0.21 44391
192.168.0.20 22', 'HOME': '/home/developer'}
program finished with exit code -1
It doesn't really tell me why p4 failed. I would have thought that if it
was executing 'p4 sync' then I would see some complaints in the log, but
I can't see anything. It's almost as if it doesn't know what 'p4sync'
is? Is this a typical 'buildbot' log output or do I have to switch on a
flag to get more info?
Thanks for the help, appreciate it.
> -----Original Message-----
> From: Brian Warner [mailto:warner-buildbot at lothar.com]
> Sent: 31 May 2005 20:03
> To: tony.walker at crocodile-clips.com
> Cc: buildbot-devel at lists.sourceforge.net
> Subject: Re: [Buildbot-devel] Buildbot and Perforce
>
> > I am really interested in using buildbot as our build system here
but I
> > am having trouble combing perforce with a build slave. Perofrce and
it's
> > view and client are set up correctly for the buildslave, but when
> > attempting to run a build it fails.
>
> Based upon those log messages, the 'p4 sync' command failed. There
should
> be
> more information (i.e. the stdout/stderr from the p4 command
explaining
> why
> it failed) in the log for that build step, available from your
> buildmaster's
> web page. Once the build has failed, you should see a red "p4 sync"
box,
> with
> a "log" link.. just follow that link for more details.
>
> Note that step.P4Sync is really rudimentary: doesn't know how to setup
the
> view spec or check out an initial tree. It only knows how to run 'p4
sync'
> in
> a specified directory. You have to make sure that running that command
in
> that directory will do what you want. The directory will depend upon
how
> you've configured the builder, and will be announced in the log for
that
> step.P4Sync command, but it will be of the form:
>
> slave_basedir + builddir + "source"
>
> hope that helps,
> -Brian
More information about the devel
mailing list