Bug 6685 - Elapsed_time value null for tasks with outcome=0
Summary: Elapsed_time value null for tasks with outcome=0
Status: RESOLVED WONTFIX
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.7.1
Assignee: Alexandru Damian
QA Contact: Ionut Chisanovici
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-09-05 08:30 UTC by Ionut Chisanovici
Modified: 2015-01-21 12:03 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
toaster.sqlite (20.27 MB, application/octet-stream)
2015-01-08 10:32 UTC, Ionut Chisanovici
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ionut Chisanovici 2014-09-05 08:30:29 UTC
Hi,

BUILD: 1.7_M3_RC1: a44006262cf3b810ec78b4cccd8076102a7a0f3e

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

sqlite> select * from orm_task where id=6585;
          build_id = 2
    work_directory = 
         cpu_usage = 7
     task_executed = 1
           disk_io = 0
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = 7273bfbf3e5f27acc8f7405ccffc3032
        source_url = 
             order = 1523
      elapsed_time = 
           logfile = /home/ionut/work/weekly/poky/build/tmp/work/x86_64-linux/wayland-native/1.5.0-r0/temp/log.do_unpack.22955
         recipe_id = 261
         task_name = do_unpack
           message = recipe wayland-native-1.5.0-r0: task do_unpack: Succeeded
           outcome = 0
                id = 6585
     sstate_result = 0
       script_type = 0

Cheers,
Ionut C
Comment 1 Belen Barros Pena 2014-10-23 14:21:24 UTC
An executed - succeeded task might have elapsed time of 0 if that's the elapsed time reported by buildstats. The real problem is when buildstats says one thing, and Toaster says a different thing, which is the issue recorded by 6833. Marking this as a duplicate of 6833

*** This bug has been marked as a duplicate of bug 6833 ***
Comment 2 Ionut Chisanovici 2014-10-23 14:30:12 UTC
Reopened as the 6833 refers to another issue than this.
6833 - has different values in the db and stats file while this bug is referring to the fact that the elapsed_time value is null (value is missing).

Cheers,
Ionut C
Comment 3 Alexandru Damian 2014-10-31 11:08:19 UTC
Will be submitted to review on Fri, 31/10.
Comment 4 Alexandru Damian 2014-10-31 11:08:29 UTC
Will be submitted to review on Fri, 31/10.
Comment 6 Ionut Chisanovici 2015-01-08 10:31:17 UTC
Reopened as the issue appeared again for 1.7.1 rc1, commit: 6dd21a9f152a93e2df1178d7a5bd903d7edcf4be.

sqlite> select * from orm_task where id=1536;
          build_id = 1
    work_directory = 
         cpu_usage = 0.9
     task_executed = 1
           disk_io = 256
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = 59fe571da1e596c3202a68426b10fc1f
        source_url = 
             order = 695
      elapsed_time = 
           logfile = /home/ionut/work/poky_1.7/poky/build/tmp/work/x86_64-linux/alsa-lib-native/1.0.28-r0/temp/log.do_patch.20241
         recipe_id = 61
         task_name = do_patch
           message = recipe alsa-lib-native-1.0.28-r0: task do_patch: Succeeded
           outcome = 0
                id = 1536
     sstate_result = 0
       script_type = 0

sqlite> select * from orm_task where id=4463;
          build_id = 1
    work_directory = 
         cpu_usage = 1.5
     task_executed = 1
           disk_io = 0
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = 86d66b62174cd3c93403dd69bb39e98d
        source_url = 
             order = 868
      elapsed_time = 
           logfile = /home/ionut/work/poky_1.7/poky/build/tmp/work/x86_64-linux/wayland-native/1.5.0-r0/temp/log.do_unpack.17271
         recipe_id = 76
         task_name = do_unpack
           message = recipe wayland-native-1.5.0-r0: task do_unpack: Succeeded
           outcome = 0
                id = 4463
     sstate_result = 0
       script_type = 0

sqlite> select * from orm_task where id=1343;
          build_id = 1
    work_directory = 
         cpu_usage = 6.4
     task_executed = 1
           disk_io = 4
       line_number = 0
path_to_sstate_obj = 
   sstate_checksum = 3ae2716d849b54828a3a7c2fee658657
        source_url = 
             order = 171
      elapsed_time = 
           logfile = /home/ionut/work/poky_1.7/poky/build/tmp/work/x86_64-linux/gettext-native/0.18.3.2-r0/temp/log.do_unpack.2168
         recipe_id = 249
         task_name = do_unpack
           message = recipe gettext-native-0.18.3.2-r0: task do_unpack: Succeeded
           outcome = 0
                id = 1343
     sstate_result = 0
       script_type = 0

Attached the db.

Cheers,
Ionut C
Comment 7 Ionut Chisanovici 2015-01-08 10:32:14 UTC
Created attachment 2317 [details]
toaster.sqlite
Comment 8 Alexandru Damian 2015-01-21 12:03:41 UTC
Won't be fixed for 1.7 point releases, fixed in master.