<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10051</bug_id>
          
          <creation_ts>2016-07-29 10:17:59 +0000</creation_ts>
          <short_desc>Error log links (err.html and err.text) in build page show tracebacks from buildsteps.py</short_desc>
          <delta_ts>2016-08-04 14:45:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64639</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-29 10:17:59 +0000</bug_when>
    <thetext>When trying to make use of the new err.html and err.text links for a failed build I am presented a Python Traceback from the _createBitbakeErrorReport function.

Full traceback is pasted below, the transient link to the autobuilder build in question is:

https://autobuilder.yoctoproject.org/main/builders/nightly-oecore/builds/863

----


Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py&quot;, line 290, in addCallbacks
    self._runCallbacks()
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py&quot;, line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py&quot;, line 368, in callback
    self._startRunCallbacks(result)
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py&quot;, line 464, in _startRunCallbacks
    self._runCallbacks()
--- &lt;exception caught here&gt; ---
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py&quot;, line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/process/buildstep.py&quot;, line 866, in &lt;lambda&gt;
    d.addCallback(lambda res: self.commandComplete(cmd))
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py&quot;, line 145, in commandComplete
    report = self._createBitbakeErrorReport(self.errors[&apos;log&apos;])
  File &quot;/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py&quot;, line 122, in _createBitbakeErrorReport
    self.getProperty(&apos;got_revision&apos;)
exceptions.TypeError: coercing to Unicode: need string or buffer, NoneType found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64640</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-29 10:19:16 +0000</bug_when>
    <thetext>Set assignee to alimon, the author of the code in question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64650</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-07-29 14:59:44 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Set assignee to alimon, the author of the code in question.

This is a simple bug when i was working in this i didn&apos;t notice that got_revision is only available in poky builds for oe-core is got_revision_oecore.

I&apos;ll add a validation if got_revision is None try to use got_revision_oecore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64654</commentid>
    <comment_count>3</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-07-29 15:11:46 +0000</bug_when>
    <thetext>At,

https://lists.yoctoproject.org/pipermail/yocto/2016-July/031374.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64870</commentid>
    <comment_count>4</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-08-04 14:45:06 +0000</bug_when>
    <thetext>Merge at,

http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/commit/?id=3297ea1ebb4cffe9ef8997e8f9ecec58b120aa30</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>