<?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>10996</bug_id>
          
          <creation_ts>2017-01-31 18:00:16 +0000</creation_ts>
          <short_desc>test_ccache_tool taking too long on main AB</short_desc>
          <delta_ts>2017-08-03 14:24:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.3</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.4 M3</target_milestone>
          <dependson>11417</dependson>
          <blocked>10874</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>jku</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>mhalstead</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>70297</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-31 18:00:16 +0000</bug_when>
    <thetext>Comparing to a local AB, the selftest test_ccache_tool on the buildtools test case is taking a considerably amount of time to finish it. There are some numbers comparing main versus local

MAIN AB (columns are oe-selftest-build-id/time-in-seconds/testcase testname)

811.log  767.565 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool
807.log 1989.198 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool

LOCAL AB (the same columns as above)

oe-selftest-build-id/time-in-seconds/testcase testname

301.log 211.906 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool
312.log 108.776 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool
300.log  93.018 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70299</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-01-31 18:03:29 +0000</bug_when>
    <thetext>Which worker/host OS are the main AB runs on? Both are slower than the local AB, are they different OS workers? Or is there variance in the results for the same host OS?

For completeness, which host OS are the local AB using? Are all results for the same host OS?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70300</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-31 18:14:31 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Which worker/host OS are the main AB runs on?

312   HOSTNAME=opensuse132
301   HOSTNAME=centos7
300   HOSTNAME=fedora24

For the rest of the questions, Anibal is the person to answer these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70301</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-31 18:22:48 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Which worker/host OS are the main AB runs on?
&gt; 
&gt; 312   HOSTNAME=opensuse132
&gt; 301   HOSTNAME=centos7
&gt; 300   HOSTNAME=fedora24
&gt; 
&gt; For the rest of the questions, Anibal is the person to answer these.

Hit Save changes too fast!

There are the host names for the main AB

811   HOSTNAME=centos7.osl.yoctoproject.org
807   HOSTNAME=opensuse132


So comparing apple with apples

opensuse (807 versus 312)

807.log 1989.198 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool
312.log  108.776 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool

and centos (811 versus 301)

811.log  767.565 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool
301.log  211.906 oeqa.selftest.buildoptions.ImageOptionsTests test_ccache_tool</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70302</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-01-31 19:27:55 +0000</bug_when>
    <thetext>Can you share the hardware profile of your local autobuilder?

The main production autobuilder cluster is using fairly old components.

Intel(R) Xeon(R) CPU X5690 x2
64GiB DDR3-1200
PERC 6p / 6 disks RAID-10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70351</commentid>
    <comment_count>5</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-02-01 21:51:37 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Can you share the hardware profile of your local autobuilder?
&gt; 
&gt; The main production autobuilder cluster is using fairly old components.
&gt; 
&gt; Intel(R) Xeon(R) CPU X5690 x2
&gt; 64GiB DDR3-1200
&gt; PERC 6p / 6 disks RAID-10

There are VM&apos;s upon physical machine&apos;s,

Centos7/Fedora24: 14 cores attached of Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz, 32 GiB RAM assigned, 1 TB disk using file

Opensuse132: 16 cores attached of Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz, 32 GiB RAM assigned, 1 TB disk using file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70352</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-02-01 22:20:01 +0000</bug_when>
    <thetext>Thank you. That info is helpful. A quick glance indicates that while those CPUs are newer they aren&apos;t that much more capable.

I&apos;m not very familiar with test_ccache_tool. Can you provide an easy way to run just this test on an existing build so I can collect more stats?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70353</commentid>
    <comment_count>7</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-01 22:42:00 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Thank you. That info is helpful. A quick glance indicates that while those
&gt; CPUs are newer they aren&apos;t that much more capable.
&gt; 
&gt; I&apos;m not very familiar with test_ccache_tool. Can you provide an easy way to
&gt; run just this test on an existing build so I can collect more stats?

* clone poky
* prepare the build env
* run (with time cmd as prefix) the following test with oe-selftest

$ time oe-selftest -r buildoptions.ImageOptionsTests test_ccache_tool
 

this test builds ccache-native then uses it for building m4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70354</commentid>
    <comment_count>8</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-01 22:42:45 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; Thank you. That info is helpful. A quick glance indicates that while those
&gt; &gt; CPUs are newer they aren&apos;t that much more capable.
&gt; &gt; 
&gt; &gt; I&apos;m not very familiar with test_ccache_tool. Can you provide an easy way to
&gt; &gt; run just this test on an existing build so I can collect more stats?
&gt; 
&gt; * clone poky
&gt; * prepare the build env
&gt; * run (with time cmd as prefix) the following test with oe-selftest
&gt; 
&gt; $ time oe-selftest -r buildoptions.ImageOptionsTests test_ccache_tool
&gt;  
&gt; 
&gt; this test builds ccache-native then uses it for building m4.

Sorry for the spam, but the correct command is

$ time oe-selftest -r buildoptions.ImageOptionsTests.test_ccache_tool</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70369</commentid>
    <comment_count>9</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-02-02 15:51:57 +0000</bug_when>
    <thetext>Out of interest have we run the test on both GDC and public builders outside of the main build cycle (i.e. just using the command Leo pasted)?

I wonder if the environment we use on the public AB is affecting the workload?

Have we checked whether the ccache directory exists or not on each host? i.e. is the GDC builder faster because it has a ccache of objects to use?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70389</commentid>
    <comment_count>10</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-02 16:37:33 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Out of interest have we run the test on both GDC and public builders outside
&gt; of the main build cycle (i.e. just using the command Leo pasted)?
&gt; 

I forced a build inside GDC, so I believe this counts as out of the build cycle.

&gt; I wonder if the environment we use on the public AB is affecting the
&gt; workload?

Right, local build have less load.

&gt; 
&gt; Have we checked whether the ccache directory exists or not on each host?
&gt; i.e. is the GDC builder faster because it has a ccache of objects to use?

I will check that.

In this area, comparing the autoconf steps, GDC does **not** have the following env variables (and main AB does)

-CCACHE_CPP2
-CCACHE_HASHDIR

I did a test on my local host, including these into the BB WHITELIST, and times did not change much, so apparently this is not affecting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70405</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-02-02 21:14:45 +0000</bug_when>
    <thetext>For reference the hardware at autobuilder.yocto.io is as follows.

Intel(R) Xeon(R) CPU E5-2697 v3 x2
128GiB DDR4-2133
LSI-3108 8 disks in RAID-10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70407</commentid>
    <comment_count>12</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-02 22:44:06 +0000</bug_when>
    <thetext>These are the times (real times obtained by the command &apos;time&apos;) when running the test 4 times in local (GDC) builders

4 matches for &quot;real&quot; in buffer: centos7
     15:real	21m33.360s
     36:real	1m40.560s
     56:real	1m42.464s
     76:real	1m38.078s

4 matches for &quot;real&quot; in buffer: opensuse132
     15:real	35m39.357s
     36:real	1m5.036s
     56:real	1m6.491s
     75:real	1m4.384s

so for test n&gt;1, opensuse beats centos by half a minute. Again, none of the builders have ccache installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70409</commentid>
    <comment_count>13</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-02 22:59:13 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; These are the times (real times obtained by the command &apos;time&apos;) when running
&gt; the test 4 times in local (GDC) builders
&gt; 
&gt; 4 matches for &quot;real&quot; in buffer: centos7
&gt;      15:real	21m33.360s
&gt;      36:real	1m40.560s
&gt;      56:real	1m42.464s
&gt;      76:real	1m38.078s
&gt; 
&gt; 4 matches for &quot;real&quot; in buffer: opensuse132
&gt;      15:real	35m39.357s
&gt;      36:real	1m5.036s
&gt;      56:real	1m6.491s
&gt;      75:real	1m4.384s
&gt; 
&gt; so for test n&gt;1, opensuse beats centos by half a minute. Again, none of the
&gt; builders have ccache installed.

I forgot to include the times provided by the unittest module, similar to the time command but in seconds

8 matches for &quot;OK&quot; in buffer: centos7
      3:2017-02-02 14:37:25 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (1268.120s)
     24:2017-02-02 15:08:31 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (89.299s)
     44:2017-02-02 15:12:42 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (91.301s)
     64:2017-02-02 15:14:59 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (88.135s)

8 matches for &quot;OK&quot; in buffer: opensuse132
      3:2017-02-02 13:16:24 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (2118.245s)
     24:2017-02-02 13:55:26 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (57.971s)
     44:2017-02-02 13:57:47 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (59.024s)
     63:2017-02-02 14:00:05 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (57.413s)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70592</commentid>
    <comment_count>14</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-09 16:27:53 +0000</bug_when>
    <thetext>Joshua, in case you have some time, could you execute the oe-selftest command on the main AB server? I tried access them without success so I need your help on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70663</commentid>
    <comment_count>15</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-02-13 16:41:51 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; Joshua, in case you have some time, could you execute the oe-selftest
&gt; command on the main AB server? I tried access them without success so I need
&gt; your help on this.

I did 3 runs on Fedora 24 in a clean build directory with shared state and download mirrors configured.

$ time oe-selftest -r buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-13 16:07:13,892 - selftest - INFO - Running bitbake -e to get BBPATH
2017-02-13 16:07:15,335 - selftest - INFO - Checking that everything is in order before running the tests
2017-02-13 16:07:16,635 - selftest - WARNING - meta-selftest layer not found in BBLAYERS, adding it
2017-02-13 16:07:20,397 - selftest - INFO - Running bitbake -p
2017-02-13 16:07:37,586 - selftest - INFO - Loading tests from: oeqa.selftest.buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-13 16:07:37,608 - selftest - INFO - Adding: &quot;include selftest.inc&quot; in local.conf
2017-02-13 16:07:37,608 - selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf

Running tests...
----------------------------------------------------------------------
2017-02-13 16:07:37 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (798.632s)

----------------------------------------------------------------------
Ran 1 test in 798.633s

OK

Generating XML reports...
2017-02-13 16:20:56,242 - selftest - INFO - Finished
2017-02-13 16:20:56,257 - selftest - INFO - Removing the include from local.conf
2017-02-13 16:20:56,258 - selftest - INFO - Removing the include from bblayers.conf

real	13m43.046s
user	92m56.140s
sys	12m51.515s

---

$ time oe-selftest -r buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-13 16:29:15,968 - selftest - INFO - Running bitbake -e to get BBPATH
2017-02-13 16:29:17,344 - selftest - INFO - Checking that everything is in order before running the tests
2017-02-13 16:29:20,100 - selftest - INFO - Running bitbake -p
2017-02-13 16:29:23,892 - selftest - INFO - Loading tests from: oeqa.selftest.buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-13 16:29:23,931 - selftest - INFO - Adding: &quot;include selftest.inc&quot; in local.conf
2017-02-13 16:29:23,931 - selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf

Running tests...
----------------------------------------------------------------------
2017-02-13 16:29:23 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (62.654s)

----------------------------------------------------------------------
Ran 1 test in 62.655s

OK

Generating XML reports...
2017-02-13 16:30:26,587 - selftest - INFO - Finished
2017-02-13 16:30:26,588 - selftest - INFO - Removing the include from local.conf
2017-02-13 16:30:26,588 - selftest - INFO - Removing the include from bblayers.conf

real	1m11.167s
user	1m7.390s
sys	0m12.196s

---

$ time oe-selftest -r buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-13 16:37:24,552 - selftest - INFO - Running bitbake -e to get BBPATH
2017-02-13 16:37:25,903 - selftest - INFO - Checking that everything is in order before running the tests
2017-02-13 16:37:28,639 - selftest - INFO - Running bitbake -p
2017-02-13 16:37:32,470 - selftest - INFO - Loading tests from: oeqa.selftest.buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-13 16:37:32,472 - selftest - INFO - Adding: &quot;include selftest.inc&quot; in local.conf
2017-02-13 16:37:32,472 - selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf

Running tests...
----------------------------------------------------------------------
2017-02-13 16:37:32 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (62.656s)

----------------------------------------------------------------------
Ran 1 test in 62.657s

OK

Generating XML reports...
2017-02-13 16:38:35,130 - selftest - INFO - Finished
2017-02-13 16:38:35,130 - selftest - INFO - Removing the include from local.conf
2017-02-13 16:38:35,131 - selftest - INFO - Removing the include from bblayers.conf

real	1m11.021s
user	1m7.357s
sys	0m12.284s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70665</commentid>
    <comment_count>16</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-13 17:11:42 +0000</bug_when>
    <thetext>(In reply to comment #15)
&gt; (In reply to comment #14)
&gt; &gt; Joshua, in case you have some time, could you execute the oe-selftest
&gt; &gt; command on the main AB server? I tried access them without success so I need
&gt; &gt; your help on this.
&gt; 
&gt; I did 3 runs on Fedora 24 in a clean build directory with shared state and
&gt; download mirrors configured.


Can you run the same tests on either an opensuse or centos worker?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70685</commentid>
    <comment_count>17</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-02-14 15:21:23 +0000</bug_when>
    <thetext>3 runs on openSUSE 13.2 in a clean build directory with shared state and download mirrors configured.

---

$ time oe-selftest -r buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-14 14:30:29,761 - selftest - INFO - Running bitbake -e to get BBPATH
2017-02-14 14:30:32,320 - selftest - INFO - Checking that everything is in order before running the tests
2017-02-14 14:30:34,206 - selftest - WARNING - meta-selftest layer not found in BBLAYERS, adding it
2017-02-14 14:30:40,134 - selftest - INFO - Running bitbake -p
2017-02-14 14:31:07,368 - selftest - INFO - Loading tests from: oeqa.selftest.buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-14 14:31:07,378 - selftest - INFO - Adding: &quot;include selftest.inc&quot; in local.conf
2017-02-14 14:31:07,379 - selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf

Running tests...
----------------------------------------------------------------------



2017-02-14 14:31:07 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (1155.134s)

----------------------------------------------------------------------
Ran 1 test in 1155.136s

OK

Generating XML reports...
2017-02-14 14:50:22,517 - selftest - INFO - Finished
2017-02-14 14:50:22,517 - selftest - INFO - Removing the include from local.conf
2017-02-14 14:50:22,518 - selftest - INFO - Removing the include from bblayers.conf

real	19m54.552s
user	104m30.496s
sys	11m1.792s

---

$ time oe-selftest -r buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-14 15:12:22,897 - selftest - INFO - Running bitbake -e to get BBPATH
2017-02-14 15:12:24,885 - selftest - INFO - Checking that everything is in order before running the tests
2017-02-14 15:12:28,851 - selftest - INFO - Running bitbake -p
2017-02-14 15:12:34,268 - selftest - INFO - Loading tests from: oeqa.selftest.buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-14 15:12:34,271 - selftest - INFO - Adding: &quot;include selftest.inc&quot; in local.conf
2017-02-14 15:12:34,271 - selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf

Running tests...
----------------------------------------------------------------------
2017-02-14 15:12:34 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (93.254s)

----------------------------------------------------------------------
Ran 1 test in 93.256s

OK

Generating XML reports...
2017-02-14 15:14:07,528 - selftest - INFO - Finished
2017-02-14 15:14:07,529 - selftest - INFO - Removing the include from local.conf
2017-02-14 15:14:07,530 - selftest - INFO - Removing the include from bblayers.conf

real	1m45.331s
user	1m40.632s
sys	0m12.056s

---

$ time oe-selftest -r buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-14 15:17:52,831 - selftest - INFO - Running bitbake -e to get BBPATH
2017-02-14 15:17:54,837 - selftest - INFO - Checking that everything is in order before running the tests
2017-02-14 15:17:58,844 - selftest - INFO - Running bitbake -p
2017-02-14 15:18:04,302 - selftest - INFO - Loading tests from: oeqa.selftest.buildoptions.ImageOptionsTests.test_ccache_tool
2017-02-14 15:18:04,304 - selftest - INFO - Adding: &quot;include selftest.inc&quot; in local.conf
2017-02-14 15:18:04,305 - selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf

Running tests...
----------------------------------------------------------------------
2017-02-14 15:18:04 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (94.227s)

----------------------------------------------------------------------
Ran 1 test in 94.228s

OK

Generating XML reports...
2017-02-14 15:19:38,534 - selftest - INFO - Finished
2017-02-14 15:19:38,534 - selftest - INFO - Removing the include from local.conf
2017-02-14 15:19:38,535 - selftest - INFO - Removing the include from bblayers.conf

real	1m46.388s
user	1m41.212s
sys	0m12.528s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70686</commentid>
    <comment_count>18</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-14 15:46:25 +0000</bug_when>
    <thetext>(In reply to comment #17)
&gt; 3 runs on openSUSE 13.2 in a clean build directory with shared state and
&gt; download mirrors configured.
&gt; 

Thanks Joshua.

So, stand-alone tests have expected times but in the context of --run-all-tests, there is something more going on that increases the times. In the other hand, there have been some changes on meta/lib/oeqa/selftest files that may give lower results, so I will check recent AB logs before proceeding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70804</commentid>
    <comment_count>19</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-02-17 14:13:46 +0000</bug_when>
    <thetext>Leo, what&apos;s the status on this issue?

It&apos;s currently assigned to me, should we reassign to you as you&apos;re doing the investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70812</commentid>
    <comment_count>20</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-17 14:44:19 +0000</bug_when>
    <thetext>(In reply to comment #19)
&gt; Leo, what&apos;s the status on this issue?
&gt; 
&gt; It&apos;s currently assigned to me, should we reassign to you as you&apos;re doing the
&gt; investigation.

Yes, assign it to me please, I will keep on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71683</commentid>
    <comment_count>21</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-03-24 09:36:33 +0000</bug_when>
    <thetext>This is still and issue with test_ccache_tool routinely taking 10 minutes (4% of the whole selftest runtime).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71694</commentid>
    <comment_count>22</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-03-24 14:11:11 +0000</bug_when>
    <thetext>(In reply to comment #21)
&gt; This is still and issue with test_ccache_tool routinely taking 10 minutes
&gt; (4% of the whole selftest runtime).

Right. Apparently the oe-selftest environment is affecting the test because standalone tests have much lower times as showed above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72396</commentid>
    <comment_count>23</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-12 17:58:06 +0000</bug_when>
    <thetext>(In reply to comment #21)
&gt; This is still and issue with test_ccache_tool routinely taking 10 minutes
&gt; (4% of the whole selftest runtime).

Just did a query on this:

curl -s https://autobuilder.yoctoproject.org/main/builders/nightly-oe-selftest/builds/870/steps/Running%20oe-selftest/logs/stdio/text | grep test_ccache_tool
2017-04-11 22:52:44 -   test_ccache_tool (oeqa.selftest.buildoptions.ImageOptionsTests) ... OK (3078.308s)


so 30378s/60s=51minutes so almost an hour to complete!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72860</commentid>
    <comment_count>24</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-26 14:54:07 +0000</bug_when>
    <thetext>The unit test introduces the INHERIT += &quot;ccache&quot; thus invalidating checksums or most (all?) recipes depending on m4 (after INHERIT, bitbake -c compile -f m4 is done), thus this is the reason of such long times observed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73884</commentid>
    <comment_count>25</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-08 13:53:04 +0000</bug_when>
    <thetext>Dependency is targeted for M2 so setting M3 for this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75611</commentid>
    <comment_count>26</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-08-03 14:24:28 +0000</bug_when>
    <thetext>Two AB filed with and without Ross patches and these confirm the fix

without Ross set of patches (poky commit 8839ed1620c80f3c4a806c096e97d25c68d6d64e)

  2017-08-02 15:08:16,004 - oe-selftest - INFO -   test_ccache_tool 
  (buildoptions.ImageOptionsTests) ... OK (1138.259s)

with Ross set of patches (poky  commit 173760abc66580e21b36eac3a591847e0d3e91f4)

  2017-08-02 14:36:04,415 - oe-selftest - INFO -   test_ccache_tool ( 
 buildoptions.ImageOptionsTests) ... OK (101.112s)

so ~ 10x speed-up. Just one minor detail: both builds were done on separate machines with similar HW but different OS; a better test would be on a single machine.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>