Merge lp:~cjwatson/launchpad/queue-filter-source into lp:launchpad
| Status: | Rejected |
|---|---|
| Rejected by: | Colin Watson on 2012-12-12 |
| Proposed branch: | lp:~cjwatson/launchpad/queue-filter-source |
| Merge into: | lp:launchpad |
| Diff against target: |
524 lines (+80/-140) 2 files modified
lib/lp/soyuz/model/queue.py (+16/-7) lib/lp/soyuz/tests/test_packageupload.py (+64/-133) |
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/queue-filter-source |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Colin Watson | Disapprove on 2012-12-12 | ||
| Stuart Bishop | Approve on 2012-08-20 | ||
| Brad Crittenden (community) | code | 2012-08-11 | Approve on 2012-08-17 |
|
Review via email:
|
|||
Commit Message
Allow filtering package uploads by source package name.
Description of the Change
== Summary ==
Bug 33700: binary package uploads can only be filtered by binary package name, not source package name. This causes us to have to make some rather odd and imprecise queries in places.
== Proposed fix ==
Join through to PackageUploadBu
== Implementation details ==
I did a bit of test refactoring to reduce code size.
== Tests ==
bin/test -vvct test_packageupload
== Demo and Q/A ==
Using queue from lp:ubuntu-archive-tools, these two queries should produce the same list of uploads:
queue -l qastaging -s oneiric-updates -Q done info fglrx-installer
queue -l qastaging -s oneiric-updates -Q done info fglrx
Without this fix, the first only shows a source upload, not the two corresponding binary uploads.
| Robert Collins (lifeless) wrote : | # |
| Colin Watson (cjwatson) wrote : | # |
I've left a comment on the linked bug with my attempt at a performance analysis. I'd welcome your feedback on that.
| Brad Crittenden (bac) wrote : | # |
Colin thanks for doing this change and for performing the analysis that Robert requested. What you've done *seems* reasonable to me, and I agree you've made a terrible query a wee bit terribler.
Thanks for the refactoring and cleaning up some of the code.
Based on the scale of the impact I will approve this branch but ask that you seek out Stuart's opinion for possible improvements before landing.
| Stuart Bishop (stub) wrote : | # |
This seems reasonable.
If you are worried about performance going from bad to timeout, a feature flag may be appropriate to be able to turn off the new behavior easily.
On the database side, we can try helping with targetted indexes. We should probably add trigram indexes to BinaryPackageNa
| Colin Watson (cjwatson) wrote : | # |
The maintenance squad are working on a much better solution that won't involve a huge forest of JOINs, so retracting this MP in favour of their work.
Unmerged revisions
- 15794. By Colin Watson on 2012-08-11
-
Refactor TestPackageUplo
adSet. - 15793. By Colin Watson on 2012-08-11
-
Make test_packageupload more compact.
- 15792. By Colin Watson on 2012-08-11
-
Allow filtering package uploads by source package name.

Extra joins -> possibly performance hit. Have you had someone test the
query on staging or dogfood or production for you ?