Bug 6975

Summary: elapsed_time value in database doesn't match sometime the value in the task stats file
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Jessica <jessica.zhang>
Status: VERIFIED WONTFIX QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Undecided CC: alexandru.c.georgescu, alexandru.damian, belen.barros.pena, bluelightning, bogdanx.a.voiculescu, cristiana.voicu
Version: 1.6.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Found by QA test)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ionut Chisanovici 2014-11-18 08:59:02 UTC
For 1.6.2 rc2, commit: 30b8d9378b8260e452552b806610dc9b6fe0b69f, database value for elapsed_time for some tasks doesn't match the value from the stats file:

sqlite> select * from orm_task where id=3649;
          build_id = 1
    work_directory = 
         cpu_usage = 5
     task_executed = 1
           disk_io = 52
       line_number = 0
path_to_sstate_obj = 20/sstate:xproto::7.0.25:r0::3:203a1756558b013be7bb0944cf96eb81_populate_lic.tgz
   sstate_checksum = 203a1756558b013be7bb0944cf96eb81
        source_url = 
             order = 1840
      elapsed_time = 0.63
           logfile = /home/ionut/work/weekly/poky/build/tmp/work/i586-poky-linux/xproto/1_7.0.25-r0/temp/log.do_populate_lic.24592
         recipe_id = 316
         task_name = do_populate_lic
           message = recipe xproto-1_7.0.25-r0: task do_populate_lic: Succeeded
           outcome = 0
                id = 3649
     sstate_result = 1
       script_type = 2

$ cat core-image-sato-qemux86/201411171101/xproto-1_7.0.25-r0/do_populate_lic | grep Elaps
xproto-1_7.0.25-r0: do_populate_lic: Elapsed time: 0.44 seconds

Cheers,
Ionut C
Comment 1 Paul Eggleton 2014-11-20 16:03:32 UTC
This issue is fixed in master; I think at this stage it's not serious enough to warrant fixing it in daisy so I'm marking this as wontfix.
Comment 2 Alexandru Georgescu 2015-03-23 09:28:33 UTC
Verified as per Paul's comments.