tracel-ai/burn

Add Integration Tests for WebGPU using Deno

Open

#810 opened on Sep 15, 2023

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Rust (964 forks)auto 404
help wantedinfrastructure

Repository metrics

Stars
 (15,550 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide