Merge lp:~jelmer/launchpad/syncpackagejob-1 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2010-11-05 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11870 |
| Proposed branch: | lp:~jelmer/launchpad/syncpackagejob-1 |
| Merge into: | lp:launchpad |
| Diff against target: |
325 lines (+231/-12) 5 files modified
lib/lp/soyuz/configure.zcml (+15/-3) lib/lp/soyuz/interfaces/distributionjob.py (+68/-5) lib/lp/soyuz/model/syncpackagejob.py (+101/-0) lib/lp/soyuz/tests/test_initialisedistroseriesjob.py (+0/-4) lib/lp/soyuz/tests/test_syncpackagejob.py (+47/-0) |
| To merge this branch: | bzr merge lp:~jelmer/launchpad/syncpackagejob-1 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | 2010-11-05 | Approve on 2010-11-05 |
|
Review via email:
|
|||
Commit Message
Add a job that can sync packages.
Description of the Change
This branch adds the SyncPackageJob class for jobs that can copy packages between distributions.
Pre-Implementation Call: with Julian
Tests: ./bin/test lp.soyuz.
| Jelmer Vernooij (jelmer) wrote : | # |
| Abel Deuring (adeuring) wrote : | # |
(12:48:00) adeuring: jelmer: your TODO comment in getctiveJobs() says that you don't expect a larger result set for the find() call. What about logging a warning if the result set is greater than a reasonable threshold?
(12:48:52) jelmer: adeuring: That makes sense.
And a nitpick:
+ # TODO: JRV 20101104. This iterates manually over all active
+ # SyncPackageJobs. This should usually be a short enough list,
+ # but if it really becomes and issue target_archive should
s/and/an/

QA doesn't really apply here yet, as none of this gets used (yet).
I've left implementing run for my next branch, to keep the size of the branch manageable. None of this code gets used anywhere yet (other than exercised by the tests).