<?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>15569</bug_id>
          
          <creation_ts>2024-08-05 11:56:57 +0000</creation_ts>
          <short_desc>Add janitor support for handling failed builds</short_desc>
          <delta_ts>2026-04-02 15:10:55 +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>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>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>mhalstead</cc>
    
    <cc>pidge</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>99491</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-08-05 11:56:57 +0000</bug_when>
    <thetext>I&apos;ve changed the code in autobuilder2:

https://git.yoctoproject.org/yocto-autobuilder2/commit/?id=d809e29a23d5614d8873c3f5f1fb7293da96cdd0

which increases the space limit from 100G to 200G. I also added
monitoring to /tmp since that caused a lot of build issues in a recent
failure.

This will help but I think we need to improve the janitor to clean up
failed builds. I&apos;m thinking of something like a queuing system so any
build failure gets put into the queue and anything older gets deleted
as soon as the system is under disk pressure?

This would solve the issue that:

* builds the rerun on the same worker destroy failed data immediately
* older builds can build up and clog systems

It would also make it easy to put a policy in place:

* to immediately delete reproducible fails (for exmaple)
* to delete builds when space drops to a threshold

Help with this would be very welcome.

Ideally we&apos;d have a way via a UI to mark failed builds as not wanted
but I&apos;m not sure how to do right now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99517</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-08-08 14:33:51 +0000</bug_when>
    <thetext>Likely got to be done in 5.2...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100799</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-30 16:06:38 +0000</bug_when>
    <thetext>Bulk move to 5.2-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100814</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-30 16:17:04 +0000</bug_when>
    <thetext>Bulk move to 5.2-M3 and this time I&apos;ll actually specify M3!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104908</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-01 18:33:58 +0000</bug_when>
    <thetext>I doubt this has been done but leaving for bug review team to schedule.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>