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

Avoid testing webgl1 in webgl2 layers test #6849

Merged
merged 3 commits into from
Sep 23, 2022

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Sep 22, 2022

webgl1 was accidentally being tested in webgl2 layers tests. This seems to have been a cause of layers flakiness. Test failures seemed to happen when switching from webgl1 to webgl2.

This PR prevents the webgl1 test env from being used in tfjs-layers unless it is explicitly requested (such as by running //tfjs-layers:tfjs-layers_webgl1_test).

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

webgl1 was accidentally being tested in webgl2 layers tests. This seems to have been a cause of layers flakiness. Test failures seemed to happen when switching from webgl1 to webgl2.
@mattsoulanille
Copy link
Member Author

I'm running this test 50 times to find flakiness with bazel test -t- //tfjs-layers:tfjs-layers_webgl2_test --runs_per_test=50 --test_strategy=exclusive --test_output=errors

@mattsoulanille mattsoulanille marked this pull request as ready for review September 22, 2022 23:47
Copy link
Collaborator

@Linchenn Linchenn left a comment

Choose a reason for hiding this comment

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

Nice catch, LGTM!

@mattsoulanille
Copy link
Member Author

Seed 09887 still fails, so this PR probably doesn't fix the root cause of the flakiness. I'll continue investigating, but this PR should still be merged since we don't want to test webgl1 in //tfjs-layers:tfjs-layers_webgl2_test.

@mattsoulanille mattsoulanille merged commit 278eaca into tensorflow:master Sep 23, 2022
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.

3 participants