Merge lp:~doanac/ubuntu-ci-services-itself/runworker-basic into lp:ubuntu-ci-services-itself
Status: | Merged |
---|---|
Approved by: | Andy Doan |
Approved revision: | 343 |
Merged at revision: | 356 |
Proposed branch: | lp:~doanac/ubuntu-ci-services-itself/runworker-basic |
Merge into: | lp:ubuntu-ci-services-itself |
Diff against target: |
304 lines (+295/-0) 2 files modified
ci-utils/ci_utils/amqp_worker.py (+124/-0) ci-utils/ci_utils/tests/test_amqp_worker.py (+171/-0) |
To merge this branch: | bzr merge lp:~doanac/ubuntu-ci-services-itself/runworker-basic |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+210076@code.launchpad.net |
Commit message
run-worker: create a new common run worker
This combines the functionality and error cases of the 3 run-workers
we have into a common base class. It also includes actual test cases
so that its much easier to work on changes.
Description of the change
Part 1 of a 3 part series:
In preparation for run-worker scripts that can be cancelled, i took a brief detour to create a common base class for run-workers that handles all the dirty details they were dealing with. This also has a nice side-effect of being written in a way that we can easily test the hard parts.
I'm trying to keep this in digestible chunks. The main thing I'm hoping people to see here is the "def _on_message(self, msg)" logic. I think it covers the error cases we know of for the bsbuilder, image-builder, and test-runner. And I *think* I've covered all those corners with tests.
To see what this will look like for the worker scripts, you might want to fast forward to part 3 of my series:
<https:/
PASSED: Continuous integration, rev:342 s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/351/
http://
Executed test runs:
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/351/ rebuild
http://