Merge lp:~abentley/launchpad/celery-job-layer into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Aaron Bentley on 2012-04-13 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15098 |
| Proposed branch: | lp:~abentley/launchpad/celery-job-layer |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~abentley/launchpad/celery-everywhere-3 |
| Diff against target: |
557 lines (+135/-116) 7 files modified
lib/lp/code/model/tests/test_branch.py (+48/-54) lib/lp/code/model/tests/test_branchjob.py (+12/-16) lib/lp/code/model/tests/test_branchmergeproposaljobs.py (+9/-22) lib/lp/codehosting/scanner/tests/test_email.py (+12/-17) lib/lp/services/job/model/job.py (+8/-3) lib/lp/services/job/tests/__init__.py (+9/-4) lib/lp/testing/layers.py (+37/-0) |
| To merge this branch: | bzr merge lp:~abentley/launchpad/celery-job-layer |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-04-12 | Approve on 2012-04-12 | |
|
Review via email:
|
|||
Commit Message
Run celeryd via a layer in tests.
Description of the Change
= Summary =
Run celeryd via a layer in tests.
== Proposed fix ==
None
== Pre-implementation notes ==
Robert confirmed that Layers are still our preferred means of reducing redundant startup/teardown costs.
== Implementation details ==
Implement CeleryJobLayer and CeleryBranchWri
Update all existing tests to use these layers
Extract block_on_job from various tests that retrieve the job's response and then wait.
lp.services.
== Tests ==
bin/test --layer=
bin/test --layer=
== Demo and Q/A ==
None.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/

Aaron--
This looks like a really good cleanup. I think the tests are much cleaner this way. Thanks.