[Buildbot-devel] buildslave.0.8.1 on windows xp as a service

David Weidenkopf dweidenkopf at cococorp.com
Thu Sep 2 16:08:48 UTC 2010


First, let me say I am not an advanced python developer. It seems that we should create a buildslave_service.py that is analogous to buildbot_service.py and would live in Python\Scripts.
Here's the code:

#!C:\Python26\python.exe
# EASY-INSTALL-SCRIPT: 'buildbot==0.8.1','buildbot_service.py'
__requires__ = 'buildbot_slave==0.8.1'
import pkg_resources
pkg_resources.run_script('buildbot_slave==0.8.1', 'buildbot_service.py')

Then the buildbot_service.py needs to be modified (line 508 or so)  so that it can be installed with the slave and the master. I propose that it try to import runners from both buildbot and buildslave and run them both. Also it would gracefully handle the exception when either is not present.

Having said all this, I am don't know how eggs are put together etc. and other packaging details. I think what I describe is how it should be post-install. How to achieve that is what I am not sure about.

So far I have only manually copied files around on the slave to make the service creation work.


From: Robert Stackhouse [mailto:robertstackhouse at gmail.com]
Sent: Wednesday, September 01, 2010 8:25 PM
To: David Weidenkopf
Cc: Reagan, Drew
Subject: Re: [Buildbot-devel] buildslave.0.8.1 on windows xp as a service

David, what's your idea?

I have not done a clean install of the 0.8.1 slave package of buildbot, but I do have an 0.8.1 slave running as a service.

I created the Windows service using 0.8.0 or 0.7.12. I would like to get this working out of the box though for 0.8.1 and beyond.

Robert
On Wed, Sep 1, 2010 at 3:27 PM, David Weidenkopf <dweidenkopf at cococorp.com<mailto:dweidenkopf at cococorp.com>> wrote:
This may be a duplicate post, but I didn't see it come through, sorry if it is a dupe...

Hello, has anyone been able to install a buildslave as a service after only installing buildslave? More precisely, have you successfully executed "python buildbot_service.py --user YOURDOMAIN\builduser --password <theuserspassword> --startup auto install" per http://buildbot.net/trac/wiki/RunningBuildbotOnWindows? I suspect the answer is no. The reason, as far as I can tell, is that the slave package does not even include this file. Also, the slave egg does not include buildbot_service.py with all the service goo in it. I have figured out a crude way to patch the installation so that the above command does work. I want to confirm that this is necessary, anyone? Again, version 0.8.1 where master and slave have been separated. I believe this is the source of the problem.

Finally, if we can confirm the problem, and if we can get a ticket better written than http://buildbot.net/trac/ticket/975 I would be interested in helping fix it. I have an idea I can run by an appropriate maintainer.


Hope to be able to contribute to a fix if required...


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel at lists.sourceforge.net<mailto:Buildbot-devel at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/buildbot-devel



--
Robert Stackhouse

http://robertstackhouse.com/flavorsof
http://agilebcs.org
http://bcsbloggers.org
http://uweb.tamu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100902/765d1a76/attachment.html>


More information about the devel mailing list