Merge lp:~sinzui/launchpad/prf-files into lp:launchpad
Proposed by
Curtis Hovey
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~sinzui/launchpad/prf-files |
Merge into: | lp:launchpad |
Diff against target: |
139 lines 2 files modified
lib/lp/registry/scripts/productreleasefinder/finder.py (+0/-9) lib/lp/registry/tests/test_prf_finder.py (+38/-30) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/prf-files |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis J. Lacoste (community) | release-critical | Approve | |
Aaron Bentley (community) | code | Approve | |
Canonical Launchpad Engineering | rc code | Pending | |
Review via email: mp+14312@code.launchpad.net |
To post a comment you must log in.
This is my branch to ensure the PRF uploads all the files for a release.
lp:~sinzui/launchpad/prf-files /bugs.launchpad .net/bugs/ 415595 implementation: no one
Diff size: 137
Launchpad bug: https:/
Test command: ./bin/test -vvt "test_prf_finder"
Pre-
Target release: 3.1.10
= Product release finder should import all files =
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.
Testing reveals that this is not fixed yet. Running the PRF in debug mode I ll(). The code has a loop
can see an abort is called during addReleaseTarba
that duplicates the old hasReleaseFile() method to end early if there is a
binary associated with the release.
== Rules ==
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.
== QA ==
Run the product release finder. 1.0.0.tar. gz 1.0.0.tar. bz2
Visit the a the 1.0.0 release of the /sushi.nigiri project
* Verify that the release has both:
sushi-
sushi-
Any project can be test in any environment by setting the target series' sushi.ikkoku. de/downloads/ 1.0/*
release URL pattern to http://
== Lint ==
Linting changed files: registry/ scripts/ productreleasef inder/finder. py registry/ tests/test_ prf_finder. py
lib/lp/
lib/lp/
== Test ==
* lib/lp/ registry/ tests/test_ prf_finder. py
* Added a test to verify that multiple release tarball can be uploaded.
* Extracted the duplicate test tarball file code to a helper.
== Implementation ==
* lib/lp/ registry/ scripts/ productreleasef inder/finder. py
* Deleted the loop that aborts adding a second tarball for a release.
already has binary.