Skip to content

More auto-generated execution tests, found by mutation testing Mesa - #4742

Open
ambergorzynski wants to merge 1 commit into
gpuweb:mainfrom
ambergorzynski:mutation-tests-2
Open

ambergorzynski wants to merge 1 commit into
gpuweb:mainfrom
ambergorzynski:mutation-tests-2

Conversation

@ambergorzynski

@ambergorzynski ambergorzynski commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #4720, with a batch of 14 more execution tests found by mutation testing Mesa, in the same format and location (webgpu:shader,execution,mutation,mesa,*). I've chosen tests that target mutations in different lines of code and that are fairly distinct from one another imo.

As a reminder - each test is a compute shader generated by WGSLsmith and reduced automatically. Each one produces different output when a specific change is injected into Mesa's NIR compiler, and no existing CTS test detected that change.

Two tests are a bit on the long side; I'm happy to change or drop them if you think they are too long:

  • shader_7fd1ec1a has 35 lines, mostly the fuzzer's helper functions
  • shader_25efc668 has one 234-character line. If that's too long, I can try splitting the expression into more lines for better readability

+@afd

Adds 14 compute shaders to webgpu:shader,execution,mutation,mesa,*: 12 that read no input and 2 that read a uniform input buffer. Each was generated by WGSLsmith, reduced automatically, and found to detect a change injected into the Mesa  NIR compiler that no existing CTS test detected.
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Results for build job (at 9cbf6d3):

-webgpu:shader,execution,mutation,mesa,no_input:no_input:* - 2 cases, 2 subcases (~1/case)
-webgpu:shader,execution,mutation,mesa,uniform_input:uniform_input:* - 3 cases, 3 subcases (~1/case)
+webgpu:shader,execution,mutation,mesa,no_input:no_input:* - 14 cases, 14 subcases (~1/case)
+webgpu:shader,execution,mutation,mesa,uniform_input:uniform_input:* - 5 cases, 5 subcases (~1/case)
-TOTAL: 290287 cases, 2383042 subcases
+TOTAL: 290301 cases, 2383056 subcases

@ambergorzynski

Copy link
Copy Markdown
Contributor Author

@alan-baker - a follow-up to #4720 with a batch of 14 more tests in the same format. A review would be great when you have time, thanks!

This branch has not been deployed

No deployments
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.

1 participant