Skip to content

Commit

Permalink
rename bbslave to buildslave, add miscellaneous text files
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Jun 5, 2010
1 parent 65ec9cf commit 675c391
Show file tree
Hide file tree
Showing 37 changed files with 416 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -13,7 +13,7 @@ _trial_temp*
dist
build
.build
buildbot.egg-info
*.egg-info
docs/buildbot.html
docs/buildbot.info
docs/buildbot.info-1
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions MANIFEST.in → master/MANIFEST.in
@@ -1,5 +1,4 @@

include MANIFEST.in README README.w32 NEWS CREDITS COPYING UPGRADING
include MANIFEST.in README NEWS CREDITS COPYING UPGRADING

include docs/examples/*.cfg
include docs/*.texinfo docs/buildbot.info* docs/buildbot.html
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
339 changes: 339 additions & 0 deletions slave/COPYING

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions slave/MANIFEST.in
@@ -0,0 +1 @@
include MANIFEST.in README NEWS COPYING UPGRADING
6 changes: 6 additions & 0 deletions slave/NEWS
@@ -0,0 +1,6 @@
Major User visible changes in Buildslave. -*- outline -*-
(see ChangeLog for a detailed list of changes)

* NEXT RELEASE

** First release of buildslave as a separate package
33 changes: 33 additions & 0 deletions slave/README
@@ -0,0 +1,33 @@

BuildBot: build/test automation
http://buildbot.net
Brian Warner <warner-buildbot @ lothar . com>


Abstract:

The BuildBot is a system to automate the compile/test cycle required by most
software projects to validate code changes. By automatically rebuilding and
testing the tree each time something has changed, build problems are
pinpointed quickly, before other developers are inconvenienced by the
failure. The guilty developer can be identified and harassed without human
intervention. By running the builds on a variety of platforms, developers
who do not have the facilities to test their changes everywhere before
checkin will at least know shortly afterwards whether they have broken the
build or not. Warning counts, lint checks, image size, compile time, and
other build parameters can be tracked over time, are more visible, and
are therefore easier to improve.

The overall goal is to reduce tree breakage and provide a platform to run
tests or code-quality checks that are too annoying or pedantic for any human
to waste their time with. Developers get immediate (and potentially public)
feedback about their changes, encouraging them to be more careful about
testing before checkin.


Buildslave:

This package contains only the buildslave implementation. The buildslave
package contains the buildmaster.

See http://buildbot.net for more information.
2 changes: 2 additions & 0 deletions slave/UPGRADING
@@ -0,0 +1,2 @@
For information on ugprading a buildslave, see the section "Upgrading an
Existing Buildslave" in the buildbot documentation.
4 changes: 4 additions & 0 deletions slave/bin/buildbot
@@ -0,0 +1,4 @@
#!/usr/bin/env python

from buildbot.scripts import runner
runner.run()
File renamed without changes.
14 changes: 7 additions & 7 deletions slave/bbslave/bot.py → slave/buildslave/bot.py
Expand Up @@ -7,14 +7,14 @@
from twisted.application import service, internet
from twisted.cred import credentials

import bbslave
from bbslave.util import now
from bbslave.pbutil import ReconnectingPBClientFactory
from bbslave.commands import registry
import buildslave
from buildslave.util import now
from buildslave.pbutil import ReconnectingPBClientFactory
from buildslave.commands import registry

# make sure the standard commands get registered. This import is performed
# for its side-effects.
from bbslave.commands import base, transfer, vcs
from buildslave.commands import base, transfer, vcs

class NoCommandRunning(pb.Error):
pass
Expand Down Expand Up @@ -341,7 +341,7 @@ def remote_getSlaveInfo(self):

def remote_getVersion(self):
"""Send our version back to the Master"""
return bbslave.version
return buildslave.version



Expand Down Expand Up @@ -478,7 +478,7 @@ class BuildSlave(service.MultiService):
def __init__(self, buildmaster_host, port, name, passwd, basedir,
keepalive, usePTY, keepaliveTimeout=30, umask=None,
maxdelay=300, debugOpts={}, unicode_encoding=None):
log.msg("Creating BuildSlave -- version: %s" % bbslave.version)
log.msg("Creating BuildSlave -- version: %s" % buildslave.version)
service.MultiService.__init__(self)
self.debugOpts = debugOpts.copy()
bot = self.botClass(basedir, usePTY, unicode_encoding=unicode_encoding)
Expand Down
File renamed without changes.
Expand Up @@ -8,9 +8,9 @@
from twisted.internet import reactor, defer, task
from twisted.python import log, runtime

from bbslave.interfaces import ISlaveCommand
from bbslave.commands.registry import registerSlaveCommand
from bbslave import util
from buildslave.interfaces import ISlaveCommand
from buildslave.commands.registry import registerSlaveCommand
from buildslave import util

# this used to be a CVS $-style "Revision" auto-updated keyword, but since I
# moved to Darcs as the primary repository, this is updated manually each
Expand Down
Expand Up @@ -7,9 +7,9 @@ def registerSlaveCommand(name, factory, version):
@type name: string
@param name: name under which the slave command will be registered; used
for L{bbslave.bot.SlaveBuilder.remote_startCommand}
for L{buildslave.bot.SlaveBuilder.remote_startCommand}
@type factory: L{bbslave.commands.Command}
@type factory: L{buildslave.commands.Command}
@type version: string
@param version: version string of the factory code
"""
Expand Down
Expand Up @@ -3,8 +3,8 @@
from twisted.python import log
from twisted.internet import defer

from bbslave.commands.base import Command, command_version
from bbslave.commands.registry import registerSlaveCommand
from buildslave.commands.base import Command, command_version
from buildslave.commands.registry import registerSlaveCommand

class SlaveFileUploadCommand(Command):
"""
Expand Down
File renamed without changes.
Expand Up @@ -5,10 +5,10 @@
from twisted.python import log, failure, runtime
from twisted.internet import defer

from bbslave.commands.base import Command, ShellCommand, AbandonChain, command_version, Obfuscated
from bbslave.commands.registry import registerSlaveCommand
from bbslave.commands.utils import getCommand, rmdirRecursive
from bbslave.util import remove_userpassword
from buildslave.commands.base import Command, ShellCommand, AbandonChain, command_version, Obfuscated
from buildslave.commands.registry import registerSlaveCommand
from buildslave.commands.utils import getCommand, rmdirRecursive
from buildslave.util import remove_userpassword

class SourceBase(Command):
"""Abstract base class for Version Control System operations (checkout
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -3,9 +3,9 @@
from twisted.trial import unittest
from twisted.internet import task, defer

from bbslave.commands.base import ShellCommand, Obfuscated, \
from buildslave.commands.base import ShellCommand, Obfuscated, \
DummyCommand, WaitCommand, waitCommandRegistry, AbandonChain
from bbslave.commands.utils import getCommand
from buildslave.commands.utils import getCommand

class FakeSlaveBuilder:
debug = False
Expand Down
Expand Up @@ -4,7 +4,7 @@
from twisted.trial import unittest
import twisted.python.procutils

from bbslave.commands import utils
from buildslave.commands import utils

class GetCommand(unittest.TestCase):

Expand Down
File renamed without changes.
14 changes: 8 additions & 6 deletions slave/setup.py
Expand Up @@ -14,7 +14,7 @@
import os
from distutils.core import setup

from bbslave import version
from buildslave import version

# TODO: slave script
scripts = ["bin/buildbot"]
Expand All @@ -23,7 +23,7 @@
scripts.append("contrib/windows/buildbot_service.py")

setup_args = {
'name': "bbslave",
'name': "buildslave",
'version': version,
'description': "BuildBot Slave Daemon",
'long_description': "See the 'buildbot' project for details",
Expand All @@ -42,10 +42,12 @@
'Topic :: Software Development :: Testing',
],

'packages': ["bbslave",
"bbslave.commands",
# TODO: tests
],
'packages': [
"buildslave",
"buildslave.commands",
"buildslave.test",
"buildslave.test.unit",
],
'scripts': scripts,
}

Expand Down

0 comments on commit 675c391

Please sign in to comment.