Merge lp:~jelmer/launchpad/uploadprocessor-invalid-status-test into lp:launchpad
Proposed by
Jelmer Vernooij
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Graham Binns | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 12083 | ||||||||
Proposed branch: | lp:~jelmer/launchpad/uploadprocessor-invalid-status-test | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: |
64 lines (+40/-3) 2 files modified
lib/lp/archiveuploader/tests/test_uploadprocessor.py (+38/-0) lib/lp/archiveuploader/uploadprocessor.py (+2/-3) |
||||||||
To merge this branch: | bzr merge lp:~jelmer/launchpad/uploadprocessor-invalid-status-test | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+43622@code.launchpad.net |
Commit message
[r=gmb][ui=none][bug=690074] Warn about builds with unexpected status in the archive uploader rather than moving them out of the way.
Description of the change
We've had some issues with the archive uploader moving builds out of its queue too soon. Those issues should be resolved now. This branch makes the archive uploader a bit more cautious and makes it warn (so an OOPS will be logged) about uploads with an unknown build status rather than simply moving their directory out of the way, from which it is much harder to recover.
To post a comment you must log in.
Hi Jelmer,
A couple of styling issues but they're both nitpicks. r=me with these changes.
30 + upload_dir = self.queueUploa d("bar_ 1.0-1_binary" , leaf_name)
31 + queue_entry=
Minor styling quibble. Arguments should start on the line after the opening paren.
39 + self.assertTrue (os.path. exists( join(self. incoming_ folder, leaf_name)))
40 + os.path.
Same here (you can indent by two levels if necessary).