Skip to content

Commit

Permalink
Re-enable nightly firefox tests (#7954)
Browse files Browse the repository at this point in the history
* Re-enable nightly firefox tests

* Use ios 15 webgl2 for layers tests

---------

Co-authored-by: Ping Yu <[email protected]>
  • Loading branch information
mattsoulanille and pyu10055 authored Sep 13, 2023
1 parent 8879e72 commit 0bd03f7
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 34 deletions.
3 changes: 1 addition & 2 deletions e2e/scripts/run-browserstack-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ if [[ "$NIGHTLY" = true || "$RELEASE" = true ]]; then
COMMANDS+=(
"yarn run-browserstack --browsers=bs_ios_12 --tags '$TAGS' --testEnv webgl --flags '{\"\\"\"WEBGL_VERSION\"\\"\": 1, \"\\"\"WEBGL_CPU_FORWARD\"\\"\": false, \"\\"\"WEBGL_SIZE_UPLOAD_UNIFORM\"\\"\": 0}'"
"yarn run-browserstack --browsers=bs_safari_mac --tags '$TAGS' --testEnv webgl --flags '{\"\\"\"WEBGL_VERSION\"\\"\": 1, \"\\"\"WEBGL_CPU_FORWARD\"\\"\": false, \"\\"\"WEBGL_SIZE_UPLOAD_UNIFORM\"\\"\": 0}'"
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "yarn run-browserstack --browsers=bs_firefox_mac --tags '$TAGS'"
"yarn run-browserstack --browsers=bs_firefox_mac --tags '$TAGS'"
"yarn run-browserstack --browsers=bs_android_10 --tags '$TAGS'"
# Test script tag bundles
"karma start ./script_tag_tests/tfjs-core-cpu/karma.conf.js --browserstack --browsers=bs_chrome_mac"
Expand Down
4 changes: 1 addition & 3 deletions tfjs-automl/scripts/test-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ yarn run-flaky "yarn run-browserstack --browsers=bs_chrome_mac"
# Run the rest of the karma tests in parallel. These runs will reuse the
# already downloaded binary.
npm-run-all -p -c --aggregate-output \
"run-flaky \"yarn run-browserstack --browsers=bs_firefox_mac\"" \
"run-flaky \"yarn run-browserstack --browsers=bs_safari_mac --testEnv webgl1\""
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "run-flaky \"yarn run-browserstack --browsers=bs_firefox_mac\"" \

3 changes: 1 addition & 2 deletions tfjs-backend-wasm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ tfjs_web_test(
],
browsers = [
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_firefox_mac",
"bs_safari_mac",
"bs_ios_12",
# TODO(mattsoulanille): Fix clipByValue on Android.
Expand Down
7 changes: 3 additions & 4 deletions tfjs-backend-webgl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ tfjs_web_test(
"webgl2",
],
browsers = [
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_android_10",
"bs_chrome_mac",
"bs_firefox_mac",
"win_10_chrome",
],
headless = False,
Expand All @@ -130,8 +129,8 @@ tfjs_web_test(
"webgl1",
],
browsers = [
"bs_safari_mac",
"bs_ios_12",
"bs_safari_mac",
],
headless = False,
presubmit_browsers = [
Expand Down
7 changes: 3 additions & 4 deletions tfjs-core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,11 @@ tfjs_web_test(
"//tfjs-core/src:tfjs-core_test_bundle",
],
browsers = [
"bs_android_10",
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_safari_mac",
"bs_firefox_mac",
"bs_ios_12",
"bs_android_10",
"bs_safari_mac",
"win_10_chrome",
],
static_files = [
Expand Down
3 changes: 1 addition & 2 deletions tfjs-core/src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ tfjs_web_test(
name = "worker_test",
browsers = [
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_firefox_mac",
"bs_safari_mac",
# Temporarily disabled because BrowserStack does not support loading
# absolute paths in iOS, which is required for loading the worker.
Expand Down
5 changes: 2 additions & 3 deletions tfjs-layers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ tfjs_web_test(
],
browsers = [
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_firefox_mac",
# disabled android test due to training flakiness
# "bs_android_10",
"win_10_chrome",
"bs_ios_15",
],
headless = False,
seed = "12345",
Expand All @@ -76,7 +76,6 @@ tfjs_web_test(
],
browsers = [
"bs_safari_mac",
"bs_ios_12",
],
headless = False,
seed = "12345",
Expand Down
3 changes: 1 addition & 2 deletions tfjs-tfdf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ tfjs_web_test(
browsers = [
# TODO: Support Safari.
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_firefox_mac",
"bs_android_10",
"win_10_chrome",
],
Expand Down
3 changes: 1 addition & 2 deletions tfjs-tflite/src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ tfjs_web_test(
name = "worker_test",
browsers = [
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_firefox_mac",
"bs_safari_mac",
# Temporarily disabled because BrowserStack does not support loading
# absolute paths in iOS, which is required for loading the worker.
Expand Down
9 changes: 3 additions & 6 deletions tfjs-vis/scripts/test-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ yarn run-flaky "yarn run-browserstack --browsers=bs_chrome_mac"

# Run the rest of the karma tests in parallel. These runs will reuse the
# already downloaded binary.
yarn run-flaky "yarn run-browserstack --browsers=bs_safari_mac"
#npm-run-all -p -c --aggregate-output \
#"run-flaky \"yarn run-browserstack --browsers=bs_safari_mac\""
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "run-flaky \"yarn run-browserstack --browsers=bs_firefox_mac\"" \

npm-run-all -p -c --aggregate-output \
"run-flaky \"yarn run-browserstack --browsers=bs_firefox_mac\"" \
"run-flaky \"yarn run-browserstack --browsers=bs_safari_mac\""
3 changes: 1 addition & 2 deletions tfjs/scripts/test-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
# Exit immediately if a command exits with a non-zero status.
set -e

# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# node ../scripts/run_flaky.js "yarn karma start --browsers='bs_firefox_mac' --singleRun"
node ../scripts/run_flaky.js "yarn karma start --browsers='bs_firefox_mac' --singleRun"
node ../scripts/run_flaky.js "yarn karma start --browsers='bs_chrome_mac' --singleRun"
yarn test-tools

Expand Down
7 changes: 7 additions & 0 deletions tools/karma_template.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ const CUSTOM_LAUNCHERS = {
os_version: '12.3',
real_mobile: true
},
bs_ios_15: {
base: 'BrowserStack',
device: 'iPhone 11 Pro',
os: 'ios',
os_version: '15',
real_mobile: true
},
bs_android_10: {
base: 'BrowserStack',
device: 'Google Pixel 4 XL',
Expand Down
3 changes: 1 addition & 2 deletions tools/tfjs_web_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ def tfjs_web_test(name, ci = True, args = [], **kwargs):

browsers = kwargs.pop("browsers", [
"bs_chrome_mac",
# TODO(mattSoulanille): Re-enable firefox once it works on browserstack.
# "bs_firefox_mac",
"bs_firefox_mac",
"bs_safari_mac",
"bs_ios_12",
"bs_android_10",
Expand Down

0 comments on commit 0bd03f7

Please sign in to comment.