mirror of
https://github.com/buildbot/buildbot.git
synced 2021-05-20 10:47:20 +03:00
spelling fixes
This commit is contained in:
2
Makefile
2
Makefile
@@ -106,7 +106,7 @@ clean:
|
||||
# helper for release creation
|
||||
release: virtualenv
|
||||
test ! -z "$(VERSION)" # usage: make release VERSION=0.9.2
|
||||
test -d "../bbdocs/.git" # make release shoud be done with bbdocs populated at the same level as buildbot dir
|
||||
test -d "../bbdocs/.git" # make release should be done with bbdocs populated at the same level as buildbot dir
|
||||
GPG_TTY=`tty` git tag -a -sf v$(VERSION) -m "TAG $(VERSION)"
|
||||
make -j4 tarballs
|
||||
./common/smokedist.sh
|
||||
|
||||
@@ -6,7 +6,7 @@ pkg=$1
|
||||
rm -rf MANIFEST dist
|
||||
if [ ${pkg} == "master" ]; then
|
||||
python setup.py sdist
|
||||
# wheels must be build separatly in order to properly omit tests
|
||||
# wheels must be build separately in order to properly omit tests
|
||||
python setup.py bdist_wheel
|
||||
else
|
||||
# retry once to workaround instabilities
|
||||
|
||||
@@ -200,7 +200,7 @@ else
|
||||
changes_made=false
|
||||
for filename in ${py_files[@]}; do
|
||||
LINEWIDTH=$(grep -E "max-line-length" common/flake8rc | sed 's/ //g' | cut -d'=' -f 2)
|
||||
# even if we don't enforce errors, if they can be fixed automatically, thats better..
|
||||
# even if we don't enforce errors, if they can be fixed automatically, that's better..
|
||||
IGNORES=E123,E501,W6
|
||||
# ignore is not None for SQLAlchemy code..
|
||||
if [[ "$filename" =~ "/db/" ]]; then
|
||||
|
||||
@@ -519,7 +519,7 @@ class MasterConfig(util.ComparableMixin, WorkerAPICompatMixin):
|
||||
|
||||
if 'debugPassword' in config_dict:
|
||||
log.msg(
|
||||
"the 'debugPassword' parameter is unused and can be removed from the configuration flie")
|
||||
"the 'debugPassword' parameter is unused and can be removed from the configuration file")
|
||||
|
||||
if 'manhole' in config_dict:
|
||||
# we don't check that this is a manhole instance, since that
|
||||
|
||||
@@ -264,7 +264,7 @@ class BaseLockId(util.ComparableMixin):
|
||||
return LockAccess(self, mode)
|
||||
|
||||
def defaultAccess(self):
|
||||
""" For buildbot 0.7.7 compability: When user doesn't specify an access
|
||||
""" For buildbot 0.7.7 compatibility: When user doesn't specify an access
|
||||
mode, this one is chosen.
|
||||
"""
|
||||
return self.access('counting')
|
||||
|
||||
@@ -329,7 +329,7 @@ class BuildMaster(service.ReconfigurableServiceMixin, service.MasterService,
|
||||
def sendBuildbotNetUsageData(self):
|
||||
if "TRIAL_PYTHONPATH" in os.environ and self.config.buildbotNetUsageData is not None:
|
||||
raise RuntimeError(
|
||||
"Shoud not enable buildbotNetUsageData in trial tests!")
|
||||
"Should not enable buildbotNetUsageData in trial tests!")
|
||||
sendBuildbotNetUsageData(self)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
||||
@@ -63,7 +63,7 @@ class WampMQ(service.ReconfigurableServiceMixin, base.MQBase):
|
||||
|
||||
def startConsuming(self, callback, _filter, persistent_name=None):
|
||||
if persistent_name is not None:
|
||||
log.err('wampmq: persistant queues are not persisted: %s %s' %
|
||||
log.err('wampmq: persistent queues are not persisted: %s %s' %
|
||||
(persistent_name, _filter))
|
||||
|
||||
qr = QueueRef(callback)
|
||||
|
||||
@@ -276,7 +276,7 @@ class BotMaster(service.ReconfigurableServiceMixin, service.AsyncMultiService):
|
||||
def getLockFromLockAccess(self, access):
|
||||
# Convert a lock-access object into an actual Lock instance.
|
||||
if not isinstance(access, locks.LockAccess):
|
||||
# Buildbot 0.7.7 compability: user did not specify access
|
||||
# Buildbot 0.7.7 compatibility: user did not specify access
|
||||
access = access.defaultAccess()
|
||||
lock = self.getLockByID(access.lockid)
|
||||
return lock
|
||||
|
||||
@@ -68,7 +68,7 @@ class BuildRequestCollapser(object):
|
||||
for brid in self.brids:
|
||||
# Get the BuildRequest object
|
||||
br = yield self.master.data.get(('buildrequests', brid))
|
||||
# Retreive the buildername
|
||||
# Retrieve the buildername
|
||||
builderid = br['builderid']
|
||||
bldrdict = yield self.master.data.get(('builders', builderid))
|
||||
# Get the builder object
|
||||
@@ -331,7 +331,7 @@ class BuildRequest(object):
|
||||
for other in others:
|
||||
if codebase in other.sources:
|
||||
all_sources.append(other.sources[codebase])
|
||||
assert all_sources, "each codebase should have atleast one sourcestamp"
|
||||
assert all_sources, "each codebase should have at least one sourcestamp"
|
||||
|
||||
# TODO: select the sourcestamp that best represents the merge,
|
||||
# preferably the latest one. This used to be accomplished by
|
||||
|
||||
@@ -966,7 +966,7 @@ class LoggingBuildStep(BuildStep):
|
||||
self.lazylogfiles = lazylogfiles
|
||||
if log_eval_func and not callable(log_eval_func):
|
||||
config.error(
|
||||
"the 'log_eval_func' paramater must be a callable")
|
||||
"the 'log_eval_func' parameter must be a callable")
|
||||
self.log_eval_func = log_eval_func
|
||||
self.addLogObserver('stdio', OutputProgressObserver("output"))
|
||||
|
||||
|
||||
@@ -513,10 +513,10 @@ class UserOptions(base.SubcommandOptions):
|
||||
["op", None, None,
|
||||
"User management operation: add, remove, update, get"],
|
||||
["bb_username", None, None,
|
||||
"Username to set for a given user. Only availabe on 'update', "
|
||||
"Username to set for a given user. Only available on 'update', "
|
||||
"and bb_password must be given as well."],
|
||||
["bb_password", None, None,
|
||||
"Password to set for a given user. Only availabe on 'update', "
|
||||
"Password to set for a given user. Only available on 'update', "
|
||||
"and bb_username must be given as well."],
|
||||
["ids", None, None,
|
||||
"User's identifiers, used to find users in 'remove' and 'get' "
|
||||
@@ -667,7 +667,7 @@ class CleanupDBOptions(base.BasedirMixin, base.SubcommandOptions):
|
||||
["quiet", "q", "Do not emit the commands being run"],
|
||||
["force", "f",
|
||||
"Force log recompression (useful when changing compression algorithm)"],
|
||||
# when this command has several maintainance jobs, we should make
|
||||
# when this command has several maintenance jobs, we should make
|
||||
# them optional here. For now there is only one.
|
||||
]
|
||||
optParameters = [
|
||||
@@ -680,7 +680,7 @@ class CleanupDBOptions(base.BasedirMixin, base.SubcommandOptions):
|
||||
This command takes an existing buildmaster working directory and
|
||||
do some optimization on the database.
|
||||
|
||||
This command is frontend for various database maintainance jobs:
|
||||
This command is frontend for various database maintenance jobs:
|
||||
|
||||
- optimiselogs: This optimization groups logs into bigger chunks
|
||||
to apply higher level of compression.
|
||||
|
||||
@@ -82,7 +82,7 @@ properties:
|
||||
description: link to a web view of this change
|
||||
type: string
|
||||
sourcestamp:
|
||||
description: the sourcestamp resouce for this change
|
||||
description: the sourcestamp resource for this change
|
||||
type: sourcestamp
|
||||
when_timestamp:
|
||||
description: time of the change
|
||||
|
||||
@@ -135,7 +135,7 @@ class HTTPStep(BuildStep):
|
||||
r = yield self.session.request(**requestkwargs)
|
||||
except requests.exceptions.ConnectionError as e:
|
||||
log.addStderr(
|
||||
'An exception occured while performing the request: %s' % e)
|
||||
'An exception occurred while performing the request: %s' % e)
|
||||
self.finished(FAILURE)
|
||||
return
|
||||
|
||||
|
||||
@@ -266,7 +266,7 @@ class RunSteps(unittest.TestCase):
|
||||
# 'stdout\n\xe2\x98\x83\nstderr\n',
|
||||
u'ostdout\no\N{SNOWMAN}\nestderr\n',
|
||||
u'obs':
|
||||
# if slowDB, the observer wont see anything before the end of this
|
||||
# if slowDB, the observer won't see anything before the end of this
|
||||
# instant step
|
||||
u'Observer saw []\n' if slowDB else
|
||||
# 'Observer saw [\'stdout\\n\', \'\\xe2\\x98\\x83\\n\']',
|
||||
|
||||
@@ -222,7 +222,7 @@ class ChangeSource(interfaces.InterfaceTests, unittest.TestCase):
|
||||
except RuntimeError:
|
||||
pass
|
||||
else:
|
||||
self.fail("The RuntimeError did not propogate")
|
||||
self.fail("The RuntimeError did not propagate")
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test__masterDeactivated(self):
|
||||
|
||||
@@ -256,7 +256,7 @@ class Scheduler(interfaces.InterfaceTests, unittest.TestCase):
|
||||
except RuntimeError:
|
||||
pass
|
||||
else:
|
||||
self.fail("The RuntimeError did not propogate")
|
||||
self.fail("The RuntimeError did not propagate")
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test__masterDeactivated(self):
|
||||
|
||||
@@ -674,7 +674,7 @@ class Tests(interfaces.InterfaceTests):
|
||||
|
||||
|
||||
class TestFakeDB(unittest.TestCase, Tests):
|
||||
# Compatiblity with some checks in the "real" tests.
|
||||
# Compatibility with some checks in the "real" tests.
|
||||
|
||||
class db_engine:
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ class TestStatsServicesBase(unittest.TestCase):
|
||||
class DummyStatsStorageBase(StatsStorageBase):
|
||||
|
||||
"""
|
||||
A dummy class to test intialization of StatsStorageBase.
|
||||
A dummy class to test initialization of StatsStorageBase.
|
||||
"""
|
||||
|
||||
def thd_postStatsValue(self, *args, **kwargs):
|
||||
|
||||
@@ -272,7 +272,7 @@ class AbstractLatentWorker(AbstractWorker):
|
||||
self.stopMissingTimer()
|
||||
|
||||
# if master is stopping, we will never achieve consistent state, as workermanager
|
||||
# wont accept new connection
|
||||
# won't accept new connection
|
||||
if self._substantiation_notifier and self.master.running:
|
||||
log.msg("Weird: Got request to stop before started. Allowing "
|
||||
"worker to start cleanly to avoid inconsistent state")
|
||||
|
||||
@@ -368,7 +368,7 @@ Set the location of buildmaster's PBChangeSource to attach to in form
|
||||
.IR HOST : PORT .
|
||||
.TP
|
||||
.BR \-u | \-\-username
|
||||
Set commiter's username to
|
||||
Set committer's username to
|
||||
.IR USERNAME .
|
||||
.TP
|
||||
.BR \-R | \-\-repository
|
||||
|
||||
@@ -31,7 +31,7 @@ WorkerManager
|
||||
|
||||
.. py:class:: WorkerManager(master)
|
||||
|
||||
Handle Worker registrations for mulitple protocols
|
||||
Handle Worker registrations for multiple protocols
|
||||
|
||||
.. py:method:: register(worker)
|
||||
|
||||
|
||||
@@ -87,10 +87,10 @@ For a filter to match a routing key, it must have the same length, and each elem
|
||||
:param function check_callback: a callback which check if the event has already happened
|
||||
:returns: a Deferred that fires when the event has been received, and contain tuple (routing_key, value) representing the event
|
||||
|
||||
This method is a helper which returns a defer that fire when a certain event has occured.
|
||||
This method is a helper which returns a defer that fire when a certain event has occurred.
|
||||
This is useful for waiting the end of a build or disconnection of a worker.
|
||||
You shall make sure when using this method that this event will happen in the future, and take care of race conditions.
|
||||
For that caller must provide a check_callback which will check of the event has already occured.
|
||||
For that caller must provide a check_callback which will check of the event has already occurred.
|
||||
The whole race-condition-free process is:
|
||||
|
||||
* Register to event
|
||||
|
||||
@@ -19,7 +19,7 @@ Stats Service
|
||||
The instance of the running service is initialized in the master configuration file (see :bb:cfg:`stats-service` for more information).
|
||||
The running service is accessible everywhere in Buildbot via the :class:`BuildMaster`.
|
||||
The service is available at ``self.master.namedServices['<service-name>']``.
|
||||
It takes the following intialization arguments:
|
||||
It takes the following initialization arguments:
|
||||
|
||||
``storage_backends``
|
||||
A list of storage backends.
|
||||
@@ -191,7 +191,7 @@ Capture classes are used for declaring which data needs to captured and sent to
|
||||
.. py:class:: buildbot.statistics.capture.CapturePropertyBase
|
||||
|
||||
This is a base class for both :class:`CaptureProperty` and :class:`CapturePropertyAllBuilders` and abstracts away much of the common functionaltiy between the two classes.
|
||||
Cannot be initialzed directly as it contains an abstract method and raises ``TypeError`` if tried.
|
||||
Cannot be initialized directly as it contains an abstract method and raises ``TypeError`` if tried.
|
||||
It is initialized with the following arguments:
|
||||
|
||||
``property_name``
|
||||
@@ -287,7 +287,7 @@ Capture classes are used for declaring which data needs to captured and sent to
|
||||
``callback``
|
||||
The callback function that is used by subclass of this class to post-process data before formatting it and sending it to the appropriate storage backends.
|
||||
A default callback is provided for this.
|
||||
Each subclass must provide a deafault callback that is used in initialization of this class should the user not provide a callback.
|
||||
Each subclass must provide a default callback that is used in initialization of this class should the user not provide a callback.
|
||||
|
||||
.. py:method:: consume(self, routingKey, msg)
|
||||
|
||||
@@ -469,7 +469,7 @@ Capture classes are used for declaring which data needs to captured and sent to
|
||||
.. py:class:: buildbot.statistics.capture.CaptureDataBase
|
||||
|
||||
This is a base class for both :class:`CaptureData` and :class:`CaptureDataAllBuilders` and abstracts away much of the common functionaltiy between the two classes.
|
||||
Cannot be initialzed directly as it contains an abstract method and raises ``TypeError`` if tried.
|
||||
Cannot be initialized directly as it contains an abstract method and raises ``TypeError`` if tried.
|
||||
It is initialized with the following arguments:
|
||||
|
||||
``data_name``
|
||||
|
||||
@@ -218,7 +218,7 @@ Several small utilities are available at the top-level :mod:`buildbot.util` pack
|
||||
|
||||
.. py:class:: Notifier():
|
||||
|
||||
This is a helper for firing mulitple deferreds with the same result.
|
||||
This is a helper for firing multiple deferreds with the same result.
|
||||
|
||||
.. py:method:: wait()
|
||||
|
||||
@@ -811,7 +811,7 @@ This module makes it easy to manipulate identifiers.
|
||||
|
||||
:param maxLength: maximum length of the identifier
|
||||
:param str: string to coerce to an identifier
|
||||
:returns: identifer of maximum length ``maxLength``
|
||||
:returns: identifier of maximum length ``maxLength``
|
||||
|
||||
Coerce a string (assuming ASCII for bytestrings) into an identifier.
|
||||
This method will replace any invalid characters with ``_`` and truncate to the given length.
|
||||
@@ -820,7 +820,7 @@ This module makes it easy to manipulate identifiers.
|
||||
|
||||
:param maxLength: maximum length of the identifier
|
||||
:param str: identifier to increment
|
||||
:returns: identifer of maximum length ``maxLength``
|
||||
:returns: identifier of maximum length ``maxLength``
|
||||
:raises: ValueError if no suitable identifier can be constructed
|
||||
|
||||
"Increment" an identifier by adding a numeric suffix, while keeping the total length limited.
|
||||
|
||||
@@ -31,7 +31,7 @@ On top of Angular we use nodeJS tools to ease development
|
||||
In production mode, the build system minifies html, css and js, so that the final app is only 3 files to download (+img)
|
||||
* Alternatively webpack build system can be used for the same purposes as gulp (in UI extensions)
|
||||
* `coffeescript <http://coffeescript.org/>`_, a very expressive language, preventing some of the major traps of JS
|
||||
* `pug template langage (aka jade) <https://pugjs.org/>`_, adds syntax sugar and readbility to angular html templates
|
||||
* `pug template language (aka jade) <https://pugjs.org/>`_, adds syntax sugar and readbility to angular html templates
|
||||
* `Bootstrap <https://getbootstrap.com/>`_ is a CSS library providing know good basis for our styles
|
||||
* `Font Awesome <http://fortawesome.github.com/Font-Awesome/>`_ is a coherent and large icon library
|
||||
|
||||
@@ -99,7 +99,7 @@ Typically, a route regitration will look like following example.
|
||||
|
||||
# ng-classify declaration. Declares a config class
|
||||
class State extends Config
|
||||
# Dependancy injection: we inject $stateProvider and glMenuServiceProvider
|
||||
# Dependency injection: we inject $stateProvider and glMenuServiceProvider
|
||||
constructor: ($stateProvider, glMenuServiceProvider) ->
|
||||
|
||||
# Name of the state
|
||||
|
||||
@@ -42,7 +42,7 @@ Each data type contain in a collection is wrapped in a javascript object.
|
||||
This allows to create some custom enhancements to the data model.
|
||||
For example the Change wrapper decodes the author name and email from the "author" field.
|
||||
|
||||
Each wrapper class also has specific access method, which allow to access more data from the REST hierachy.
|
||||
Each wrapper class also has specific access method, which allow to access more data from the REST hierarchy.
|
||||
|
||||
.. blockdiag::
|
||||
|
||||
|
||||
@@ -2162,7 +2162,7 @@ For :bb:step:`FileUpload`, the ``urlText=`` argument allows you to specify the u
|
||||
|
||||
.. bb:step:: DirectoryUpload
|
||||
|
||||
Transfering Directories
|
||||
Transferring Directories
|
||||
+++++++++++++++++++++++
|
||||
|
||||
.. py:class:: buildbot.steps.transfer.DirectoryUpload
|
||||
@@ -2249,7 +2249,7 @@ The `uploadDone` method is called once for each uploaded file and can be used to
|
||||
.. bb:step:: JSONStringDownload
|
||||
.. bb:step:: JSONPropertiesDownload
|
||||
|
||||
Transfering Strings
|
||||
Transferring Strings
|
||||
-------------------
|
||||
|
||||
.. py:class:: buildbot.steps.transfer.StringDownload
|
||||
|
||||
@@ -91,7 +91,7 @@ Buildbot uses a message-queueing system to handle communication within the maste
|
||||
Messages are used to indicate events within the master, and components that are interested in those events arrange to receive them.
|
||||
|
||||
The message queueing implementation is configured as a dictionary in the ``mq`` option.
|
||||
The ``type`` key describes the type of MQ implemetation to be used.
|
||||
The ``type`` key describes the type of MQ implementation to be used.
|
||||
Note that the implementation type cannot be changed in a reconfig.
|
||||
|
||||
The available implemenetation types are described in the following sections.
|
||||
|
||||
@@ -1253,7 +1253,7 @@ PatchParameter
|
||||
##############
|
||||
|
||||
This parameter allows the user to specify a patch to be applied at the source step.
|
||||
The patch is stored withing the sourcestamp, and associated to a codebase.
|
||||
The patch is stored within the sourcestamp, and associated to a codebase.
|
||||
That is why :bb:sched:`PatchParameter` must be set inside a :bb:sched:`CodebaseParameter`.
|
||||
|
||||
:bb:sched:`PatchParameter` is actually a :bb:sched:`NestedParameter` composed of following fields:
|
||||
|
||||
@@ -76,7 +76,7 @@ Image Creation
|
||||
|
||||
Our build master will need the name of an image to perform its builds.
|
||||
Each time a new build will be requested, the same base image will be used again and again, actually discarding the result of the previous build.
|
||||
If you need some persistant storage between builds, you can `use Volumes <setting up volumes>`_.
|
||||
If you need some persistent storage between builds, you can `use Volumes <setting up volumes>`_.
|
||||
|
||||
Each Docker image has a single purpose.
|
||||
Our worker image will be running a buildbot worker.
|
||||
@@ -204,7 +204,7 @@ In addition to the arguments available for any :ref:`Latent-Workers`, :class:`Do
|
||||
|
||||
``version``
|
||||
(optional, default to the highest version known by docker-py)
|
||||
This will indicates wich API version must be used to communicate with Docker.
|
||||
This will indicates which API version must be used to communicate with Docker.
|
||||
|
||||
``tls``
|
||||
(optional)
|
||||
|
||||
@@ -133,7 +133,7 @@ Note that if you want to have a :class:`MailNotifier` for worker-missing emails
|
||||
Local Workers
|
||||
~~~~~~~~~~~~~
|
||||
For smaller setups, you may want to just run the workers on the same machine as the master.
|
||||
To simplify the maintainance, you may even want to run them in the same process.
|
||||
To simplify the maintenance, you may even want to run them in the same process.
|
||||
|
||||
This is what LocalWorker is for.
|
||||
Instead of configuring a ``worker.Worker``, you have to configure a ``worker.LocalWorker``.
|
||||
|
||||
@@ -493,7 +493,7 @@ This extra information is provided by, appropriately enough, user info providers
|
||||
These can be passed to :py:class:`~buildbot.www.auth.RemoteUserAuth` and as an element of ``avatar_methods``.
|
||||
|
||||
This can also be passed to oauth2 authentication plugins.
|
||||
In this case the username provided by oauth2 will be used, and all other informations will be taken from ldap (Full Name, email, and groups):
|
||||
In this case the username provided by oauth2 will be used, and all other information will be taken from ldap (Full Name, email, and groups):
|
||||
|
||||
Currently only one provider is available:
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ cleanupdb
|
||||
|
||||
buildbot cleanupdb {BASEDIR|CONFIG_FILE} [-q]
|
||||
|
||||
This command is frontend for various database maintainance jobs:
|
||||
This command is frontend for various database maintenance jobs:
|
||||
|
||||
- optimiselogs: This optimization groups logs into bigger chunks
|
||||
to apply higher level of compression.
|
||||
@@ -358,7 +358,7 @@ Sending properties
|
||||
##################
|
||||
|
||||
You can set properties to send with your change using either the option `--property=key=value` option, which sets a single property, or the option `--properties=key1=value1,key2=value2...` option, which sets multiple comma-separated properties.
|
||||
Either of these can be sepcified multiple times.
|
||||
Either of these can be specified multiple times.
|
||||
Note that the option `--properties` option uses commas to split on properties, so if your property value itself contains a comma, you'll need to use the option `--property` option to set it.
|
||||
|
||||
.. _try--diff:
|
||||
|
||||
@@ -58,7 +58,7 @@ Buildbot maintains a list of plugins at http://trac.buildbot.net/wiki/Plugins.
|
||||
Developing Plugins
|
||||
==================
|
||||
|
||||
:ref:`Plugin-Module` contains all necesary information for you to develop new plugins.
|
||||
:ref:`Plugin-Module` contains all necessary information for you to develop new plugins.
|
||||
Please edit http://trac.buildbot.net/wiki/Plugins to add a link to your plugin!
|
||||
|
||||
Plugins of note
|
||||
|
||||
@@ -164,7 +164,7 @@ See
|
||||
for more details.
|
||||
.TP
|
||||
.BR \-\-usepty
|
||||
Set wether child processes should be run in a pty (0 means do not run in a
|
||||
Set whether child processes should be run in a pty (0 means do not run in a
|
||||
pty).
|
||||
Default value is 0.
|
||||
.TP
|
||||
|
||||
@@ -24,7 +24,7 @@ config =
|
||||
build: 'buildbot_www/static'
|
||||
|
||||
### ###########################################################################################
|
||||
# Bower dependancies configuration
|
||||
# Bower dependencies configuration
|
||||
### ###########################################################################################
|
||||
bower:
|
||||
# JavaScript libraries (order matters)
|
||||
|
||||
@@ -4,7 +4,7 @@ describe 'buildrequest controller', ->
|
||||
dataService = $scope = $httpBackend = $rootScope = null
|
||||
$timeout = createController = $stateParams = null
|
||||
goneto = null
|
||||
# overrride "$state"
|
||||
# override "$state"
|
||||
beforeEach module(($provide) ->
|
||||
$provide.value "$state", go: (args...) -> goneto = args
|
||||
$provide.value "$stateParams", buildrequest: 1
|
||||
|
||||
@@ -4,7 +4,7 @@ describe 'buildrequest summary controller', ->
|
||||
$scope = $rootScope = $q = $timeout = null
|
||||
goneto = createController = null
|
||||
dataService = null
|
||||
# overrride "$state"
|
||||
# override "$state"
|
||||
beforeEach module(($provide) ->
|
||||
$provide.value "$state",
|
||||
go: (args...) -> goneto = args
|
||||
|
||||
@@ -64,7 +64,7 @@ angular.module('common').directive 'filefield', ->
|
||||
# which basically uses label(for="<id>") to capture the click event and the ugly input(type="file") is just hidden
|
||||
templateUrl: "views/filefield.html"
|
||||
controller: [ "$scope", ($scope) ->
|
||||
# If user selects a big file, then the UI will be completly blocked
|
||||
# If user selects a big file, then the UI will be completely blocked
|
||||
# while browser tries to display it in the textarea
|
||||
# so to avoid that we go through a safe value, and play the double binding game
|
||||
$scope.$watch "field.value", (value) ->
|
||||
|
||||
@@ -9,7 +9,7 @@ class dataGrouperService extends Factory('common')
|
||||
# @param joinid: the id that should be present in both collection items,
|
||||
# and meant to match them
|
||||
# @param attribute: the collection1 item's attribute where to store collection2 groups
|
||||
# @param joinlist: optionnal attribute of collection2 items if the collection2
|
||||
# @param joinlist: optional attribute of collection2 items if the collection2
|
||||
# is pointing to several item of collection1
|
||||
temp_dict = {}
|
||||
onNew = collection1.onNew
|
||||
|
||||
@@ -27,7 +27,7 @@ config =
|
||||
build: 'buildbot_codeparameter/static'
|
||||
|
||||
### ###########################################################################################
|
||||
# Bower dependancies configuration
|
||||
# Bower dependencies configuration
|
||||
### ###########################################################################################
|
||||
bower:
|
||||
deps:
|
||||
|
||||
@@ -139,7 +139,7 @@ class Console extends Controller
|
||||
builderids_with_builds += "." + builder.builderid
|
||||
|
||||
if builderids_with_builds == @last_builderids_with_builds
|
||||
# dont recalculate if it hasn't changed!
|
||||
# don't recalculate if it hasn't changed!
|
||||
return
|
||||
# we call recursive function, which finds non-overlapping groups
|
||||
tag_line = @_sortBuildersByTags(builders_with_builds)
|
||||
@@ -208,7 +208,7 @@ class Console extends Controller
|
||||
builders_by_tags[tag].push(builder)
|
||||
tags = []
|
||||
for tag, builders of builders_by_tags
|
||||
# we dont want the tags that are on all the builders
|
||||
# we don't want the tags that are on all the builders
|
||||
if builders.length < all_builders.length
|
||||
tags.push(tag: tag, builders: builders)
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ config =
|
||||
sourcemaps: true
|
||||
output_scripts: "buildbot-data.js"
|
||||
### ###########################################################################################
|
||||
# Bower dependancies configuration
|
||||
# Bower dependencies configuration
|
||||
### ###########################################################################################
|
||||
bower:
|
||||
testdeps:
|
||||
|
||||
@@ -35,7 +35,7 @@ describe 'menuService', ->
|
||||
expect(menuService.getItems()[1]).toBe(item2)
|
||||
expect(menuService.getItems()[1].order).toBe(99)
|
||||
|
||||
# test current propery
|
||||
# test current property
|
||||
_menuServiceProvider.current = 'testitem1'
|
||||
expect(menuService.getCurrent()).toBe('testitem1')
|
||||
_menuServiceProvider.current = 'testitem2'
|
||||
|
||||
@@ -21,7 +21,7 @@ config =
|
||||
build: 'buildbot_nestedexample/static'
|
||||
|
||||
### ###########################################################################################
|
||||
# Bower dependancies configuration
|
||||
# Bower dependencies configuration
|
||||
### ###########################################################################################
|
||||
bower:
|
||||
testdeps:
|
||||
|
||||
@@ -59,7 +59,7 @@ describe 'Scale service', ->
|
||||
# Out of domain
|
||||
expect(idToX(8)).toBeUndefined()
|
||||
|
||||
it 'should return a build lenght to height scale', ->
|
||||
it 'should return a build length to height scale', ->
|
||||
# gap: 5, range: 100
|
||||
idToY = scale.getY(groups, 5, 100)
|
||||
# Check gap size
|
||||
|
||||
Reference in New Issue
Block a user