Merge lp:~michael.nelson/launchpad/ppa-privatisation-test-refactor6 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Gary Poster on 2010-02-26 | ||||
| Approved revision: | not available | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~michael.nelson/launchpad/ppa-privatisation-test-refactor6 | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~michael.nelson/launchpad/ppa-privatisation-test-refactor5 | ||||
| Diff against target: |
750 lines (+158/-167) 6 files modified
lib/lp/soyuz/stories/soyuz/xx-private-builds.txt (+47/-77) lib/lp/soyuz/stories/soyuz/xx-queue-pages-delayed-copies.txt (+9/-9) lib/lp/soyuz/stories/webservice/xx-archive.txt (+28/-28) lib/lp/soyuz/stories/webservice/xx-archivedependency.txt (+18/-24) lib/lp/soyuz/stories/webservice/xx-binary-package-publishing.txt (+21/-10) lib/lp/soyuz/stories/webservice/xx-source-package-publishing.txt (+35/-19) |
||||
| To merge this branch: | bzr merge lp:~michael.nelson/launchpad/ppa-privatisation-test-refactor6 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gary Poster (community) | 2010-02-26 | Approve on 2010-02-26 | |
|
Review via email:
|
|||
Commit Message
Ensures that the privacy of a PPA cannot be altered once it has published packages (and updates a gazillion tests that depended on being able to do just that)
| Michael Nelson (michael.nelson) wrote : | # |
| Gary Poster (gary) wrote : | # |
Hi Michael. These look like nice fixes.
I asked some questions on IRC to which you replied to my satisfaction. I'll include the log beneath for reference.
I did ask you to consider whether the duplicated code for private setup in xx-source-
Thank you!
Gary
Edited IRC log:
gary_poster: noodles775: why did you remove test_login.py?
noodles775: gary_poster: I didn't... a local diff between this pipe and the prev shows everything but the test_login.py.
noodles775: I was just trying to figure out what was going on with the MP.
gary_poster: noodles775: ok, I'll just clarify in the review that merging that removal is not ok, and leave you to handle the mechanism
noodles775: gary_poster: I'll merge RF into the initial pipe (there are 7 in total) and push it through and see if it's still there when the diff regenerates on the MP.
gary_poster: noodles775: ack, ok
salgado: gary_poster, noodles775, in my openid branch I added a test_new_login.py file and later removed test_login.py. then on a subsequent branch I renamed test_new_login.py to test_login.py. that, together with pipes, might have confused bzr?
noodles775: salgado: thanks for the info - I thought it may have been related to your branch I reviewed yesterday. If that's the case, pumping a fresh RF through my pipes should resolve the issue. (I hope)
gary_poster: noodles775: in xx-private-
gary_poster: thanks salgado
gary_poster: noodles775: also, in the previous section of the same file, why did the result change (5 of 17 results, and different values)? If explaining it takes too long, I'll accept "because of changes that have previously passed review"
gary_poster: but I'd like reassurance that you are confident of the change, at least
gary_poster: hm, I could understand an increase of 1, since we added the private p3a archive, but I don't understand 14 -> 17
noodles775: gary_poster: so, regarding your first question, 375ff, the test for authorised viewers seeing the builds in the history was moved to just below with the Frog builder.
noodles775: It looks like a lot less test-code because the Frog builder only has the one build in its history (it's not polluted with sample data :)).
gary_poster: noodles775: ah ok cool thanks
noodles775: gary_poster: and your second question is related, because previously cprov's ppa was switched to private (which is no longer allowed), and had a bunch of publishings.
noodles775: So the 14 -> 17 is because there are 3 packages in cprov's public archive (when it was private ,they did not show up).
Topic changed to "on call: adeuring,
noodles775: s/packages/builds of course.
gary_poster: noodles775: we ...

This is the sixth (and final!) branch in a series to refactor soyuz tests after fixing bug 506203.
The MP for the branch that actually fixed the bug is at:
https:/ /code.edge. launchpad. net/~michael. nelson/ launchpad/ 506203- ppa-privatisati on-check/ +merge/ 19415
The original fix ensures that the privacy of a PPA cannot be altered once it has packages published. Unfortunately most of our test infrastructure does exactly that (switches the privacy to do a few tests and then switches it back).
The complete test breakages are as follows: pastebin. ubuntu. com/378292/
http://
This branch fixes: builds. txt -t xx-queue- pages-delayed- copies. txt -t webservice/ xx-archive. txt -t xx-archivedepen dency.txt -t xx-binary- package- publishing. txt -t xx-source- package- publishing. txt
bin/test -vv -t xx-private-
Thanks.