diff --git a/kokoro/github/ubuntu/cpu/build.sh b/kokoro/github/ubuntu/cpu/build.sh index b606b722..da127534 100644 --- a/kokoro/github/ubuntu/cpu/build.sh +++ b/kokoro/github/ubuntu/cpu/build.sh @@ -34,7 +34,7 @@ TEST_ROOT=$(pwd)/${PIP_TEST_PREFIX} rm -rf "$TEST_ROOT" mkdir -p "$TEST_ROOT" ln -s "$(pwd)"/tensorflow_gnn "$TEST_ROOT"/tensorflow_gnn -tag_filters="-no_oss" +tag_filters="-no_oss,-oss_excluded" bazel clean pip install -r requirements-dev.txt --progress-bar off diff --git a/kokoro/github/ubuntu/cpu/build_versioned.sh b/kokoro/github/ubuntu/cpu/build_versioned.sh index 290afbe7..52389159 100644 --- a/kokoro/github/ubuntu/cpu/build_versioned.sh +++ b/kokoro/github/ubuntu/cpu/build_versioned.sh @@ -41,7 +41,7 @@ ln -s "$(pwd)"/tensorflow_gnn "$TEST_ROOT"/tensorflow_gnn # Prepend common tag filters to a defined env_var # For example, tests for TF 2.8 shouldn't run RNG-dependent tests # These tag filters are enforced to start with a comma for separation -tag_filters="-no_oss${TAG_FILTERS}" +tag_filters="-no_oss,-oss_excluded${TAG_FILTERS}" bazel clean pip install -r requirements-dev.txt --progress-bar off diff --git a/tensorflow_gnn/docs/guide/developer.md b/tensorflow_gnn/docs/guide/developer.md index dd31fd4f..2776f7cd 100644 --- a/tensorflow_gnn/docs/guide/developer.md +++ b/tensorflow_gnn/docs/guide/developer.md @@ -84,14 +84,15 @@ After setting up the test directory, you can run all tests locally by running the following command in the repo root directory. ``` -bazel test --build_tag_filters=-no_oss --test_tag_filters=-no_oss --test_output=errors --verbose_failures=true --build_tests_only --define=no_tfgnn_py_deps=true --keep_going --experimental_repo_remote_exec //bazel_pip/tensorflow_gnn/... +bazel test --build_tag_filters=-no_oss,-oss_excluded --test_tag_filters=-no_oss,-oss_excluded --test_output=errors --verbose_failures=true --build_tests_only --define=no_tfgnn_py_deps=true --keep_going --experimental_repo_remote_exec //bazel_pip/tensorflow_gnn/... ``` The `--define=no_tfgnn_py_deps=true` flag directs bazel to assume that all dependencies are provided in the environment (where we just installed the .whl) -The flags `--build_tag_filters=-no_oss` and `--test_tag_filters=-no_oss` disable -tests that pass in the internal production environment but fail on GitHub. +The flags `--build_tag_filters=-no_oss,-oss_excluded` and +`--test_tag_filters=-no_oss,-oss_excluded` disable tests that pass in the +internal production environment but fail on GitHub. ### Run a single test file