<?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>7365</bug_id>
          
          <creation_ts>2015-02-25 14:40:33 +0000</creation_ts>
          <short_desc>Builds in observer mode aren&apos;t being registered in the database</short_desc>
          <delta_ts>2015-03-05 11:54:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mihail Stanciu">stanciux.mihail</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
          
          <qa_contact name="Ionut Chisanovici">ionutx.chisanovici</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>49042</commentid>
    <comment_count>0</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-02-25 14:40:33 +0000</bug_when>
    <thetext>Tested on master: 40d80f9e019118ac7bcd268f21e350bc154a4a63

Steps to reproduce
1. Start toaster in observer mode (source toaster start)
2. Start a build once toaster finishes initializing (bitbake core-image-minimal)

Expected result:
Build start should be picked up by toaster and information should be added to the database as the build is being completed.

Observed result:
Build start isn&apos;t being picked up by Toaster. Once build finishes, it appears in Toaster, but all tables are empty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49045</commentid>
    <comment_count>1</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2015-02-25 15:06:58 +0000</bug_when>
    <thetext>The only table that is being populated is orm_build.

Also, in the toaster_ui.log the following traceback is repeating for every recipe bb file:

ERROR: Could not match layer version for recipe path /home/ionut/work/poky_1.8/poky/meta/recipes-graphics/xorg-lib/libxrandr_1.4.2.bb : []
ERROR: Your database backend doesn&apos;t behave properly when autocommit is off. Turn it on before using &apos;atomic&apos;.
Traceback (most recent call last):
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 219, in main
    buildinfohelper.store_started_task(event)
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 829, in store_started_task
    recipe_information = self._get_recipe_information_from_taskfile(event.taskfile)
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 703, in _get_recipe_information_from_taskfile
    layer_version_obj = self._get_layer_version_for_path(localfilepath)
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 696, in _get_layer_version_for_path
    unknown_layer, created = Layer.objects.get_or_create(name=&quot;__FIXME__unidentified_layer&quot;, local_path=&quot;/&quot;, layer_index_url=&quot;&quot;)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py&quot;, line 154, in get_or_create
    return self.get_queryset().get_or_create(**kwargs)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/models/query.py&quot;, line 388, in get_or_create
    six.reraise(*exc_info)
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/models/query.py&quot;, line 379, in get_or_create
    with transaction.atomic(using=self.db):
  File &quot;/usr/local/lib/python2.7/dist-packages/django/db/transaction.py&quot;, line 244, in __enter__
    &quot;Your database backend doesn&apos;t behave properly when &quot;
TransactionManagementError: Your database backend doesn&apos;t behave properly when autocommit is off. Turn it on before using &apos;atomic&apos;.

ERROR: 
Traceback (most recent call last):
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 132, in main
    buildinfohelper.update_and_store_task(event)
  File &quot;/home/ionut/work/poky_1.8/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 894, in update_and_store_task
    assert identifier in self.internal_state[&apos;taskdata&apos;]
AssertionError

Cheers,
Ionut</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49097</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-26 19:53:58 +0000</bug_when>
    <thetext>Pushed for review on

adamian/20150225_reviewset</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49100</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-26 21:46:24 +0000</bug_when>
    <thetext>*** Bug 7364 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49102</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-26 21:47:21 +0000</bug_when>
    <thetext>Pushed for review on bitbake-devel mail list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49119</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2015-02-27 11:57:01 +0000</bug_when>
    <thetext>Merged into master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49202</commentid>
    <comment_count>6</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-03-05 11:54:47 +0000</bug_when>
    <thetext>Verified on master: 5c1c8af083ca7b57cc339d16ce0513b27c5dac90sql</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>