<?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>10827</bug_id>
          
          <creation_ts>2016-12-20 14:33:08 +0000</creation_ts>
          <short_desc>Run oe-selftest -r wic for every patch coming to openembedded-core, poky and bitbake-devel lists</short_desc>
          <delta_ts>2024-10-21 18:09:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest Testsuite</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>LET </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ed Bartosh">eduard.bartosh</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69226</commentid>
    <comment_count>0</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-12-20 14:33:08 +0000</bug_when>
    <thetext>This is a follow-up bug for bug 10620, which was closed as duplicate.

The idea is to setup patchtest to test every patch coming to the set of mailling lists by running set of tests and send feedback to the maintainer.

As a maintainer of oe image creator(wic) I&apos;d like to run selftest --coverage -r wic and get notified if any test or test coverage regression happens.

This would allow me to react on potential breakage of wic codebase much faster than I can I&apos;m currently able to do.

Wic test run currently takes around 20 minutes, which is hopefully enough to test every patch.

If this setup will work we can test other software components similar way, which would be a great first step towards working continuous integration for the project.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69350</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-12-22 21:43:31 +0000</bug_when>
    <thetext>With the great help from Leo I can now use patchtest to run &apos;oe-selftest -r wic&apos; this way:

./patchtest/patchtest --repo-dir ./openembedded-core/ --start-dir ./patchtest-oe/tests mbox-4508 -p &apos;*selftest*&apos; -j
{&quot;status&quot;: &quot;FAIL&quot;, &quot;results&quot;: {&quot;issue&quot;: &quot;The script oe-selftest fail running wic&quot;, &quot;fix&quot;: &quot;Make sure you run cd /home/ed/git/yocto/patchtest/openembedded-core; . /home/ed/git/yocto/patchtest/openembedded-core/oe-init-build-env;oe-selftest -r wic on top of your series&quot;, &quot;data&quot;: [[&quot;Command&quot;, &quot;cd /home/ed/git/yocto/patchtest/openembedded-core; . /home/ed/git/yocto/patchtest/openembedded-core/oe-init-build-env;oe-selftest -r wic&quot;], [&quot;Code&quot;, 1]], &quot;id&quot;: &quot;test_oeselftest.OESelfTest.test_wic&quot;}}
----------------------------------------------------------------------
Ran 1 test in 159.105s

OK


However, it hides the output of the command, so it&apos;s quite hard for me as a maintainer to understand why test fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69351</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-12-22 21:45:52 +0000</bug_when>
    <thetext>I&apos;d also like to see which patch series is under tests. And I&apos;d like to have all this info sent to me by e-mail when test failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69379</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-12-24 02:04:13 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; With the great help from Leo I can now use patchtest to run &apos;oe-selftest -r
&gt; wic&apos; this way:
&gt; 
&gt; ./patchtest/patchtest --repo-dir ./openembedded-core/ --start-dir
&gt; ./patchtest-oe/tests mbox-4508 -p &apos;*selftest*&apos; -j
&gt; {&quot;status&quot;: &quot;FAIL&quot;, &quot;results&quot;: {&quot;issue&quot;: &quot;The script oe-selftest fail running
&gt; wic&quot;, &quot;fix&quot;: &quot;Make sure you run cd
&gt; /home/ed/git/yocto/patchtest/openembedded-core; .
&gt; /home/ed/git/yocto/patchtest/openembedded-core/oe-init-build-env;oe-selftest
&gt; -r wic on top of your series&quot;, &quot;data&quot;: [[&quot;Command&quot;, &quot;cd
&gt; /home/ed/git/yocto/patchtest/openembedded-core; .
&gt; /home/ed/git/yocto/patchtest/openembedded-core/oe-init-build-env;oe-selftest
&gt; -r wic&quot;], [&quot;Code&quot;, 1]], &quot;id&quot;: &quot;test_oeselftest.OESelfTest.test_wic&quot;}}
&gt; ----------------------------------------------------------------------
&gt; Ran 1 test in 159.105s
&gt; 
&gt; OK
&gt; 
&gt; 
&gt; However, it hides the output of the command, so it&apos;s quite hard for me as a
&gt; maintainer to understand why test fails.

I will provide a wic  branch under the patchtest-oe so we can start from that. I will include more oe-selftest logging in case of failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69380</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-12-24 02:07:14 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;d also like to see which patch series is under tests. And I&apos;d like to have
&gt; all this info sent to me by e-mail when test failed.

This part is being documented and once tested, I will place the info inside the patchtest repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69400</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-12-28 19:59:49 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; With the great help from Leo I can now use patchtest to run &apos;oe-selftest -r
&gt; wic&apos; this way:
&gt; 
&gt; ./patchtest/patchtest --repo-dir ./openembedded-core/ --start-dir
&gt; ./patchtest-oe/tests mbox-4508 -p &apos;*selftest*&apos; -j
&gt; {&quot;status&quot;: &quot;FAIL&quot;, &quot;results&quot;: {&quot;issue&quot;: &quot;The script oe-selftest fail running
&gt; wic&quot;, &quot;fix&quot;: &quot;Make sure you run cd
&gt; /home/ed/git/yocto/patchtest/openembedded-core; .
&gt; /home/ed/git/yocto/patchtest/openembedded-core/oe-init-build-env;oe-selftest
&gt; -r wic on top of your series&quot;, &quot;data&quot;: [[&quot;Command&quot;, &quot;cd
&gt; /home/ed/git/yocto/patchtest/openembedded-core; .
&gt; /home/ed/git/yocto/patchtest/openembedded-core/oe-init-build-env;oe-selftest
&gt; -r wic&quot;], [&quot;Code&quot;, 1]], &quot;id&quot;: &quot;test_oeselftest.OESelfTest.test_wic&quot;}}
&gt; ----------------------------------------------------------------------
&gt; Ran 1 test in 159.105s
&gt; 
&gt; OK
&gt; 
&gt; 
&gt; However, it hides the output of the command, so it&apos;s quite hard for me as a
&gt; maintainer to understand why test fails.

Ed, can you fetch patchtest-oe and move to the wic branch? I have include those wic tests that have failed, at least more info that before. wic branch wont be merge into master because oe-selftest execution is at this point impossible to run at production.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69401</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-12-28 20:13:20 +0000</bug_when>
    <thetext>Ed

Regarding the title, for the moment the test suite and the automatic testing is focused on oe-core, not other project (like bb or poky). In case you want poky, patches coming any related project (bb, oe-core and poky itself) will fit but several scripts required this change (s/oe-core/poky), including the guest machine and the user needs to do it because the later wont be supported.

In the other hand, documentation has been updated. Take a look and let me know what you think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69431</commentid>
    <comment_count>7</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-01-02 18:53:11 +0000</bug_when>
    <thetext>I used wic branch, but the output is still not enough from my point of view. It doesn&apos;t give any information about the reason of the failure:

(patchtest) openembedded-core (master)&gt; time ../patchtest/patchtest - --repo-dir . --start-dir ../patchtest-oe/tests/ --pattern &apos;*oeselftest*&apos; --json --debug &lt; /tmp/patch 
CMD: git rev-parse --abbrev-ref HEAD RCODE: 0 STDOUT: master STDERR: 
Reading /tmp/tmpiqwhQ8 contents
CMD: git rev-parse --short HEAD RCODE: 0 STDOUT: 425afe2 STDERR: 
CMD: git checkout -b patchtest_9141 425afe2 RCODE: 0 STDOUT:  STDERR: Switched to a new branch &apos;patchtest_9141&apos;
CMD: git apply --check --verbose
Parameters
	Repository     : /home/ed/git/yocto/patchtest/openembedded-core
	Target Commit    : 425afe2
	Target Branch    : master
	Working branch : patchtest_9141
	Patch          : &lt;patchtestpatch.Patch object at 0x7f7fc780b7d0&gt;
Pattern ^FAIL: not found on bitbake output
{&quot;status&quot;: &quot;FAIL&quot;, &quot;results&quot;: {&quot;issue&quot;: &quot;The script oe-selftest fail running wic&quot;, &quot;fix&quot;: &quot;Make sure you run cd /home/ed/git/yocto/patchtest/openembedded-core; . /home/ed/git/yocto/patchtest/openembedded-core/oe-init-build-env;oe-selftest -r wic on top of your series&quot;, &quot;data&quot;: [[&quot;Wic Failures&quot;, &quot;&quot;]], &quot;id&quot;: &quot;test_oeselftest.OESelfTest.test_wic&quot;}}
CMD: git checkout master RCODE: 0 STDOUT: Your branch is up-to-date with &apos;origin/master&apos;. STDERR: Switched to branch &apos;master&apos;
CMD: git branch -D patchtest_9141 RCODE: 0 STDOUT: Deleted branch patchtest_9141 (was 425afe2). STDERR: 
----------------------------------------------------------------------
Ran 1 test in 477.401s

OK

real	7m57.519s
user	5m28.080s
sys	0m25.236s

(patchtest) openembedded-core (master)&gt; git --git-dir ../patchtest-oe/.git branch
  master
* wic</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69585</commentid>
    <comment_count>8</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-06 17:21:43 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; I used wic branch, but the output is still not enough from my point of view.
&gt; It doesn&apos;t give any information about the reason of the failure:

Right. What I provided is a working sample code that can serve as a base for your work on oe-selftest/wic. Feel free to modify it and when something is ready for pushing to upstream, I can review it and merge it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70065</commentid>
    <comment_count>9</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-01-23 23:12:22 +0000</bug_when>
    <thetext>Moving to M3. It requires more time to work on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70909</commentid>
    <comment_count>10</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-02-23 15:56:14 +0000</bug_when>
    <thetext>moving to 2.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99962</commentid>
    <comment_count>11</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-10-21 18:09:53 +0000</bug_when>
    <thetext>I don&apos;t think this issue is still relevant to the current rendition of patchtest. We can reopen it if that changes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>