dawn-cmake/webgpu-cts
Austin Eng 25e811155a Roll third_party/webgpu-cts/ c7d833bad..b83a6ae70 (22 commits)
Regenerated:
 - expectations.txt
 - ts_sources.txt
 - test_list.txt
 - cache_list.txt
 - resource_files.txt
 - webtest .html files


c7d833badc..b83a6ae708
 - b83a6a Remove using CaseCache in bitcast tests (#2594)
 - e78340 Add TODO to last shouldThrow that doesn't expect a particular name (#2590)
 - 458aa9 Check exception type for Webgpu context configure test (#2575)
 - c57f28 Check exception type for Webgpu getCurrentTexture test (#2537)
 - dadb86 Clarify that f64 castable constants are about WebIDL casting (#2505)
 - 7b529d test bitcast f32 to {f32,u32,i32} (#2508)
 - cf6069 Make maxBindingsPerBindGroup 1000 (#2519)
 - 857e83 Add f16 comparison tests (#2503)
 - cdef82 [wgsl] Validation tests for `enable` (#2511)
 - 8814fa [wgsl] Add test for BOM. (#2504)
 - 29b8e0 Add basic uniformity validation tests (#2497)
 - a75df2 Replace hexToFoo function names with more accuracte names (#2502)
 - f89971 Implement core abstract float support (#2498)
 - 7d2d22 Execution atomic builtins: add tests for i32 workgroup/storage vars (#2496)
 - bc8d8a Missed one instance of maxFragmentCombinedOutputResources. (#2494)
 - 908d7b Execution tests for atomic builtins on workgroup atomic vars (#2493)
 - d353b0 Remove numeric framework shim (#2492)
 - 856059 Migrate fundamental error interval tests (#2491)
 - a14d92 Migrate bespoke floating point tests (#2489)
 - e0990d Replace calling Vector/Matrix constructors directly (#2490)
 - cefabb Migrate Matrix  -> tests (#2487)
 - 9a964b Execution tests for atomic builtins (#2484)

Created with './tools/run cts roll'

Change-Id: I254c40a5aa0e43f23180a66713cdd99b50154c5f
Cq-Include-Trybots: luci.chromium.try:dawn-try-win10-x86-rel,linux-dawn-rel,mac-dawn-rel,win-dawn-rel
Include-Ci-Only-Tests: true
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/131583
Reviewed-by: Loko Kung <lokokung@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Loko Kung <lokokung@google.com>
Auto-Submit: Austin Eng <enga@chromium.org>
2023-05-05 03:03:34 +00:00
..
scripts Generate and load CTS cache 2022-11-21 15:16:51 +00:00
webtests Roll third_party/webgpu-cts/ 9fbed0099..3f9b09b36 (8 commits) 2023-01-24 20:32:05 +00:00
BUILD.gn Add test list to deps 2022-08-11 15:16:38 +00:00
OWNERS Set OWNERS to * on .txt files needed for CTS rolls 2023-02-13 10:17:04 +00:00
PRESUBMIT.py Reland "Add expectations.txt validation to presubmit" 2022-12-08 21:57:55 +00:00
README.md Update CTS docs 2022-09-14 17:13:17 +00:00
expectations.txt Roll third_party/webgpu-cts/ c7d833bad..b83a6ae70 (22 commits) 2023-05-05 03:03:34 +00:00
test_page.html Change base directory for CTS runner, part 2 2022-06-24 18:50:19 +00:00
test_runner.js WebGPU CTS: Send CONNECTION_ACK when the websocket is open 2023-05-03 23:36:12 +00:00
worker_test_globs.txt Move WebGPU worker globs 2022-07-01 01:20:14 +00:00

README.md

Running the WebGPU CTS Locally with Chrome

Running the WebGPU CTS locally with Chrome requires a Chromium checkout.

Follow these instructions for checking out and building Chrome. You'll also need to build the telemetry_gpu_integration_test target.

At the root of a Chromium checkout, run: ./content/test/gpu/run_gpu_integration_test.py webgpu_cts --browser=exact --browser-executable=path/to/your/chrome-executable

If you don't want to build Chrome, you can still run the CTS, by passing the path to an existing Chrome executable to the --browser-executable argument. However, if you would like to use all harness functionality (symbolizing stack dumps, etc.). You will still need to build the telemetry_gpu_integration_test target.

Useful command-line arguments:

  • --help: See more options and argument documentation.
  • -l: List all tests that would be run.
  • --test-filter: Filter tests.
  • --passthrough --show-stdout: Show browser output. See also --browser-logging-verbosity.
  • --extra-browser-args: Pass extra args to the browser executable.
  • --jobs=N: Run with multiple parallel browser instances.
  • --stable-jobs: Assign tests to each job in a stable order. Used on the bots for consistency and ease of reproduction.
  • --enable-dawn-backend-validation: Enable Dawn's backend validation.
  • --use-webgpu-adapter=[default,swiftshader,compat]: Forwarded to the browser to select a particular WebGPU adapter.

Running a local CTS build on Swarming

Often, it's useful to test changes on Chrome's infrastructure if it's difficult to reproduce a bug locally. To do that, we can package our local build as an "isolate" and upload it to Swarming to run there. This is often much faster than uploading your CL to Gerrit and triggering tryjobs.

Note that since you're doing a local build, you need to be on the same type of machine as the job you'd like to trigger in swarming. To run a job on a Windows bot, you need to build the isolate on Windows.

  1. Build the isolate

    vpython3 tools/mb/mb.py isolate out/Release telemetry_gpu_integration_test

  2. Upload the isolate

    ./tools/luci-go/isolate archive -cas-instance chromium-swarm -i out/Release/telemetry_gpu_integration_test.isolate

    This will output a hash like: 95199eb624d8ddb6ffdfe7a2fc41bc08573aebe3d17363a119cb1e9ca45761ae/734

    Save this hash for use in the next command.

  3. Trigger the swarming job.

    The command structure is as follows:

    ./tools/luci-go/swarming trigger -S https://chromium-swarm.appspot.com <dimensions...> -digest <YOUR_ISOLATE_HASH> -- <command> ...

    Say you want to trigger a job on a Linux Intel bot. It's easiest to check an existing task to see the right args you would use. For example: https://chromium-swarm.appspot.com/task?id=5d552b8def31ab11.

    In the table on the left hand side, you can see the bot's Dimensions. In the Raw Output on the right or below the table, you can see the commands run on this bot. Copying those, you would use:

    ./tools/luci-go/swarming trigger -S https://chromium-swarm.appspot.com -d "pool=chromium.tests.gpu" -d "cpu=x86-64" -d "gpu=8086:9bc5-20.0.8" -d "os=Ubuntu-18.04.6" -digest 95199eb624d8ddb6ffdfe7a2fc41bc08573aebe3d17363a119cb1e9ca45761ae/734 -- vpython3 testing/test_env.py testing/scripts/run_gpu_integration_test_as_googletest.py content/test/gpu/run_gpu_integration_test.py --isolated-script-test-output=${ISOLATED_OUTDIR}/output.json webgpu_cts --browser=release --passthrough -v --show-stdout --extra-browser-args="--enable-logging=stderr --js-flags=--expose-gc --force_high_performance_gpu --enable-features=Vulkan" --total-shards=14 --shard-index=0 --jobs=4 --stable-jobs
    

    The command will output a link to the Swarming task for you to see the results.