Merge lp:~cjwatson/launchpad/redirect-release-uploads into lp:launchpad
Status: | Merged |
---|---|
Approved by: | William Grant |
Approved revision: | no longer in the source branch. |
Merged at revision: | 16193 |
Proposed branch: | lp:~cjwatson/launchpad/redirect-release-uploads |
Merge into: | lp:launchpad |
Diff against target: |
535 lines (+205/-22) 19 files modified
lib/lp/archiveuploader/nascentupload.py (+3/-0) lib/lp/archiveuploader/tests/nascentupload-announcements.txt (+10/-0) lib/lp/archiveuploader/tests/test_sync_notification.py (+1/-0) lib/lp/archiveuploader/tests/test_uploadpolicy.py (+29/-0) lib/lp/archiveuploader/tests/test_uploadprocessor.py (+33/-1) lib/lp/archiveuploader/uploadpolicy.py (+16/-0) lib/lp/archiveuploader/uploadprocessor.py (+1/-1) lib/lp/registry/configure.zcml (+1/-0) lib/lp/registry/interfaces/distribution.py (+6/-1) lib/lp/registry/model/distribution.py (+1/-0) lib/lp/soyuz/doc/archive.txt (+1/-1) lib/lp/soyuz/doc/soyuz-set-of-uploads.txt (+8/-2) lib/lp/soyuz/emailtemplates/upload-accepted.txt (+2/-0) lib/lp/soyuz/interfaces/archive.py (+17/-1) lib/lp/soyuz/model/archive.py (+14/-8) lib/lp/soyuz/model/packagecopyjob.py (+6/-4) lib/lp/soyuz/scripts/packagecopier.py (+2/-1) lib/lp/soyuz/tests/test_archive.py (+24/-0) lib/lp/soyuz/tests/test_packagecopyjob.py (+30/-2) |
To merge this branch: | bzr merge lp:~cjwatson/launchpad/redirect-release-uploads |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+131155@code.launchpad.net |
Commit message
If Distribution.
Description of the change
== Summary ==
''Summarise the problem that you're solving.''
Bug 1068071: To make raring more continuously usable, UE wants to land all uploads in raring-proposed and promote them automatically to raring following tests somewhat akin to those used by Debian's testing suite, in what amounts to a continuous integration system. We'll operate the automation, but its usefulness will be significantly enhanced by redirecting uploads automatically from raring to raring-proposed.
== Proposed fix ==
A new Distribution.
* Automatically rewrite source uploads from RELEASE to PROPOSED in archiveuploader, adding a note to acceptance mails that this has happened.
* Forbid copies into the RELEASE pocket, except for queue admins (if nothing else, such copies are used by the automation itself).
== Pre-implementation notes ==
Extensive discussions on #ubuntu-release over the last week or so. I was going to automatically rewrite some copies as well, but William convinced me that this was excessively magical and complicated the API in ways that would be troublesome in future. We'll probably end up SRUing syncpackage instead.
== Implementation details ==
The insecure upload policy seemed a sensible place to do redirects, but it does have the slight problem that setDistroSeries
This causes acceptance mails to have some extra bits (exemplified by the changes to nascentupload-
The copy restriction seemed most naturally done in checkUploadToPo
== LOC Rationale ==
+166. This seems cheap at the price for what should be a major improvement in the ongoing stability of Ubuntu. I have about 5600 lines of credit to help absorb this, and still have some more refactoring work to come.
== Tests ==
Probably wants the whole test suite, but in particular:
bin/test -vvct archiveuploader -t soyuz
== Demo and Q/A ==
Flip the switch on dogfood, upload source to the RELEASE pocket, whatever its current development series is, check that it goes to PROPOSED, check that a non-queue-admin can't copy it into RELEASE, and check that a queue admin can.
== Lint ==
Pre-existing / false positives:
./lib/lp/
186: want exceeds 78 characters.
187: want exceeds 78 characters.
660: want exceeds 78 characters.
727: want exceeds 78 characters.
729: want exceeds 78 characters.
780: want exceeds 78 characters.
782: want exceeds 78 characters.
./lib/lp/
14: Line has trailing whitespace.
./lib/lp/
50: E302 expected 2 blank lines, found 1
Thanks for the fixes.