<?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>10145</bug_id>
          
          <creation_ts>2016-08-15 18:42:16 +0000</creation_ts>
          <short_desc>the -w writeeventlog should record all events from the beginning</short_desc>
          <delta_ts>2016-09-09 06:43:23 +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>BitBake</product>
          <component>bitbake</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <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>65200</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-08-15 18:42:16 +0000</bug_when>
    <thetext>The current code for -w event.log doesn&apos;t start recording the events until the event name == &quot;bb.event.BuildStarted&quot;:
So, for example bitbake -p -w cow.log does not write out anything to cow.log, in fact the cow.log file is not created.

The current code does dump all the events in the Q and on the pending Q, so no events are lost.  Unfortunately, if there is no buildstarted event , we see nothing.

We do currently dump { &quot;allvariables&quot; : self.cooker.getAllKeysWithFlags([&quot;doc&quot;, &quot;func&quot;])} on buildstarted but it seems like we could start from the beginning and dump the allvariables when and if we get to a buildstarted (or maybe a parsecompleted?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65799</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-09-05 11:36:02 +0000</bug_when>
    <thetext>I decided not to change current behaviour too much as there could be a reason to collect variables on BuildStarted event as variables can reflect real build environment better if they&apos;re collected when build is started.

To make sure we always record events it&apos;s better to record them also when CookerExit event is received. This way bitbake -p -w eventlog with output events to the log even if BuildStarted is not received, but it will output them starting from BuildStarted if it&apos;s received.

Please, review: http://lists.openembedded.org/pipermail/bitbake-devel/2016-September/007982.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65970</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-09-09 06:43:23 +0000</bug_when>
    <thetext>merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ead05456264e9c7c32819271562d0ac074ecaee3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>