Merge lp:~james-w/launchpad-work-items-tracker/blueprints-api into lp:launchpad-work-items-tracker
| Status: | Merged |
|---|---|
| Merge reported by: | Martin Pitt |
| Merged at revision: | not available |
| Proposed branch: | lp:~james-w/launchpad-work-items-tracker/blueprints-api |
| Merge into: | lp:launchpad-work-items-tracker |
| Diff against target: |
475 lines (+127/-187) 1 file modified
collect (+127/-187) |
| To merge this branch: | bzr merge lp:~james-w/launchpad-work-items-tracker/blueprints-api |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pitt (community) | Approve on 2011-02-09 | ||
| Jamie Bennett | 2010-12-09 | Pending | |
| Clint Byrum | 2010-12-09 | Pending | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2010-12-08.
Description of the Change
Hi,
This makes use of the newly exposed blueprints API on Launchpad, reducing
the amount of screen scraping, round trips, and data transferred enormously.
The only regression that I think this will cause is that when someone writes
"bug 12345" in the whiteboard, it will no longer be a link to that bug
when viewed on the workitems page, but I think we can live with that for
now. If you disagree let me know and I will code it.
Apologies that the diff is a little large and not particularly clear, but
I couldn't think of a good way to migrate a bit at a time.
The change is now rolled out on the Launchpad production instance, so we
can make use of this.
Note that you may still get AttributeError: ... 'bugs' due to caching of the WADL.
If you delete ~/.launchpadlib
and retry it should work.
Thanks,
James
| Jamie Bennett (jamiebennett) wrote : | # |
On testing the code I was prompted to log in using open id (from the command-line). As this was tested via ssh to a development box 'Links' was launched as the web browser to gather my open id information. From there you cannot log in (Launchpad/Links issue). This did not happen on previous versions.
| James Westby (james-w) wrote : | # |
The change is now rolled out on the Launchpad production instance, so we
can make use of this.
Note that you may still get AttributeError: ... 'bugs' due to caching of the WADL.
If you delete ~/.launchpadlib
and retry it should work.
| James Westby (james-w) wrote : | # |
Jamie, I don't see how that could have been caused by this change, as
the API was still used for some things in the old code. I suspect it is
just coincidence that you are seeing this for the first time now.
Thanks,
James
| James Westby (james-w) wrote : | # |
Jamie, I've worked out why you saw that behaviour now, it's because
I changed from "edge" to "production" as edge is going away, so this
will indeed affect all users.
The other problem is that people.
version of launchpadlib to know about the "version" argument to
Launchpad.
on "devel".
Thanks,
James
- 253. By Martin Pitt on 2010-12-10
-
revert extra-projects merge for now; this is creating a conceptual conflict on milestones, and should rather be handled in separate configurations for linaro
- 254. By Martin Pitt on 2010-12-10
-
consider fixed bugs in bug list based reports as well
- 255. By Martin Pitt on 2010-12-17
-
add "Unknown" bug state
- 256. By Martin Pitt on 2011-01-03
-
drop Unknown bug state, does not exist any more
- 257. By Martin Pitt on 2011-01-03
-
better fix for "Unknown" task status
- 258. By Martin Pitt on 2011-01-03
-
finally fix unknown bug states
| Martin Pitt (pitti) wrote : | # |
lillypilly (aka people.u.c.) got upgraded to lucid over the holidays, so we have a recent enough launchpadlib available now.
This looks a lot better than the screenscraping, thanks for porting this! Surprising that they added API for blueprints, I thought they were doomed to go away entirely.
| Martin Pitt (pitti) wrote : | # |
This breaks the --pattern option, which is quite handy for debugging. I'll fix this when merging.
| Martin Pitt (pitti) wrote : | # |
Unfortunately this exposes another bug in launchpadlib for building the cache file names:
IOError: [Errno 36] File name too long: '/home/
In order to not lose my modifications, I pushed the merge (and fix) to lp:~work-items-tracker-hackers/launchpad-work-items-tracker/blueprints-api
- 259. By Martin Pitt on 2011-01-11
-
html-report: Add textual stats over time
- 260. By Martin Pitt on 2011-01-11
-
html-report: sort dates
- 261. By Martin Pitt on 2011-01-11
-
fix time-stats todo column
- 262. By Martin Pitt on 2011-01-11
-
time-stats: not all states exist always
- 263. By Martin Pitt on 2011-01-29
-
collect: add "Expired" bug state
- 264. By James Westby on 2011-02-07
-
Merge blueprints API branch.
| Martin Pitt (pitti) wrote : | # |
This is all merged into lp:~work-items-tracker-hackers/launchpad-work-items-tracker/blueprints-api now. That branch collects up all of your recent work, many thanks! It works fine locally, and it seems the "too long file name" problem was just transient. Please see https:/

Upon running the code as-is, I received a failure rather quickly:
clint@clint- MacBookPro: ~/src/wi/ bzr/trunk$ ./collect -d ../natty.db -c ../natty.cfg --debug milestones( ): milestone table already filled n-automated- testing from https:/ /api.launchpad. net/devel/ ubuntu/ +spec/cloud- server- n-automated- testing blueprint( cloud-server- n-automated- testing) : finished parsing; data: {'status': 'Session for discussion about automated testing of Ubuntu Server; automated ISO testing was implemented for Maverick using libvirt/kvm + Hudson (see http:// launchpad. net/ubuntu- server- iso-testing). This approach could be applied in other variants and for other aspects of server testing', 'definition': 'Approved', 'implementation': 'Started', 'milestone': 'natty-alpha-3', 'approver': 'robbie.w', 'details_url': None, 'priority': 'Essential', 'assignee': 'james-page', 'roadmap_notes': None, 'drafter': 'james-page'} blueprint_ workitems( ): processing cloud-server- n-automated- testing (spec milestone: natty-alpha-3, spec assignee: james-page, spec implementation: Started) blueprint_ workitems( ): starting work items block at Work items for natty-alpha-2: server- iso-testing and locate in PPA: INPROGRESS' server- iso-testing and locate in PPA: INPROGRESS' blueprint_ workitems( ): closing work items block with line: blueprint_ workitems( ): starting work items block at Work items for natty-alpha-3: /launchpad. net/ubuntu/ +spec/cloud- server- n-automated- testing
lp_import_
lp_import_teams(): teams table already filled
lp_import(): downloading cloud-server-
lp_import_
lp_import_
lp_import_
... setting milestone to natty-alpha-2
workitem (raw): '[hggdh2] Way forward on production deployment of ISO testing: TODO'
workitem (clean): '[hggdh2] Way forward on production deployment of ISO testing: TODO'
workitem (raw): '[james-page] Move Server ISO tests to normal PXE + TFTP instead for broader fit with potential test architectures: DONE'
workitem (clean): '[james-page] Move Server ISO tests to normal PXE + TFTP instead for broader fit with potential test architectures: DONE'
workitem (raw): '[james-page] Server ISO test - review what the iso overlay looks like and refactor as required: DONE'
workitem (clean): '[james-page] Server ISO test - review what the iso overlay looks like and refactor as required: DONE'
workitem (raw): '[james-page] Package ubuntu-
workitem (clean): '[james-page] Package ubuntu-
workitem (raw): ''
lp_import_
lp_import_
... setting milestone to natty-alpha-3
workitem (raw): '[james-page] Automate EC2 testing and increase depth of image testing using unittest/subunit: TODO'
workitem (clean): '[james-page] Automate EC2 testing and increase depth of image testing using unittest/subunit: TODO'
workitem (raw): '[james-page] Server ISO test - fix concurrency in ISO download: TODO'
workitem (clean): '[james-page] Server ISO test - fix concurrency in ISO download: TODO'
workitem (raw): '[cr2] Output plugin for checkbox to write to couchdb: TODO'
workitem (clean): '[cr2] Output plugin for checkbox to write to couchdb: TODO'
https:/
[WARNING] assignee "cr2" is not a valid Launchpad account
workitem (raw): '[cr2] Checkbox plugin to download tests from couchdb to ex...