summaryrefslogtreecommitdiff
path: root/distbuild/initiator_connection.py
Commit message (Collapse)AuthorAgeFilesLines
* distbuild: Add distbuild status commandLauren Perry2015-04-291-8/+26
| | | | | | | | | Adds a command to get the status of all recently ran distbuilds for a given server (e.g. Running, Finished, Failed, Cancelled), so as to tell if a build running via distbuild-start has finished or otherwise exited without going through the server's log files Change-Id: I5ce9fe54ae7b1bd8fe3e0d629f615042be8827ed
* distbuild: Add distbuild start and cancel functionalityLauren Perry2015-04-291-0/+48
| | | | | | | | | | | Add command for distbuild-start to build_plugin in morphlib, and create a boolean parameter to inform the initiator whether to disconnect the controller and leave the build running remotely. Add distbuild-cancel command to parse currently-running distbuild build-request IDs and cancel the one matching the given argument Change-Id: I458a5767bb768ceb2b4d8876adf1c86075d452bd
* distbuild: Add protocol version checking for list-jobs commandLauren Perry2015-04-291-12/+16
| | | | | | | | | | | | | | | Currently, the distbuild-list-jobs command will fail if morph is outdated (i.e. protocol version for client and distbuild network don't match); a protocol_version field has been added to the list-jobs request message to fix this. Moved version check outside build-request message to reduce duplication in new functions. Generalised the list-request output to reduce duplication for any further additions that may require a message output. Change-Id: I28e733cbfe8c89e8c11427df5d40ab275abd313c
* distbuild: Add distbuild-list-jobs functionLauren Perry2015-04-171-20/+44
| | | | | | | | | | Add InitiatorListJobs class and list-jobs message template, add distbuild-list-jobs to morph commandlist, send running job information back to initiator, split out handling of build request and list-jobs messages to separate functions and change generating a random integer to UUID for message identification Change-Id: Id02604f2c1201dbc10f6bbd7f501b8ce1ce0deae
* Use the modern way of the GPL copyright header: URL instead real addressJavier Jardón2015-03-161-2/+1
| | | | Change-Id: I992dc0c1d40f563ade56a833162d409b02be90a0
* Fix how the morph protocol version error message is displayedLauren Perry2015-03-111-2/+2
|
* Merge branch 'sam/distbuild-build-logs'Sam Thursfield2015-03-111-23/+1
|\ | | | | | | | | Reviewed-By: Adam Coldrick <adam.coldrick@codethink.co.uk> Reviewed-By: Richard Maw <richard.maw@codethink.co.uk>
| * distbuild: Remove the build-steps messageSam Thursfield2015-02-181-22/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This message was hundreds of kilobytes in size, as it contained a recursive list of dependencies for each artifact in the build graph. It was used in the initiator only to print this message: Build steps in total: 592 This message is now gone. The 'Need to build %d artifacts' build-progress message now indicates the total build steps instead: Need to build 300 artifacts, of 592 total This is a compatible change to the distbuild protocol: old initiators will continue to work as normal with new controllers that don't send the build-steps message.
| * Update copyright yearsSam Thursfield2015-02-181-1/+1
| |
* | Add protocol versioning for distbuild systemsLauren Perry2015-02-251-0/+12
| |
* | Update copyright yearsLauren Perry2015-02-091-1/+1
| |
* | Fix distbuild controller crashing on some invalid inputsLauren Perry2015-02-091-9/+13
|/
* Fix issues with distbuild caused by moving to building per-sourceRichard Maw2014-10-081-1/+1
|
* Fix copyright years of distbuild code.Sam Thursfield2014-09-111-1/+1
|
* Fix all distbuild code to be GPLv2 licensed.Sam Thursfield2014-09-101-1/+1
|
* InitiatorConnection: Handle _step_already_startedRichard Ipsum2014-04-231-1/+21
|
* Fix lines longer than 80 characters (my fault)Sam Thursfield2014-04-141-1/+2
|
* distbuild: Make some transitions more specificSam Thursfield2014-04-141-1/+1
| | | | | | There is always one BuildController object per InitiatorConnection. By coupling the objects slightly closer we can simplify some transitions in BuildController.
* distbuild: Clarify InitiatorConnection docstringSam Thursfield2014-04-141-3/+6
|
* distbuild: Label state machine transition tablesSam Thursfield2014-04-141-0/+1
| | | | Makes it easier to see what they mean at a glance.
* distbuild: Log IPs of initiators and workers in more placesSam Thursfield2014-04-101-26/+23
| | | | This makes tracking multiple builds through one log file a bit easier.
* distbuild: Improve logging of connections and objectsSam Thursfield2014-04-101-0/+4
| | | | | | | | | | New DistbuildSocket class that wraps socket.socket(), providing a descriptive repr() handler showing where the socket is connected, and providing a couple of helper methods for fetching local and remote endpoint names. This commit also adds a descriptive repr() handler to a few other objects (mostly giving socket connection details).
* Add the distbuild libsRichard Ipsum2014-03-211-0/+216