Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @requires_webgpu, make WebGPU tests fail if unavailable #21870

Merged
merged 5 commits into from
May 2, 2024

Conversation

kainino0x
Copy link
Collaborator

@kainino0x kainino0x commented May 1, 2024

This makes these tests safer so they won't just silently pass if you happen to run against a browser/system where WebGPU isn't available (currently including Chrome on Linux and Firefox/Safari).

Verified these 6 tests fail without WebGPU support, using:
EMTEST_BROWSER='/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --disable-gpu' test/runner.py 'browser.test_webgpu*'
And that they're skipped when prepending EMTEST_LACKS_WEBGPU=1 to that.
(--disable-gpu has the side effect of disabling WebGPU since we don't ship a software fallback in Chrome right now.)

This makes these tests safer so they won't just silently pass if you
happen to run against a browser/system where WebGPU isn't available
(currently including Chrome on Linux and Firefox/Safari).
@kainino0x kainino0x marked this pull request as ready for review May 1, 2024 22:15
@kainino0x kainino0x enabled auto-merge (squash) May 1, 2024 22:17
@kainino0x kainino0x disabled auto-merge May 1, 2024 23:26
@kainino0x
Copy link
Collaborator Author

@sbc100 tests seem good now, could you force merge? thanks!

@sbc100 sbc100 merged commit 42fd234 into emscripten-core:main May 2, 2024
27 of 29 checks passed
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.

None yet

2 participants