<?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>258707</bug_id>
          
          <creation_ts>2023-06-29 19:25:00 -0700</creation_ts>
          <short_desc>[GTK][WPE] Flush TestWebKitAPI binaries before building</short_desc>
          <delta_ts>2023-06-30 04:05:19 -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>New Bugs</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=248382</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="Diego Pino">dpino</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1964391</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-06-29 19:25:00 -0700</bug_when>
    <thetext>It happened in https://bugs.webkit.org/show_bug.cgi?id=248382 that the bots were reporting tests failures on a test that was no longer part of the sources. That binary was a leftover from previous builds.

So, to avoid ending up in situations like this (which actually happened recently again), the TestWebKitAPI directory should only contain binaries that are present in the codebase. This could be achieve by listing which Test binaries to run (this is actually how the script is working right now, but when the target is a dir the script simply pulls all contents in the dir):

https://searchfox.org/wubkat/source/Tools/Scripts/run-wpe-tests#35

Another alternative is to flush the TestWebKitAPI directory before building.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964392</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-06-29 19:29:08 -0700</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/15431</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964450</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-30 04:04:58 -0700</bug_when>
    <thetext>Committed 265650@main (61011010ac86): &lt;https://commits.webkit.org/265650@main&gt;

Reviewed commits have been landed. Closing PR #15431 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964451</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-30 04:05:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/111561724&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>