Repository navigation
Run wgsl_template Python tests in CI - #32214
Merged
Merged
Conversation
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>
β¦tern, fix indentation
Contributor
There was a problem hiding this comment.
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.
Jiajia Qin (qjia7)
approved these changes
Aug 25, 2026
Edward Chen (edgchen1)
enabled auto-merge (squash)
August 25, 2026 14:47
Edward Chen (edgchen1)
disabled auto-merge
August 25, 2026 16:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 callsrun_tests.pydirectly.Motivation and Context
Run wgsl_template tests in CI build.