Skip to content

Run wgsl_template Python tests in CI - #32214

Merged
Edward Chen (edgchen1) merged 3 commits into
mainfrom
edgchen1/wgsl_template_ci_build
Aug 25, 2026
Merged

Edward Chen (edgchen1) merged 3 commits into
mainfrom
edgchen1/wgsl_template_ci_build

Conversation

@edgchen1

@edgchen1 Edward Chen (edgchen1) commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add a GitHub Actions workflow that runs the wgsl_template test suite on Linux and Windows. The tests are stdlib-only, so no dependency install is needed. Python 3.12 matches the WebGPU build lanes that invoke wgsl_gen.py.

Remove add_test() block in cmake/onnxruntime_providers_webgpu.cmake. The workflow calls run_tests.py directly.

Motivation and Context

Run wgsl_template tests in CI build.

Edward Chen (edgchen1) and others added 2 commits August 21, 2026 17:46
The ctest wiring for these tests never ran: BUILD_TESTING is never defined, since cmake/CMakeLists.txt calls enable_testing() without include(CTest), and cmake/external/abseil-cpp.cmake sets BUILD_TESTING to 0. Remove the dead add_test block.

Add a path-filtered GitHub Actions workflow that runs the suite on Linux and Windows. The tests are stdlib-only, so no dependency install is needed. Python 3.12 matches the WebGPU build lanes that invoke wgsl_gen.py.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@edgchen1
Edward Chen (edgchen1) marked this pull request as ready for review August 24, 2026 17:35
Copilot AI balanced review requested due to automatic review settings August 24, 2026 17:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds dedicated Linux and Windows CI coverage for WGSL template tests.

Changes:

  • Adds a Python 3.12 GitHub Actions test matrix.
  • Removes the CTest registration.
  • Updates the test runner documentation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/wgsl_template_tests.yml Defines the new CI workflow.
cmake/onnxruntime_providers_webgpu.cmake Removes CTest integration.
tools/python/wgsl_template/test/run_tests.py References the new workflow.

πŸ’‘ Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@edgchen1
Edward Chen (edgchen1) enabled auto-merge (squash) August 25, 2026 14:47
@edgchen1
Edward Chen (edgchen1) merged commit dc99973 into main Aug 25, 2026
95 of 96 checks passed
@edgchen1
Edward Chen (edgchen1) deleted the edgchen1/wgsl_template_ci_build branch August 25, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants