Merge lp:~negronjl/charm-tools/review_queue into lp:~charmers/charm-tools/trunk
Proposed by
Juan L. Negron
Status: | Merged |
---|---|
Approved by: | Clint Byrum |
Approved revision: | 138 |
Merge reported by: | Juan L. Negron |
Merged at revision: | not available |
Proposed branch: | lp:~negronjl/charm-tools/review_queue |
Merge into: | lp:~charmers/charm-tools/trunk |
Diff against target: |
127 lines (+123/-0) 1 file modified
scripts/review-queue (+123/-0) |
To merge this branch: | bzr merge lp:~negronjl/charm-tools/review_queue |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juan L. Negron (community) | Needs Resubmitting | ||
Clint Byrum (community) | Needs Fixing | ||
Review via email: mp+106481@code.launchpad.net |
Description of the change
To make charm review more convenient, I made a simple script that polls the current review queue.
-Juan
To post a comment you must log in.
Hi Juan!
Can you change the script name to review-queue. Underscore is not common in the juju ecosystem and I'd like to remain consistent.
charm review-queue
Seems more consistent with that.
Also this goes really slow, obviously because we're waiting for launchpad. I'd recommend adding a cache to the launchpadlib. Could you add some logging, something like:
Querying launchpad...
Just so we know what is taking 4 seconds. (Perhaps a --quiet to get rid of it)
Also you can speed it up on subsequent runs by almost 1s by passing launchpadlib_ dir='~/ .cache/ launchpadlib' to Launchpad. login_anonymous ly. It will just skip querying a few of the objects like the team records and such.
=== modified file 'scripts/ review_ queue' review_ queue 2012-05-18 23:25:43 +0000 review_ queue 2012-05-20 00:42:11 +0000
--- scripts/
+++ scripts/
@@ -71,7 +71,7 @@
def charm_review_ queue() : login_anonymous ly('charm- tools', 'production', version='devel') login_anonymous ly('charm- tools', 'production', version='devel', launchpadlib_ dir='~/ .cache/ launchpadlib' ) s['charms' ] ks(tags= ['new-formula' , 'new-charm'], tags_combinator ="Any", status=['New', 'Confirmed', 'Triaged', 'In Progress', 'Fix Committed']) 'charmers' ]
- lp = Launchpad.
+ lp = Launchpad.
charm = lp.distribution
bugs = charm.searchTas
charmers = lp.people[
Otherwise I think this is *awesome*!
(as a side note, I got bored and tried this out with a thread per request to launchpad.. that drops it to about 3.3s.. basically only waiting for the bug search.) I've pushed that to lp:~clint-fewbar/charm-tools/review_queue_threaded)