<?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>14937</bug_id>
          
          <creation_ts>2022-10-14 15:42:59 +0000</creation_ts>
          <short_desc>AB-INT: debuginfod.Debuginfod.test_debuginfod failure</short_desc>
          <delta_ts>2024-05-16 15:15:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>joe.slater</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>steve</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>94177</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-10-14 15:42:59 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/4209/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu1804-ty-3

2022-09-29 22:04:54,677 - oe-selftest - INFO - debuginfod.Debuginfod.test_debuginfod (subunit.RemotedTestCase)
2022-09-29 22:04:54,678 - oe-selftest - INFO -  ... FAIL
2022-09-29 22:04:54,678 - oe-selftest - INFO - 14: 1/18 43/503 (263.98s) (debuginfod.Debuginfod.test_debuginfod)
2022-09-29 22:04:54,678 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/debuginfod.py&quot;, line 53, in test_debuginfod
    self.assertIn(&quot;/.cache/debuginfod_client/&quot;, output)
  File &quot;/usr/lib/python3.6/unittest/case.py&quot;, line 1089, in assertIn
    self.fail(self._formatMessage(msg, standardMsg))
  File &quot;/usr/lib/python3.6/unittest/case.py&quot;, line 670, in fail
    raise self.failureException(msg)
AssertionError: &apos;/.cache/debuginfod_client/&apos; not found in &apos;Server query failed: No such file or directory&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94204</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-10-20 10:31:16 +0000</bug_when>
    <thetext>I was really hoping this was a release branch, but it happened in master. 

Maybe debuginfod is taking too long to startup?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94205</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-10-20 10:32:48 +0000</bug_when>
    <thetext>The debuginfod server:

[Thu 29 Sep 2022 10:04:43 PM GMT] (19923/19929): fts traversed source paths in 0.333763s, scanned=6033, regex-skipped=0
[Thu 29 Sep 2022 10:04:53 PM GMT] (19923/23460): not found
[Thu 29 Sep 2022 10:04:53 PM GMT] (19923/23460): 192.168.7.2:40036 UA:elfutils/0.187,Linux/x86_64,/ XFF: GET /buildid/989e57318bc0367c5347af0cfc116b28329cedd1/debuginfo 404 9 0+276ms

So, no.  The debuginfod had scanned in time before the request arrived.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94300</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-10-27 19:58:22 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/4203/steps/14/logs/stdio

oe-selftest-fedora fedora36-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94702</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-12 15:47:49 +0000</bug_when>
    <thetext>Fixed in d65729748253eaa640333198ca8aec05946cb9e8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98051</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-01-26 17:03:56 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6348/steps/14/logs/stdio

oe-selftest-centos alma9-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98107</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-02-01 18:25:26 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6348/steps/14/logs/stdio
oe-selftest-centos alma9-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98627</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-03-27 19:10:28 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6567/steps/14/logs/stdio
oe-selftest-centos alma9-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98632</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-03-27 20:43:53 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6564/steps/14/logs/stdio

oe-selftest-centos alma9-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98633</commentid>
    <comment_count>9</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-03-27 20:44:47 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6576/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu2304-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98642</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-03-27 21:50:35 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6524/steps/14/logs/stdio

oe-selftest-centos rocky9-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98648</commentid>
    <comment_count>11</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-03-27 22:27:19 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/5868/steps/15/logs/stdio
oe-selftest-centos alma8-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98703</commentid>
    <comment_count>12</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-04-04 21:25:32 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6581/steps/14/logs/stdio

oe-selftest-centos alma9-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98704</commentid>
    <comment_count>13</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-04-04 21:28:35 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3115/steps/14/logs/stdio

oe-selftest-armhost ubuntu2004-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98705</commentid>
    <comment_count>14</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-04-04 21:29:16 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6587/steps/14/logs/stdio

oe-selftest-centos alma9-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98708</commentid>
    <comment_count>15</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-04-04 21:48:14 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6510/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu2304-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98717</commentid>
    <comment_count>16</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-04-05 17:13:54 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/5913/steps/14/logs/stdio

oe-selftest-centos alma9-ty-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98718</commentid>
    <comment_count>17</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-04-05 17:15:12 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/5917/steps/14/logs/stdio

oe-selftest-centos alma9-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98720</commentid>
    <comment_count>18</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-04-05 21:35:06 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/6424/steps/15/logs/stdio

oe-selftest-centos alma8-ty-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98760</commentid>
    <comment_count>19</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-18 14:43:29 +0000</bug_when>
    <thetext>Ross, Joe has been looking at debuginfod recently so I&apos;ve CCed him on this defect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98976</commentid>
    <comment_count>20</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2024-05-07 21:47:24 +0000</bug_when>
    <thetext>scarthgap:

https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3290
oe-selftest-armhost ubuntu2004-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98981</commentid>
    <comment_count>21</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2024-05-08 20:50:06 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3284/steps/14/logs/stdio
oe-selftest-armhost ubuntu2004-arm-1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98982</commentid>
    <comment_count>22</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-05-09 14:38:19 +0000</bug_when>
    <thetext>Happening frequently so raise to High Importance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98983</commentid>
    <comment_count>23</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-05-09 14:47:12 +0000</bug_when>
    <thetext>In the latest run:

[Sun May  5 01:58:32 2024] (3833224/3833234): fts traversed source paths in 2.73113s, scanned=33924, regex-skipped=0

It shouldn&apos;t have found 34K packages to scan...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98995</commentid>
    <comment_count>24</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-05-10 15:52:40 +0000</bug_when>
    <thetext>So the log in a recent failure said this:

[Sun May  5 01:58:32 2024] (3833224/3833234): fts traversed source paths in 2.73113s, scanned=33924, regex-skipped=0


That means that it did a walk of the feed directory and found 33924 packages to scan. It then timed out waiting for the scan to finish because that is a lot of packages!

This is happening occasionally because it depends on both the scan happening on a slow/loaded machine _and_ the build tree splitting/sharing to have meant that something massive was previously built, and thus populated the feed with lots of files.

The solution would be to create a subset of the package feed for the test case to use, similar to how a subset of the whole feed is used when creating an image.  I have a patch that needs cleaning up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98996</commentid>
    <comment_count>25</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-05-10 15:57:50 +0000</bug_when>
    <thetext>My proof: by adding gtk+3 to the test build we can make the feed explode in size:

[Fri May 10 15:55:29 2024] (1451180/1451190): fts traversed source paths in 0.0454599s, scanned=3537, regex-skipped=0

However for the debuginfo we only care about xz and its dependents, so we can hardlink a new feed:

[Fri May 10 15:56:43 2024] (1490852/1490862): fts traversed source paths in 0.00358932s, scanned=72, regex-skipped=0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99007</commentid>
    <comment_count>26</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-05-14 10:54:43 +0000</bug_when>
    <thetext>Patches on the list (oeqa/selftest/debuginfod: use localpkgfeed to speed server startup).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99022</commentid>
    <comment_count>27</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2024-05-16 15:15:43 +0000</bug_when>
    <thetext>Hopefully fixed in master with 8a04f529f2603acaf4ae72fbeccbd2e4ef862be1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>