tracel-ai/burn

Add Integration Tests for WebGPU using Deno

開放

#810 建立於 2023年9月15日

 (0 則留言) (1 個反應) (0 位負責人)Rust (964 個分叉)auto 404
help wantedinfrastructure

倉庫指標

星標
 (15,550 顆星)
PR 合併指標
 (平均合併 2天 22小時) (30 天內合併 129 個 PR)

描述

Introduction

In order to ensure that the burn-wgpu backend functions correctly, it is essential to expand our testing strategy to include integration tests using the WebGPU API. Given that Deno recently introduced experimental support for WebGPU, it provides us with an ideal platform for these integration tests. See the official announcement here: Deno v1.8 WebGPU Support.

Objectives

  1. Setup Deno for WebGPU testing: To start, we need to set up an environment that supports Deno and is tailored for WebGPU tests.
  2. Automate Test Cases: Develop a suite of test cases specifically designed for the burn-wgpu backend. This will ensure that future changes to the framework don't unintentionally break compatibility or functionality.
  3. CI/CD Integration: Integrate these tests into our continuous integration and delivery pipeline to ensure that every push or pull request is automatically tested against this suite.

Implementation Details

  1. Deno Setup:

    • Ensure that the testing environment has the latest version of Deno installed.
    • Configure Deno permissions to allow access to WebGPU and other necessary resources.
  2. Develop Test Cases:

    • Test the basic functionality of burn-wgpu to ensure all the expected methods and attributes function as intended.
  3. CI/CD Integration:

    • Choose a CI/CD platform that supports Deno (or configure it to do so).
    • Automate the deployment of the testing environment, including the installation of Deno.
    • Run the test suite on every push or pull request and report any failures directly on the GitHub platform.

貢獻者指南