<?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>313792</bug_id>
          
          <creation_ts>2026-04-30 18:06:33 -0700</creation_ts>
          <short_desc>[EWS] clean-build doesn&apos;t remove intermediate files</short_desc>
          <delta_ts>2026-05-01 17:03:49 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=313791</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Williams">emw</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>bfulgham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2206445</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2026-04-30 18:06:33 -0700</bug_when>
    <thetext>The clean-build step run by buildbot is misleading. It&apos;s labeled &quot;delete WebKitBuild directory&quot; in the UI, but the script it runs (Tools/CISupport/clean-build) looks up the *products* directory for the current platform, and deletes that. So for example, an iOS device release builder removes:

    WebKitBuild/Release-iphoneos

What it should really do is remove the intermediates, too. This could be done with a command like:

    rm WebKitBuild/{,*.build/}Release-iphoneos

Or we could just delete the whole build directory like we advertise, since we do not have any multi-platform builders.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2206664</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-01 13:47:49 -0700</bug_when>
    <thetext>&lt;rdar://problem/176046546&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2206667</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2026-05-01 13:54:07 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/64064</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2206733</commentid>
    <comment_count>3</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2026-05-01 17:03:49 -0700</bug_when>
    <thetext>I misjudged what this script is doing, and my report was based on bad evidence. It&apos;s actually passing --top-level to `webkit-build-directory`, so it _does_ delete the whole build dir. For example:

```
emw@aria2 ~/wk2&gt; ls WebKitBuild
ANGLE.build/                     JavaScriptCore.build/            SwiftBrowser.build/              WebKitLegacy.build/
bmalloc.build/                   libwebrtc.build/                 SwiftExplicitPrecompiledModules/ WebKitTestRunner.build/
dav1d.build/                     lldbWebKitTester.build/          TestWebKitAPI.build/             WTF.build/
DumpRenderTree.build/            MiniBrowser.build/               WebCore.build/                   XCBuildData/
EagerLinkingTBDs/                PAL.build/                       WebGPU.build/
ExplicitPrecompiledModules/      PrecompiledHeaders/              WebInspectorUI.build/
gtest.build/                     Release/                         WebKit.build/

emw@aria2 ~/wk2&gt; python3 Tools/CISupport/clean-build --platform=mac-tahoe --release

emw@aria2 ~/wk2&gt; ls WebKitBuild
ls: WebKitBuild: No such file or directory
```</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>