Merge lp:~mabac/svammel/two-small-fixes into lp:svammel

Proposed by Mattias Backman
Status: Merged
Approved by: James Westby
Approved revision: 104
Merged at revision: 104
Proposed branch: lp:~mabac/svammel/two-small-fixes
Merge into: lp:svammel
Diff against target: 30 lines (+6/-6)
2 files modified
data_parsing.py (+2/-1)
file-failures.py (+4/-5)
To merge this branch: bzr merge lp:~mabac/svammel/two-small-fixes
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Ricardo Salveti (community) Approve
Review via email: mp+63702@code.launchpad.net

Description of the change

Hi,

This branch fixes bug 791642 and bug 791644 which where found and fixed by rsalveti.

Thanks,

Mattias

To post a comment you must log in.
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Tested with my previous log and it's now working fine.

Thanks for the fixes!

review: Approve
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

$ python file-failures.py -vvvv --archive primary --series oneiric --logfile 010611.log --dryrun
...
DEBUG:Svammel:Getting build record for kdeplasma-addons.
DEBUG:Svammel:Getting build log for kdeplasma-addons.
DEBUG:Svammel:Downloading contents of https://launchpad.net/ubuntu/+source/kdeplasma-addons/4:4.6.3-1ubuntu1/+build/2551233/+files/buildlog_ubuntu-oneiric-armel.kdeplasma-addons_4%3A4.6.3-1ubuntu1_FAILEDTOBUILD.txt.gz
DEBUG:Svammel:Processing build log for kdeplasma-addons.
DEBUG:Svammel:Creating pattern matchers for setting tags.
DEBUG:Svammel:Extra bug tags [].
DEBUG:Svammel:Creating log pattern matchers.
DEBUG:Svammel:Applying log file matchers.
DEBUG:Svammel:Matcher 'Source-dependencies not satisfied' triggered on line 444.
INFO:Svammel:Will file bug for kdeplasma-addons version 4:4.6.3-1ubuntu1 with tags: ['ftbfs', 'arm-porting-queue']
INFO:Svammel: ... but didn't since dryrun is specified.
...
DEBUG:Svammel:Done getting 'Successfully built' builds for source 'pidgin-musictracker'
INFO:Svammel:Had reason to close the bugtask https://bugs.launchpad.net/ubuntu/+source/pidgin-musictracker/+bug/791324 but didn't since dryrun is specified.

Revision history for this message
James Westby (james-w) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data_parsing.py'
2--- data_parsing.py 2011-04-26 12:57:19 +0000
3+++ data_parsing.py 2011-06-07 13:39:59 +0000
4@@ -205,7 +205,8 @@
5 # Get list of successful builds for the same package
6 # only when checking in other archives than where
7 # this record came from.
8- if fail_build_record.archive.name == archive.name:
9+ if (fail_build_record is not None and
10+ fail_build_record.archive.name == archive.name):
11 continue
12
13 success_list = get_build_list(archive, SUCCESS_BUILD_STATE,
14
15=== modified file 'file-failures.py'
16--- file-failures.py 2011-04-26 12:57:19 +0000
17+++ file-failures.py 2011-06-07 13:39:59 +0000
18@@ -172,8 +172,7 @@
19 close_bug_by_url(log_entry.bugtask_url, new_status,
20 get_launchpad())
21 else:
22- bug = get_launchpad().load(log_entry.bugtask_url)
23- for bug_task in bug.bug_tasks:
24- logger.info("Had reason to close the bugtask %s but " \
25- "didn't since dryrun is specified." % \
26- bug_task.web_link)
27+ bug_task = get_launchpad().load(log_entry.bugtask_url)
28+ logger.info("Had reason to close the bugtask %s but " \
29+ "didn't since dryrun is specified." % \
30+ bug_task.web_link)

Subscribers

People subscribed via source and target branches