Bug 258613

Summary: import-w3c-tests is deleting -expected.txt files of variant test files
Product: WebKit Reporter: youenn fablet <youennf>
Component: Tools / TestsAssignee: Sam Sneddon [:gsnedders] <gsnedders>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, gsnedders, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description youenn fablet 2023-06-28 00:29:00 PDT
When reimporting webcodecs tests, I can see files like LayoutTests/imported/w3c/web-platform-tests/webcodecs/reconfiguring-encoder.https.any_h264_avc-expected.txt being removed while they should not.
We might want to refine our deletion heuristic.
Comment 1 Radar WebKit Bug Importer 2023-07-05 00:29:16 PDT
<rdar://problem/111770351>
Comment 2 Sam Sneddon [:gsnedders] 2023-08-03 07:35:22 PDT
This is webkitpy.w3c.test_importer.TestImporter.remove_dangling_expectations; compare/contrast the logic there with that of webkitpy.port.base.Port._expected_baselines_for_suffixes.

Note that this runs unconditionally (i.e., even without --clean-dest-dir).
Comment 3 Sam Sneddon [:gsnedders] 2023-08-03 09:55:55 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16348
Comment 4 EWS 2023-08-04 10:05:33 PDT
Committed 266588@main (d8e12ca3753d): <https://commits.webkit.org/266588@main>

Reviewed commits have been landed. Closing PR #16348 and removing active labels.