<?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>10368</bug_id>
          
          <creation_ts>2016-10-04 15:35:08 +0000</creation_ts>
          <short_desc>QA Bitbake: create setup and basic unit tests for event module</short_desc>
          <delta_ts>2017-10-06 19:28:49 +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.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          <blocked>10773</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Aníbal Limón">anibal.limon</reporter>
          <assigned_to name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sonia.delgado</cc>
          
          <qa_contact name="oscar lopez arandas">oscarx.lopez.arandas</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>66867</commentid>
    <comment_count>0</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-10-04 15:35:08 +0000</bug_when>
    <thetext>The bitbake event module (lib/bb/event.py) don&apos;t have tests, the current tests of bitbake are in (lib/bb/tests) so it need to create the test plan and the tests associated with it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68994</commentid>
    <comment_count>1</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2016-12-09 17:33:51 +0000</bug_when>
    <thetext>This bug has been split in two tasks. The current one will track the server and client doubles setup and the creation of basic functionality tests covering the main communication methods and at least three events. Bug 10733 will be used to track extending and completing the bb event module&apos;s test coverage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69141</commentid>
    <comment_count>2</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2016-12-15 04:57:19 +0000</bug_when>
    <thetext>This enhancement bug will include the following items:
- Client and server stubs setup
- Testing the module&apos;s main functions including:
	- get_class_handlers()
	- set_class_handlers(h)
	- clean_class_handlers()
	- enable_threadlock()
	- disable_threadlock()
	- get_handlers()
	- set_handlers(handlers)
	- execute_handler(name, handler, event, d)
	- fire_class_handlers(event, d)
	- print_ui_queue()
	- fire_ui_handlers(event, d)
	- fire(event, d)
	- fire_from_worker(event, d)
	- register(name, handler, mask=None, filename=None, lineno=None)
	- remove(name, handler)
	- register_UIHhandler(handler, mainui=False)
	- unregister_UIHhandler(handlerNum)
- Testing event handling using:
	- class Event(object)
	- class OperationStarted(Event)
	- class OperationCompleted(Event)
	- class OperationProgress(Event)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69984</commentid>
    <comment_count>3</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-01-20 23:16:24 +0000</bug_when>
    <thetext>Submitted patch set to poky-contrib on http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=jairglez/bbevents

Currently waiting for test results on http://yctb01.zpn.intel.com:8010/builders/nightly-oe-selftest/builds/312</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70036</commentid>
    <comment_count>4</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-01-23 18:31:55 +0000</bug_when>
    <thetext>Patch set has been submitted to OE-core list:
http://lists.openembedded.org/pipermail/openembedded-core/2017-January/131628.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70068</commentid>
    <comment_count>5</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-01-23 23:33:19 +0000</bug_when>
    <thetext>Changed Copyright to Intel in the header comments section and submitted the patch again to the proper list (bitbake-devel):
http://lists.openembedded.org/pipermail/bitbake-devel/2017-January/008412.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70872</commentid>
    <comment_count>6</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-02-21 18:27:19 +0000</bug_when>
    <thetext>Patch set V2 has been submitted to OE-core list:
http://lists.openembedded.org/pipermail/bitbake-devel/2017-February/008455.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71263</commentid>
    <comment_count>7</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-03-14 17:45:44 +0000</bug_when>
    <thetext>Moving the target to 2.4 M1 as the patch was not merged on 2.3 M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74358</commentid>
    <comment_count>8</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-06-19 23:54:32 +0000</bug_when>
    <thetext>Moving the target to 2.4 M2 as the patch was not merged on 2.4 M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74685</commentid>
    <comment_count>9</comment_count>
    <who name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</who>
    <bug_when>2017-06-30 17:07:53 +0000</bug_when>
    <thetext>Patchset V4 (http://lists.openembedded.org/pipermail/bitbake-devel/2017-May/008678.html) hes been merged to master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77438</commentid>
    <comment_count>10</comment_count>
    <who name="oscar lopez arandas">oscarx.lopez.arandas</who>
    <bug_when>2017-10-06 19:27:55 +0000</bug_when>
    <thetext>the verified bitbake-selftest in commit:
 bd063fa288b49b6e3ea77982d0ccc46610feb1ad
ubuntu16.04

STEPS:
1- $ clone poky
2- $ cd poky
3- $ git checkout bd063fa288b49b6e3ea77982d0ccc46610feb1ad
4- $ source oe-init-build-env
5- $ bitbake-selftest

 All test cases are executed and no errors are reported.

note:
log in attchanment</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77439</commentid>
    <comment_count>11</comment_count>
      <attachid>4062</attachid>
    <who name="oscar lopez arandas">oscarx.lopez.arandas</who>
    <bug_when>2017-10-06 19:28:49 +0000</bug_when>
    <thetext>Created attachment 4062
log</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4062</attachid>
            <date>2017-10-06 19:28:49 +0000</date>
            <delta_ts>2017-10-06 19:28:49 +0000</delta_ts>
            <desc>log</desc>
            <filename>bug_10368.selftes</filename>
            <type>application/octet-stream</type>
            <size>975</size>
            <attacher name="oscar lopez arandas">oscarx.lopez.arandas</attacher>
            
              <data encoding="base64">b3NjYXJsMXhAeWN0YjAzOn4vMTU2NT4gZ2l0IGNoZWNrb3V0IGJkMDYzZmEyODhiNDliNmUzZWE3
Nzk4MmQwY2NjNDY2MTBmZWIxYWQKUHJldmlvdXMgSEVBRCBwb3NpdGlvbiB3YXMgNTkyYzM0NDk2
OS4uLiBwb2t5OiBTZXQgdmVyc2lvbi9jb2RlbmFtZSBmb3IgMi40L3JvY2tvCkhFQUQgaXMgbm93
IGF0IGJkMDYzZmEyODguLi4gdHVuZS1taXBzMzIqLmluYzogdXNlIGNvbnNpc3RlbnQgY29tbWVu
dHMgYWNyb3NzIGFsbCB0aHJlZSAuaW5jIGZpbGV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