gen_wpt_cts_html: Add support for filtering the list of variants #4102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new sample config file
gen_wpt_cfg_withsomeworkers.json
.Note building this is really slow (it iterates the whole test tree four times) but it's still useful to have prebuilt and verified on presubmit, so I'm just including it in the build. Hopefully it's not prohibitively slow for anyone's local development (they should not need to run the whole
npm test
/npx grunt pre
build often, hopefully). On my nice fast mac,npm test
CPU time goes from 267s to 307s, but wall time goes from 69s to 72s thanks to parallelization.To run just this one step:
./tools/gen_wpt_cts_html tools/gen_wpt_cfg_withsomeworkers.json
Running locally, the result files seem to be as expected (
out-wpt/cts-withsomeworkers.https.html
andgen/webgpu_variant_list_withsomeworkers.json
).The list of tests here is actually a superset of those [used by chromium](https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/webgpu-cts/worker_test_globs.txt]; I don't remember why we don't run all of these.
Issue: #4098
cc @ErichDonGubler
Requirements for PR author:
.unimplemented()
./** documented */
and new helper files are found inhelper_index.txt
.Requirements for reviewer sign-off:
When landing this PR, be sure to make any necessary issue status updates.