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 browser tests for CPU backend #7633

Merged
merged 7 commits into from
May 3, 2023
Merged

Conversation

Linchenn
Copy link
Collaborator

@Linchenn Linchenn commented Apr 27, 2023

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.

@Linchenn
Copy link
Collaborator Author

With these changes, when I ran bazel test :tfjs-backend-cpu_browser_test, I got an error 'Could not resolve "./tests"'. Do you have ideas on it? @mattsoulanille

@Linchenn
Copy link
Collaborator Author

With these changes, when I ran bazel test :tfjs-backend-cpu_browser_test, I got an error 'Could not resolve "./tests"'. Do you have ideas on it? @mattsoulanille

This has been fixed. Thanks Matt!

args = [],
browsers = [],
headless = False,
presubmit_browsers = []
Copy link
Member

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?

Copy link
Collaborator Author

@Linchenn Linchenn Apr 28, 2023

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.

@Linchenn Linchenn requested a review from pyu10055 April 28, 2023 01:42
@Linchenn Linchenn merged commit a361b16 into tensorflow:master May 3, 2023
2 checks passed
@Linchenn Linchenn deleted the addWeb branch May 3, 2023 23:21
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

3 participants