-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 browser tests for CPU backend #7633
Conversation
With these changes, when I ran |
This has been fixed. Thanks Matt! |
tfjs-backend-cpu/BUILD.bazel
Outdated
args = [], | ||
browsers = [], | ||
headless = False, | ||
presubmit_browsers = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: If this is empty, these tests won't run in presubmits. Is that intentional? Do the tests only work with headless = False
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks! Also removed core tests from this test target.
This PR adds browser test target for CPU backend. The test target does not include tests in Core, but the test target is added to nightly and presubmit tests.
Only added "bs_chrome_mac" for nightly and presubmit tests, because the CPU tests do not heavily relay on the platform.
Currently, CPU backend only has Node.js tests. We could provide browser tests for CPU backend, even though it does not need to be integrated into CI and nightly tests. eg. this would be helpful for Draw API tests for CPU backend.
To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.