summaryrefslogtreecommitdiff
path: root/without-test-modules
Commit message (Collapse)AuthorAgeFilesLines
* Refactor SystemBuilder and add helper classLars Wirzenius2012-03-021-1/+0
| | | | | | | | The helper class, Factory, has unit tests, which is why it's currently separate. It may later get integrated with BlobBuilder, or the other way around. Classes that don't have unit tests are marked out of coverage.
* Add poor man's unit tests for controller and workers.Jannis Pohlmann2012-01-251-2/+0
|
* Add controller, worker classes and a new "build-distributed" command.Jannis Pohlmann2012-01-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces four new classes: BuildController: * takes an app instance and a tempdir * allows to add BuildWorker objects * provides a build() method that takes a set of blobs and a build order that is then built by assigning work to the build workers as needed * the build() method takes care of polling the workers for their state, moving them between busy and idle states reliably, collect and print their output in a non-confusing order, and makes sure to wait for all workers to finish before processing the next group in the build order. * at this point, when waiting for one or more workers to become idle to assign them another blob to build, the controller always picks the worker that has been idling for the longest period of time. this can be changed later. BuildWorker: * base class for all worker classes * takes a name and an app instance * has a idle_since datetime property * provides a build() method that takes a Blob object and builds it in whatever way the subclasses implement it * provides a check_complete(timeout) method that checks whether the worker has finished building the blob yet or not LocalBuildWorker: * worker class for local builds that don't go through SSH * it uses morphlib.execute.Execute to run morph in a child process in build() * at the moment, this class executes "./morph" instead of "morph" as it assumes the user to run morph from its source tree. obviously, this will have to be fixed later. RemoteBuildWorker: * doesn't implement anything yet, will be used for distributing work to other machines running morph via SSH Notes: * At the moment, there is a degree of undesired redundancy when building a stratum in a worker, as this will cause the worker to rebuild all its dependencies. This will have to be fixed as it is avoidable and wastes a lot of time and processing power.
* Add builddependencygraph.py to without-test-modules.Jannis Pohlmann2012-01-191-0/+1
|
* add tester to without-test-modulesLars Wirzenius2011-12-091-0/+1
|
* Start a git module for abstracting away git operations.Lars Wirzenius2011-10-171-0/+1
|
* Initial import.Lars Wirzenius2011-09-291-0/+2