<?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>262887</bug_id>
          
          <creation_ts>2023-10-09 07:22:42 -0700</creation_ts>
          <short_desc>check-for-duplicated-platform-test-results can remove files that aren&apos;t expectations</short_desc>
          <delta_ts>2023-10-09 15:04:07 -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>FIXED</resolution>
          
          
          <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="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Sam Sneddon [:gsnedders]">gsnedders</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1983669</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-10-09 07:22:42 -0700</bug_when>
    <thetext>Ignoring the fact that this shows we expect the tree to be clean before running check-for-duplicated-platform-test-results, this shows we&apos;re deleting a file that isn&apos;t a &quot;test result&quot; as the script is named.

gsnedders@gsnedders-marsha WebKit % cp LayoutTests/media/video-test.js LayoutTests/platform/mac/media/video-test.js
gsnedders@gsnedders-marsha WebKit % ./Tools/Scripts/check-for-duplicated-platform-test-results 
Checking search paths [platform/mac-ventura-wk1, platform/mac-ventura, platform/mac-wk1, platform/mac]
Traceback (most recent call last):
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/./Tools/Scripts/check-for-duplicated-platform-test-results&quot;, line 203, in &lt;module&gt;
    sys.exit(main())
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/./Tools/Scripts/check-for-duplicated-platform-test-results&quot;, line 188, in main
    total += check_platform(options, baseline_search_paths_checked)
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/./Tools/Scripts/check-for-duplicated-platform-test-results&quot;, line 160, in check_platform
    host.scm().delete_list(duplicates)
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py&quot;, line 187, in delete_list
    return self._run_git([&quot;rm&quot;, &quot;-f&quot;] + paths)
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py&quot;, line 111, in _run_git
    return self.run(full_command_args, **full_kwargs)
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm.py&quot;, line 73, in run
    return self._executive.run_command(args,
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/Tools/Scripts/webkitpy/common/system/executive.py&quot;, line 445, in run_command
    (error_handler or self.default_error_handler)(script_error)
  File &quot;/Volumes/gsnedders/projects/Safari/WebKit/Tools/Scripts/webkitpy/common/system/abstractexecutive.py&quot;, line 98, in default_error_handler
    raise error
webkitpy.common.system.executive.ScriptError: Failed to run &quot;[&apos;git&apos;, &apos;rm&apos;, &apos;-f&apos;, &apos;/Volumes/gsnedders/projects/Safari/WebKit/LayoutTests/platform/mac/media/video-test.js&apos;]&quot; exit_code: 128 cwd: /Volumes/gsnedders/projects/Safari/WebKit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983670</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-09 07:22:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/116676951&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983672</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-10-09 07:31:16 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/18837</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983836</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-09 15:04:04 -0700</bug_when>
    <thetext>Committed 269113@main (fc7d2c4aac46): &lt;https://commits.webkit.org/269113@main&gt;

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

    </bug>

</bugzilla>