Bug 6114

Summary: Elapsed_time value null for tasks with outcome=0
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED WONTFIX QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium CC: alexandru.damian, belen.barros.pena, cristiana.voicu, david.reyna, jessica.zhang, stanciux.mihail
Version: 1.6.1   
Target Milestone: 1.6.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
sqlite db
none
toaster ui log none

Description Ionut Chisanovici 2014-04-04 09:23:20 UTC
Hi,

BUILD: 1.6_M5_RC2: 3e528d3e4bc542ca2f654c54363c56af0fb9f61b

The value of the elapsed_time field for certain tasks having outcome=0 is null.
See below:

sqlite> select * from orm_task where id=267;
          build_id = 1
    work_directory = 
         cpu_usage = 6.3
     task_executed = 1
           disk_io = 0
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = 01ece274289d3fcb846c3a2ece9bca97
        source_url = 
             order = 129
      elapsed_time = 
           logfile = /home/ionut/work/toaster/poky/build/tmp/work/x86_64-linux/shadow-native/4.1.4.3-r14/temp/log.do_unpack.6068
         recipe_id = 2
         task_name = do_unpack
           message = recipe shadow-native-4.1.4.3-r14: task do_unpack: Succeeded
           outcome = 0
                id = 267
     sstate_result = 0
       script_type = 0

sqlite> select * from orm_task where id=1644;
          build_id = 1
    work_directory = 
         cpu_usage = 0.2
     task_executed = 1
           disk_io = 2856
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = 967a3c6f380f2ae430c120361ebe1095
        source_url = 
             order = 144
      elapsed_time = 
           logfile = /home/ionut/work/toaster/poky/build/tmp/work/x86_64-linux/glib-2.0-native/1_2.38.2-r0/temp/log.do_fetch.6164
         recipe_id = 166
         task_name = do_fetch
           message = recipe glib-2.0-native-1_2.38.2-r0: task do_fetch: Started
           outcome = 0
                id = 1644
     sstate_result = 0
       script_type = 2

Cheers,
Ionut C
Comment 1 Ionut Chisanovici 2014-04-04 09:26:03 UTC
Created attachment 1895 [details]
sqlite db
Comment 2 Ionut Chisanovici 2014-04-04 09:26:33 UTC
Created attachment 1896 [details]
toaster ui log
Comment 3 Alexandru Damian 2014-04-08 12:51:38 UTC
Looking into this.
Comment 4 Alexandru Damian 2014-06-24 12:55:39 UTC
Cannot repro. Please reopen if the bug occurs in 1.7M1 or beyond.
Comment 5 Mihail Stanciu 2014-08-11 14:38:06 UTC
Verified on master: 2d1660112e54653f7bb763939d0416472c49fe01
Comment 6 Ionut Chisanovici 2014-11-18 08:53:56 UTC
For 1.6.2 rc2, commit: 30b8d9378b8260e452552b806610dc9b6fe0b69f, issue is still present:

sqlite> select * from orm_task where id=4459;
          build_id = 1
    work_directory = 
         cpu_usage = 0
     task_executed = 1
           disk_io = 3112
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = e6515ea3913d5895ca9ff1af102fad0a
        source_url = 
             order = 11
      elapsed_time = 
           logfile = /home/ionut/work/weekly/poky/build/tmp/work/x86_64-linux/ncurses-native/5.9-r15.1/temp/log.do_fetch.26550
         recipe_id = 6
         task_name = do_fetch
           message = recipe ncurses-native-5.9-r15.1: task do_fetch: Started
           outcome = 0
                id = 4459
     sstate_result = 0
       script_type = 2

Cheers,
Ionut C
Comment 7 Alexandru Damian 2014-11-18 10:17:49 UTC
Will not for 1.6.x series. Master patches can't easily be backported.
Comment 8 Mihail Stanciu 2015-02-11 13:42:36 UTC
Verified.