<?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>16262</bug_id>
          
          <creation_ts>2026-04-23 07:46:54 +0000</creation_ts>
          <short_desc>AB-INT: indexing is sometimes too long (Couldn&apos;t obtain the lock)</short_desc>
          <delta_ts>2026-09-06 16:13:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>mhalstead</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</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>105198</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-23 07:46:54 +0000</bug_when>
    <thetext>We recently saw some indexing jobs failing with:

Couldn&apos;t obtain the lock /srv/autobuilder/valkyrie.yocto.io/pub/non-release/indexing.lock: [Errno 11] Resource temporarily unavailable

This is probably because the job before was still running. Looking at all indexing jobs on the autobuilder, we can see some builds are way longer than others. Typical time is about 2 minutes, but some jobs take more than 20 minutes.

As an example, builds 52730 and 52731 failed, because of build 52729.

52729	38:33
52730	24:14
52731	9:03</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105202</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-23 07:52:45 +0000</bug_when>
    <thetext>indexing opensuse160-vk-1 master completed at 2026-04-22 11:09:14+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/52730/steps/12/logs/stdio

indexing fedora43-vk-2 master completed at 2026-04-22 11:09:03+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/52731/steps/12/logs/stdio

indexing debian13-vk-2 master completed at 2026-04-22 17:02:18+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/52754/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105220</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-23 14:51:16 +0000</bug_when>
    <thetext>Slow runs may be due to NFS but that&apos;s a guess.
Can we fix the slow runs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105223</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-04-23 14:58:48 +0000</bug_when>
    <thetext>Looking at https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/52729:

Generate non-release index: 26m
Extract ptest logs: 7m
Populate dashboard: 16s

The lockfile is obtained and released in the &quot;Generate non-release index&quot; task, which is actually y-a-h/scripts/generate-testresult-index.py.

That script does just iterate a lot of files so possibly this is &quot;just&quot; the NFS server struggling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105246</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-23 17:53:14 +0000</bug_when>
    <thetext>We do generate lots of logs such as:

https://valkyrie.yocto.io/pub/non-release/20260422-99/testresults/qemux86/intermittent_failure_host_data/
and I&apos;m sure more from ptests, etc.

Michael, if you collect the FS usage (du -options | zstd &gt; du-log.zst  ? )
during maintenance for whatever dir is behind: https://valkyrie.yocto.io/pub/non-release/

I don&apos;t want to do it while there are builds running.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105288</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2026-04-29 00:17:57 +0000</bug_when>
    <thetext>We are starting with 719G total in pub/non-release. I can start collecting and logging regularly and add additional detail as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105447</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-05-14 15:28:23 +0000</bug_when>
    <thetext>We have done some cleanup on the NAS so that there are less files in the directories indexing is traversing, we haven&apos;t seen this recur so we can go ahead and close for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106151</commentid>
    <comment_count>7</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-07-10 13:39:31 +0000</bug_when>
    <thetext>indexing debian12-vk-4 master completed at 2026-07-09 21:17:06+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/60107/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106495</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-11 14:54:48 +0000</bug_when>
    <thetext>indexing debian11-vk-1 master completed at 2026-08-10 18:46:42+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/63106/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106743</commentid>
    <comment_count>9</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-09-06 16:13:16 +0000</bug_when>
    <thetext>indexing ubuntu2510-vk-1 master completed at 2026-09-04 19:23:04+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/104/builds/65423/steps/14/logs/stdio</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>