<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>252762</bug_id>
          
          <creation_ts>2023-02-22 11:24:50 -0800</creation_ts>
          <short_desc>[WPE][GTK] Allow to configure auto-deleting of coredumps after processing</short_desc>
          <delta_ts>2023-03-14 15:06:30 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=253913</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Alberto Lopez Perez">clopez</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>dpino</cc>
    
    <cc>lmoura</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1935899</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2023-02-22 11:24:50 -0800</bug_when>
    <thetext>On the EWS layout test bots we are enabling core-dumps so we can get backtraces of the tests that crash.

And we have configured a cronjob to automatically clean cores older than 1 hour.

The issue is that sometimes when a patch tested causes too much crashes, due to the work the EWS for WPE and GTK work that repeats each failure 10 times then a lot of coredumps can be generated in a sort space of time. This may end causing the bot to run out of space.

This just happened here: https://ews-build.webkit.org/#/builders/86/builds/182

The server started with 41GB of free disk space (use 40%). See step  configuration
Then the step &apos;layout-test&apos; caused 97 crashes
Then the step &apos;layout-tests-repeat-failures&apos; tried to repeat each of those 97 crashes 11 times. So the Step would end generating 1067 coredumps :\
The server ran out of disk space and the run aborted due to this.

The next run on this server failed due to git issues (no disk space).

See: 

- https://ews-build.webkit.org/#/builders/86/builds/188
- https://ews-build.webkit.org/#/builders/86/builds/190
- https://ews-build.webkit.org/#/builders/86/builds/191
- https://ews-build.webkit.org/#/builders/86/builds/192
.. etc

Until an hour later the cronjob was fired and cleaned those coredumps the server was unusable.

So I think we need a way to configure the bots to just delete the cores after processing it and generating the backtrace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935903</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2023-02-22 11:37:02 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/10531</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935917</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-22 12:28:34 -0800</bug_when>
    <thetext>Committed 260694@main (59ff7ba2dbdb): &lt;https://commits.webkit.org/260694@main&gt;

Reviewed commits have been landed. Closing PR #10531 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>