Bug 238779 - [WKTR] [DRT] Only enable WebGPU for the LayoutTests/http/tests/webgpu directory
Summary: [WKTR] [DRT] Only enable WebGPU for the LayoutTests/http/tests/webgpu directory
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-04 17:58 PDT by Myles C. Maxfield
Modified: 2022-04-12 15:31 PDT (History)
5 users (show)

See Also:


Attachments
Patch (8.82 KB, patch)
2022-04-04 18:00 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (6.81 KB, patch)
2022-04-11 22:42 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2022-04-04 17:58:00 PDT
[WKTR] [DRT] Add the concept a non-experimental-feature which should obey the --no-enable-all-experimental-features flag
Comment 1 Myles C. Maxfield 2022-04-04 18:00:51 PDT
Created attachment 456655 [details]
Patch
Comment 2 Simon Fraser (smfr) 2022-04-05 22:24:09 PDT
Comment on attachment 456655 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456655&action=review

> Tools/ChangeLog:10
> +        This adds a set of non-experimental features which should be treated as experimental features
> +        for the purpose of the --no-enable-all-experimental-features flag. Right now, the set has one
> +        entry: WebGPU. (So, when --no-enable-all-experimental-features is specified, WebGPU is disabled.)

Can we instead do this via some kind of annotation in the .yaml files?

Or can we just have WTR enable WebGPU based on directory name, for now?

This additional category of "experimental feature but not an experimental feature" is rather confusing.
Comment 3 Radar WebKit Bug Importer 2022-04-11 17:58:15 PDT
<rdar://problem/91599623>
Comment 4 Radar WebKit Bug Importer 2022-04-11 22:40:42 PDT
<rdar://problem/91608718>
Comment 5 Myles C. Maxfield 2022-04-11 22:42:00 PDT
Created attachment 457311 [details]
Patch
Comment 6 Darin Adler 2022-04-12 14:37:19 PDT
Comment on attachment 457311 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=457311&action=review

> Tools/TestRunnerShared/TestFeatures.cpp:127
> +    return pathContains(pathOrURL, "127.0.0.1:8000/webgpu");

I wish I understood why others above are looking for "localhost" and this is looking for "127.0.0.1".

This directory-specific stuff should be a technique of last resort.

I suppose this is temporary, though, so I will stand down for now.
Comment 7 Myles C. Maxfield 2022-04-12 14:58:27 PDT
Comment on attachment 457311 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=457311&action=review

>> Tools/TestRunnerShared/TestFeatures.cpp:127
>> +    return pathContains(pathOrURL, "127.0.0.1:8000/webgpu");
> 
> I wish I understood why others above are looking for "localhost" and this is looking for "127.0.0.1".
> 
> This directory-specific stuff should be a technique of last resort.
> 
> I suppose this is temporary, though, so I will stand down for now.

The directories above use :8800, which is the port used for Web Platform Tests. Non-WPT-http-tests seem to use 127.0.0.1.

I agree with you about the last-resort-ness; please see https://bugs.webkit.org/show_bug.cgi?id=238779#c2.
Comment 8 EWS 2022-04-12 15:31:49 PDT
Committed r292788 (249571@main): <https://commits.webkit.org/249571@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 457311 [details].