Product release finder should import all files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Launchpad itself |
Low
|
Unassigned |
Bug Description
The product release finder should import all files for a particular release.
For example, I have sushi-1.0.1.tar.bz2 and sushi-1.0.1.tar.gz, but the release finder only imports the .tar.bz2.
Related branches
- Eleanor Berger (community): Approve (code) on 2009-10-26
-
Diff: 116 lines2 files modifiedlib/lp/registry/scripts/productreleasefinder/finder.py (+9/-8)
lib/lp/registry/tests/test_prf_finder.py (+22/-11)
Michael Kuhn (suraia) wrote : | #2 |
This does not seem to be a problem of the finder not finding the .tar.gz:
Looking at the code (http://
Changed in launchpad-registry: | |
status: | Incomplete → Triaged |
importance: | Undecided → Low |
tags: | added: story-product-release-finder |
Curtis Hovey (sinzui) wrote : | #3 |
hasReleaseTarball() wrongly assumes that if the release has anything like a code tarball, that there all the downloading is complete. So downloading for a release stops once the first package is downloaded which means release notes and installers are also being ignored.
handleRelease() knows the filename. It should pass it to hasReleaseTarball() to verify if the release already has the file. Rename hasReleaseTarball => hasReleaseFile(
Changed in launchpad-registry: | |
assignee: | nobody → Curtis Hovey (sinzui) |
milestone: | none → 3.1.10 |
status: | Triaged → In Progress |
Curtis Hovey (sinzui) wrote : | #4 |
Fixed in launchpad devel r9777.
Changed in launchpad-registry: | |
status: | In Progress → Fix Committed |
Curtis Hovey (sinzui) wrote : | #5 |
Testing reveals that this is not fixed yet. Running the PRF in debug mode I can see an abort is called during addReleaseTarba
We want to remove the whole loop because hasReleaseFile() makes the decision; addReleaseTarball() should do as it is told. This will also make adding files faster since the the loops not needed.
Changed in launchpad-registry: | |
status: | Fix Committed → In Progress |
Curtis Hovey (sinzui) wrote : | #6 |
Really fixed in launchpad devel r9827.
Changed in launchpad-registry: | |
status: | In Progress → Fix Committed |
tags: | added: current-rollout-blocker |
Fixed released in launchpad-project 3.1.10.
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
Both file types are supported and tests show that multiples will match at the same time. How long has the tar.gz not been found?
The file will not be downloaded if it was is in the Launchpad librarian. Deletion from the librarian is a rare event, so if it was added, then marked for deletion, it will not be downloaded even though you cannot see it.