ERROR:Svammel:Unhandled situation while auto closing bugs from log file.

Bug #791642 reported by Ricardo Salveti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Svammel (UNMAINTAINED)
Fix Released
Undecided
Mattias Backman

Bug Description

INFO:Svammel:Checking for successful builds for package pilot-qof version >= 0.2.3-1
ERROR:Svammel:Unhandled situation while auto closing bugs from log file.
Traceback (most recent call last):
  File "file-failures.py", line 161, in <module>
    archives, fail_platform)
  File "/home/rsalveti/projects/linaro/svammel/data_parsing.py", line 208, in exists_successful_later_build
    if fail_build_record.archive.name == archive.name:
AttributeError: 'NoneType' object has no attribute 'archive'

When running svammel the second time with a proper logfile against the primary archive.

Bug 770729 fixed the base case when looking for successful builds, but then if fail_build_record is None it'll raise an exception when looking for fail_build_record.archive.

Revision history for this message
Mattias Backman (mabac) wrote : Re: [Bug 791642] [NEW] ERROR:Svammel:Unhandled situation while auto closing bugs from log file.

On Thu, Jun 2, 2011 at 3:48 AM, Ricardo Salveti <email address hidden> wrote:
> Public bug reported:
>
> INFO:Svammel:Checking for successful builds for package pilot-qof version >= 0.2.3-1
> ERROR:Svammel:Unhandled situation while auto closing bugs from log file.
> Traceback (most recent call last):
>  File "file-failures.py", line 161, in <module>
>    archives, fail_platform)
>  File "/home/rsalveti/projects/linaro/svammel/data_parsing.py", line 208, in exists_successful_later_build
>    if fail_build_record.archive.name == archive.name:
> AttributeError: 'NoneType' object has no attribute 'archive'
>
> When running svammel the second time with a proper logfile against the
> primary archive.
>
> Bug 770729 fixed the base case when looking for successful builds, but
> then if fail_build_record is None it'll raise an exception when looking
> for fail_build_record.archive.

Thanks for finding this. We should not look up archive name when there
is no build record to match successful builds against.

Could you try lp:~mabac/svammel/two-small-fixes and verify that it
works for you in that situation?

Thanks,

Mattias

Mattias Backman (mabac)
Changed in svammel:
assignee: nobody → Mattias Backman (mabac)
milestone: none → 0.1.2
status: New → Fix Committed
Mattias Backman (mabac)
Changed in svammel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.