Skip to content

Vendor WebGPU CTS #27395

Closed
Closed

Description

@jdm

Per web-platform-tests/wpt#24699, it's recommended that we setup our own WebGPU CTS vendoring automation like we did for the WebGL conformance tests (https://github.com/servo/servo/tree/master/tests/wpt/webgl/tools).

cc @kunalmohan

Activity

  1. kunalmohan commented on Jul 24, 2020

    @kunalmohan
    Contributor

    @jdm How would I go about adding/initializing logs in the metadata directory? Are there any steps that I could refer to?

  2. jdm commented on Jul 24, 2020

    @jdm
    MemberAuthor

    @kunalmohan The steps for adding a new testsuite that is part of our web-platform-tests infrastructure go something like this:

    Steps 1 and 3 are the most fiddly - if the CTS already supports outputting WPT-compatible tests, that should make the process easier. For the WebGPU tests, we apply a series of patches to the test files that add <script> blocks (eg) and create automated test names (eg) in order to allow the WPT harness to run them successfully.

  3. jdm commented on Jul 24, 2020

    @jdm
    MemberAuthor

    Making the import run automatically through a python script is best, but starting off by importing the unmodified files, making a commit, then modifying files by hand until the tests run makes it easier to turn the resulting diff into a script.

  4. self-assigned this
    on Jul 24, 2020
  5. kunalmohan commented on Jul 25, 2020

    @kunalmohan
    Contributor

    @jdm I have added the test suite here. The changes that I had to make after importing unmodified tests are in kunalmohan@c67f68d.
    What do you think?

  6. jdm commented on Jul 25, 2020

    @jdm
    MemberAuthor

    We should avoid depending on third-party code that is retrieved from the network while running tests. One possible solution is to vendor that module as well. Otherwise the changes look good!

  7. jdm commented on Jul 25, 2020

    @jdm
    MemberAuthor

    You will also want a __dir__.ini in the root meta directory that enables the webgpu preference when running the tests.

  8. added 10 commits that reference this issue on Jul 25, 2020
    d78178c
    e3dcaf2
    5aad47a
    c0cd622
    63b65c1
    5097cdf
    77e3b3f
    725933a
    e2269ba
    9fbdbdd
  9. moved this to Done in WebGPUon Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions