<?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>9448</bug_id>
          
          <creation_ts>2016-04-12 16:10:28 +0000</creation_ts>
          <short_desc>Add mechanism for running image level QA checks</short_desc>
          <delta_ts>2016-07-20 13:43:34 +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>OE-Core</product>
          <component>core</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>enhancement</bug_severity>
          <target_milestone>2.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61097</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-12 16:10:28 +0000</bug_when>
    <thetext>The Ostro project are implementing various image QA/sanity checks as postfuncs on do_image. 

We&apos;d like to make use of similar functionality in meta-swupd to test for known possible issues when constructing images in a swupd-based OS (i.e. the issue in https://bugzilla.yoctoproject.org/show_bug.cgi?id=9320)

It would be useful to support an extension mechanism in OE-Core where we can define various methods which sanity-check a constructed image and have them all run before failing the task and reporting any issues to the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61180</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-13 21:10:05 +0000</bug_when>
    <thetext>We added an implementation of this to meta-swupd in order to provide a sanity check for an easily produced problem when developing swupd-based OS.

See https://bugzilla.yoctoproject.org/show_bug.cgi?id=9320 and http://git.yoctoproject.org/cgit/cgit.cgi/meta-swupd/commit/?id=9ffc69b4954f9fb21b9572a0599f685242a941d9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62704</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-06-07 14:52:18 +0000</bug_when>
    <thetext>Patch submitted:

http://lists.openembedded.org/pipermail/openembedded-core/2016-June/122578.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62729</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-06-07 21:45:16 +0000</bug_when>
    <thetext>Chris Larson rightly pointed out that the proposed patch doesn&apos;t allow for shell check functions (as well as abusing a Python exception class).

http://lists.openembedded.org/pipermail/openembedded-core/2016-June/122579.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63733</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-07 15:32:32 +0000</bug_when>
    <thetext>Working on a revised solution which uses the bb.build.FuncFailed exception, as raised when bitbake functions fail, along with a subclass of the same which adds an extra field for more detailed error messages when implementing a python image QA function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63975</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-07-14 13:45:58 +0000</bug_when>
    <thetext>v2 patch submitted: http://lists.openembedded.org/pipermail/openembedded-core/2016-July/123884.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64227</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-20 13:43:34 +0000</bug_when>
    <thetext>Fixed in oe-core c9bef2ecf1a30159d11781184829f41844a58c13.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>