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

Refactor selectDeviceOrSkipTest system #4150

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

greggman
Copy link
Contributor

The existing system selected the device immediately which means code like this

t.selectDeviceOrSkipTest('timestamp-query');
t.selectDeviceOrSkipTesT('float32-renderable'); // fail!

would fail on the 2nd line because a device had already been requested on the first line.

Refactored so that the various requirements are merged and only at the end is a device requested.

Tested here:
greggman@d4abf41

@greggman greggman requested a review from kainino0x January 16, 2025 23:53
Copy link
Collaborator

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

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

lgtm!

The existing system selected the device immediately which means
code like this

    t.selectDeviceOrSkipTest('timestamp-query');
    t.selectDeviceOrSkipTesT('float32-renderable'); // fail!

would fail on the 2nd line because a device had already been
requested on the first line.

Refactored so that the various requirements are merged and
only at the end is a device requested.

Tested here:
d4abf41
@greggman greggman force-pushed the select-device-refactor branch from 26d7fe8 to 5c1714e Compare January 17, 2025 00:00
@greggman greggman enabled auto-merge (squash) January 17, 2025 00:00
@greggman greggman merged commit 7cdd7c8 into gpuweb:main Jan 17, 2025
1 check passed
@greggman greggman deleted the select-device-refactor branch January 17, 2025 00:07
shrekshao added a commit to shrekshao/cts that referenced this pull request Jan 17, 2025
shrekshao added a commit that referenced this pull request Jan 17, 2025
* Compat: fix float16(32)-renderable tests

* revert configure change

* Fix after #4150
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.

2 participants