<?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>10636</bug_id>
          
          <creation_ts>2016-11-09 15:15:00 +0000</creation_ts>
          <short_desc>Improved image testing by extending automated QA tests</short_desc>
          <delta_ts>2025-02-06 16:21:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>bluelightning</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>68191</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-11-09 15:15:00 +0000</bug_when>
    <thetext>We need to improve our automated image QA, for example checking that /run is mounted and read/write even if / is read-only.  Assigning to Jussi for further exploratory research and scoping.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68394</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-11-17 10:10:25 +0000</bug_when>
    <thetext>I&apos;ve looked at the infrastructure and it seems everything needed is there already: this bug is just about defining the things to test for and writing the tests -- this seems fairly straight forward so far. 

I expect there to be two types of tests:
1. file based rootfs tests: See that a specific files exists on rootfs and have the content and permissions we expect
2. runtime tests: same but for files that are only available at runtime

Type 1 could be tested with just the rootfs temporarily mounted somewhere, while type 2 requires starting qemu: need to check if having two separate types is useful or if just doing everything over qemu works fine. 


I&apos;ve not really scoped out the specific tests yet, but some quick ideas:
 - is &quot;/&quot; read-only when expected? (maybe check a few directories under root?)
 - is &quot;/run&quot; mounted?
 - is &quot;/run&quot; read-write?
 - is &quot;/var/volatile&quot; read-write ?
 - permissions sanity checks for key directories/files?


Related: do we make sure that packages don&apos;t install things to /var/run  or /run ? I know I saw people making this mistake in fedora and debian packages a few years ago...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68405</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-17 15:49:36 +0000</bug_when>
    <thetext>quick question, is this a bug that will require QA to run these tests regularly? I assume yes so I&apos;d add them to the loop. Pending confirmation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68407</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-11-17 15:53:50 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; quick question, is this a bug that will require QA to run these tests
&gt; regularly? I assume yes so I&apos;d add them to the loop. Pending confirmation.

These would be part of the sanity tests that run on the autobuilder. QA work should not be required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76721</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-09-11 16:18:12 +0000</bug_when>
    <thetext>Reassigning Jussi&apos;s bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100869</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-06 16:21:11 +0000</bug_when>
    <thetext>We need to define what these tests should be, then it can go back to a NEWCOMER.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>