Jonathan Martens | 2 Nov 11:10 2011
Picon

Error in latest documentation of Properties

The example on how to import the Property class under the Property 
header in 
http://buildbot.net/buildbot/docs/latest/manual/cfg-properties.html 
contains a typo.

It reads:

form buildbot.process.properties import Property

where it should read:

from buildbot.process.properties import Property

Kind regards,

Jonathan

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
Gerd Hoffmann | 2 Nov 18:52 2011
Picon

git 1.7.7 trouble

  Hi folks,

Looks like a recent git change broke buildbot.  One of my build slaves,
running Fedora 16, stopped working recently.  Also git was updated from
1.7.6 to 1.7.7 on that machine recently, which I think is the root cause
of the failure.  The other build slaves running older git releases are
doing just fine.

Specifically the command '/usr/bin/git branch -M master' used by
buildbot stopped working, I have this error message in the logfile:

  fatal: Cannot force update the current branch.

Updated buildbot on the master to the latest release (0.8.5) today,
didn't help.

Suggestions anyone?

cheers,
  Gerd

PS: full log is here:
http://buildbot.b1-systems.de/qemu/builders/default_x86_64_fedora16/builds/72/steps/git/logs/stdio

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
(Continue reading)

Dustin J. Mitchell | 2 Nov 19:49 2011
Picon

Re: git 1.7.7 trouble

That sounds like http://trac.buildbot.net/ticket/2127, which has a
patch attached.  As you can see from the bug, it requires some
additional modification to backport it.

Dustin

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
Amber Yust | 2 Nov 23:33 2011

Re: Error in latest documentation of Properties

https://github.com/buildbot/buildbot/commit/d4955160456b4b7840598cb9f524efc624d700d8

On Wed, Nov 2, 2011 at 3:10 AM, Jonathan Martens <jonathan-ijYP5wTkRizz+pZb47iToQ@public.gmane.org> wrote:
The example on how to import the Property class under the Property
header in
http://buildbot.net/buildbot/docs/latest/manual/cfg-properties.html
contains a typo.

It reads:

form buildbot.process.properties import Property

where it should read:

from buildbot.process.properties import Property

Kind regards,

Jonathan

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel@...
https://lists.sourceforge.net/lists/listinfo/buildbot-devel
Gerd Hoffmann | 3 Nov 09:42 2011
Picon

Re: git 1.7.7 trouble

On 11/02/11 19:49, Dustin J. Mitchell wrote:
> That sounds like http://trac.buildbot.net/ticket/2127, which has a
> patch attached.  As you can see from the bug, it requires some
> additional modification to backport it.

Applies cleanly to 0.8.4 slave and fixes the issue.

thanks,
  Gerd

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
my_bulk | 8 Nov 05:59 2011

Git build step logs in web status page

Hello,

Is there a way to disable printing environment information to the web 
page that shows stdio for a git build step?

I set the logEnviron to False for my shell steps and they're fine, but 
it doesn't look like the git steps have that parameter.

I don't have authentication setup for those pages and I'd rather not 
print that stuff where the whole world can see. Is there some way to 
suppress the environment info but still show what went wrong if the 
checkout fails for some reason?

Thanks,

Brett

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
Marc-Antoine Ruel | 8 Nov 15:01 2011

Re: Git build step logs in web status page

What buildbot slave version are you using?


It seems logEnviron is correctly passed on master <at> HEAD

Le 7 novembre 2011 23:59, <my_bulk <at> brettmingalls.com> a écrit :
Hello,

Is there a way to disable printing environment information to the web
page that shows stdio for a git build step?

I set the logEnviron to False for my shell steps and they're fine, but
it doesn't look like the git steps have that parameter.

I don't have authentication setup for those pages and I'd rather not
print that stuff where the whole world can see. Is there some way to
suppress the environment info but still show what went wrong if the
checkout fails for some reason?

Thanks,

Brett

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel@...
https://lists.sourceforge.net/lists/listinfo/buildbot-devel
Todd Cooper | 8 Nov 22:37 2011
Picon

Perforce and getting stdin to slave

I just started a new position where they are using Perforce.

I have builds working using the p4 buildbot client, but there is nothing in the client to label the builds.

In order to create a new label (or client) in perforce, the commands take stdin for the client description.

In the p4 source connector on the slave this is accomplished by building a long string in python and then using the "log.msg" function in buildbot.

Is there a way I can pass a stdin steps.ShellCommand or steps.MasterShellCommand so I don't have to hack the slave side?

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel@...
https://lists.sourceforge.net/lists/listinfo/buildbot-devel
my_bulk | 9 Nov 03:20 2011

Re: Git build step logs in web status page

The master and slave are on the same FreeBSD machine:

$ buildbot --version
Buildbot version: 0.8.3p1
Twisted version: 11.0.0

$ buildslave --version
Buildslave version: 0.8.4
Twisted version: 11.0.0

I put the traceback from setting logEnviron at the bottom of the 
message. It basically shows an unexpected keyword argument passed to 
buildbot.steps.source.Git in the buildbot/process/buildstep.py file.

I suspect that I'm calling the checkout step incorrectly because I 
noticed that the file you referenced, git.py, is never called. I went 
back to the docs on buildbot.net and it says to import the Git class 
like this...

from buildbot.steps.source.git import Git

...but I don't have a git module under source:

 >>> from buildbot.steps import source
 >>> dir(source)
['BK', 'BuildSlaveTooOldError', 'Bzr', 'CVS', 'Darcs', 'Git', 
'LoggedRemoteCommand', 'LoggingBuildStep', 'Mercurial', 'P4', 'P4Sync', 
'Repo', 'SKIPPED', 'SVN', 'Source', '__builtins__', '__doc__', 
'__file__', '__name__', '__package__', 'formatdate', 'log', 'warn']
 >>>

I must not have noticed that discrepancy when I was reading the docs. I 
do have the git.py file; it's at 
/usr/local/lib/python2.7/site-packages/buildslave/commands/git.py. I 
think it's probably an easy fix and I'm just calling the class 
instantiation incorrectly.

Any ideas?

Thanks for your help,

Brett M Ingalls

TRACEBACK
=========
$ buildbot stop . && buildbot start .
buildbot process 80562 is dead
Following twistd.log until startup finished..
2011-11-08 17:45:28-0800 [-] Log opened.
2011-11-08 17:45:28-0800 [-] twistd 11.0.0 (/usr/local/bin/2.7 2.7.2) 
starting up.
2011-11-08 17:45:28-0800 [-] reactor class: 
twisted.internet.selectreactor.SelectReactor.
2011-11-08 17:45:28-0800 [-] Creating BuildMaster -- buildbot.version: 
0.8.3p1
2011-11-08 17:45:28-0800 [-] loading configuration from 
/usr/local/buildmaster/bmi/master.cfg
2011-11-08 17:45:28-0800 [-] error while parsing config file
2011-11-08 17:45:28-0800 [-] error during loadConfig
2011-11-08 17:45:28-0800 [-] Unhandled Error
	Traceback (most recent call last):
	  File 
"/usr/local/lib/python2.7/site-packages/twisted/scripts/_twistd_unix.py", line 
323, in startApplication
	    app.startApplication(application, not self.config['no_save'])
	  File 
"/usr/local/lib/python2.7/site-packages/twisted/application/app.py", 
line 644, in startApplication
	    service.IService(application).startService()
	  File 
"/usr/local/lib/python2.7/site-packages/twisted/application/service.py", 
line 277, in startService
	    service.startService()
	  File "/usr/local/lib/python2.7/site-packages/buildbot/master.py", 
line 670, in startService
	    self.loadTheConfigFile()
	--- <exception caught here> ---
	  File "/usr/local/lib/python2.7/site-packages/buildbot/master.py", 
line 703, in loadTheConfigFile
	    d = self.loadConfig(f)
	  File "/usr/local/lib/python2.7/site-packages/buildbot/master.py", 
line 727, in loadConfig
	    exec f in localDict
	  File "/usr/local/buildmaster/bmi/master.cfg", line 37, in <module>
	    logEnviron=False))
	  File 
"/usr/local/lib/python2.7/site-packages/buildbot/steps/source.py", line 
815, in __init__
	    Source.__init__(self, **kwargs)
	  File 
"/usr/local/lib/python2.7/site-packages/buildbot/steps/source.py", line 
125, in __init__
	    LoggingBuildStep.__init__(self, **kwargs)
	  File 
"/usr/local/lib/python2.7/site-packages/buildbot/process/buildstep.py", 
line 1049, in __init__
	    BuildStep.__init__(self, *args, **kwargs)
	  File 
"/usr/local/lib/python2.7/site-packages/buildbot/process/buildstep.py", 
line 634, in __init__
	    raise TypeError(why)
	exceptions.TypeError: <buildbot.steps.source.Git instance at 
0x804ac03b0>.__init__ got unexpected keyword argument(s) ['logEnviron']

On 2011.11.08 09:01 , Marc-Antoine Ruel wrote:
> What buildbot slave version are you using?
>
> It seems logEnviron is correctly passed on master <at> HEAD
> https://github.com/buildbot/buildbot/blob/master/slave/buildslave/commands/git.py#L70
>
>
> M-A
>
> Le 7 novembre 2011 23:59,<my_bulk <at> brettmingalls.com>  a écrit :
>
>> Hello,
>>
>> Is there a way to disable printing environment information to the web
>> page that shows stdio for a git build step?
>>
>> I set the logEnviron to False for my shell steps and they're fine, but
>> it doesn't look like the git steps have that parameter.
>>
>> I don't have authentication setup for those pages and I'd rather not
>> print that stuff where the whole world can see. Is there some way to
>> suppress the environment info but still show what went wrong if the
>> checkout fails for some reason?
>>
>> Thanks,
>>
>> Brett
>>
>>
>> ------------------------------------------------------------------------------
>> RSA(R) Conference 2012
>> Save $700 by Nov 18
>> Register now
>> http://p.sf.net/sfu/rsa-sfdev2dev1
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>
>

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel
Mitchell Hashimoto | 13 Nov 02:45 2011
Picon

UnicodeDecodeError in GitHub Push

Hello,


I enabled the post-receive hook to the WebStatus module, and it is successfully detecting my changes and initiating builds. However, the slave immediately fails with this error:

exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1547: ordinal not in range(128)

The full stack trace is here: https://gist.github.com/fd8a0f229736d59c3329

I don't have any unicode in my commit messages or in my files (that I know of). What could be causing this and how can I avoid this?

Note that when I manually force a build, the build runs fine.

Thank you!

Best,
Mitchell
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel@...
https://lists.sourceforge.net/lists/listinfo/buildbot-devel

Gmane