<?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>6864</bug_id>
          
          <creation_ts>2014-10-22 10:55:18 +0000</creation_ts>
          <short_desc>message field for some tasks is empty</short_desc>
          <delta_ts>2014-10-22 15:54:53 +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.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ionut Chisanovici">ionutx.chisanovici</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
          
          <qa_contact name="Ionut Chisanovici">ionutx.chisanovici</qa_contact>
          <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>46493</commentid>
    <comment_count>0</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2014-10-22 10:55:18 +0000</bug_when>
    <thetext>Hi,

The message field for some tasks in orm_task is empty and this is causing some toaster selftest to fail.

select * from orm_task where id=1349;
          build_id = 1
    work_directory = 
         cpu_usage = 11.7
     task_executed = 1
           disk_io = 0
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = 3ae2716d849b54828a3a7c2fee658657
        source_url = 
             order = 210
      elapsed_time = 
           logfile = 
         recipe_id = 249
         task_name = do_unpack
           message = 
           outcome = 0
                id = 1349
     sstate_result = 0
       script_type = 0

For extracting the cpu_usage, elapsed_time and disk_io (toaster selftests), these tests are using the informations provided by the task message field for getting the task stats file path.
If the message field is empty then these tests will fail.

Cheers,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46505</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-10-22 15:54:53 +0000</bug_when>
    <thetext>Not all task-related events come with a &apos;message&apos; field from bitbake - this is why we don&apos;t have message fields for some of the tasks being run.

Furthermore, the message field isn&apos;t intended to be machine-readable, and the paths mentioned in those messages are intended for human usage.

I suggest that the tests lookup the buildstats file some other way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>