tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.yaml (3058B)


      1 schema: 1
      2 
      3 bugzilla:
      4  product: Core
      5  component: "Graphics: WebGPU"
      6 
      7 origin:
      8  name: WebGPU CTS
      9  description: WebGPU Compliance Test Suite
     10  url: https://gpuweb.github.io/cts/
     11  release: d5a131f3afc77be7f76bbf956db054e799f2e79d (2025-12-19T22:41:23Z).
     12  revision: d5a131f3afc77be7f76bbf956db054e799f2e79d
     13  license: ['BSD-3-Clause']
     14 
     15 updatebot:
     16    maintainer-phab: '#webgpu-reviewers!'
     17    maintainer-bz: egubler@mozilla.com
     18    try-preset: webgpu
     19    tasks:
     20      - type: vendoring
     21        enabled: true
     22        frequency: 1 week
     23        blocking: 1863146  # webgpu-update-cts
     24 
     25 vendoring:
     26  url: https://github.com/gpuweb/cts
     27  source-hosting: github
     28  vendor-directory: dom/webgpu/tests/cts/checkout/
     29  skip-vendoring-steps:
     30    - update-moz-build
     31  include:
     32    - .gitattributes
     33    - .gitignore  # Avoids re-formatting of generated files.
     34  update-actions:
     35    # Use the version from `mach vendor`, instead of a script that consults Git. This is wrong,
     36    # because (1) it would use a Git checkout of _Gecko_ rather than CTS, and (2) we might not even
     37    # have a Git checkout if we're using Mercurial.
     38    - action: replace-in-file
     39      file: '{yaml_dir}/checkout/tools/gen_version'
     40      pattern: "const { version } = require('../src/common/tools/version.ts');"
     41      with: "const version = '{revision}';"
     42 
     43    # Apply patches from patch files.
     44    #
     45    # These must be applied prior to the `cargo run` step below, as it patches the original
     46    # TypeScript sources. If we used `moz.yaml`'s `patches` mechanism, it would apply the patch to
     47    # the TypeScript sources _after_ we have already processed them and written our tests to their
     48    # final location.
     49 
     50    # Patch the `baseResourcePath` used by the CTS so that the tests we
     51    # generate are able to load resources correctly.
     52    - action: run-command
     53      cwd: '{yaml_dir}/checkout/'
     54      command: patch
     55      args:
     56        - -p1
     57        - -i
     58        - ../patches/0001-base-resource-path.patch
     59 
     60    # Patch the `serviceWorkerURL` used by the CTS so that the tests we generate are able to load
     61    # resources correctly.
     62    - action: run-command
     63      cwd: '{yaml_dir}/checkout/'
     64      command: patch
     65      args:
     66        - -p1
     67        - -i
     68        - ../patches/0002-service-worker-url.patch
     69 
     70    - action: run-command
     71      cwd: '{yaml_dir}/vendor/'
     72      command: cargo
     73      args:
     74        - run
     75        - --no-default-features
     76        - --
     77        - '../checkout/'
     78 
     79    - action: delete-path
     80      path: '{topsrcdir}/testing/web-platform/mozilla/tests/webgpu/'
     81    - action: move-dir
     82      from: '{yaml_dir}/checkout/out-wpt/'
     83      to: '{topsrcdir}/testing/web-platform/mozilla/tests/webgpu/'
     84 
     85    - action: delete-path
     86      path: '{yaml_dir}/checkout/node_modules/'
     87    - action: delete-path
     88      path: '{yaml_dir}/checkout/gen/'
     89    - action: delete-path
     90      path: '{yaml_dir}/checkout/out/'
     91    - action: delete-path
     92      path: '{yaml_dir}/checkout/deploy_key.enc'
     93    - action: vcs-add-remove-files
     94      path: '{topsrcdir}/testing/web-platform/mozilla/tests/webgpu/'