diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7c3ef68a313118..aa03e50e5de537 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -185,6 +185,10 @@ There are two ways to run TensorFlow unit tests. Once you have the packages installed, you can run a specific unit test in bazel by doing as follows: + ```bash + export flags="--config=opt -k" + ``` + If the tests are to be run on GPU, add CUDA paths to LD_LIBRARY_PATH and add the `cuda` option flag @@ -212,15 +216,15 @@ There are two ways to run TensorFlow unit tests. (Requires `python>=3.7`) ```bash - bazel test //tensorflow/python/saved_model:load_test --test_arg=-- --test_arg=-k=*LoadTest.test_capture_variables* + bazel test ${flags} //tensorflow/python/saved_model:load_test --test_filter=*LoadTest.test_capture_variables* ``` - **Note:** You can add `--test_sharding_strategy=disabled` to disables the - sharding so that all the test outputs are in one file. However, it may slow - down the tests for not running in parallel and may cause the test to timeout - but it could be useful when you need to execute a single test or more in - general your filtered/selected tests have a very low execution time and the - sharding + **Note:** You can add `--test_sharding_strategy=disabled` to the `flags` to + disable the sharding so that all the test outputs are in one file. However, + it may slow down the tests for not running in parallel and may cause the + test to timeout but it could be useful when you need to execute a single + test or more in general your filtered/selected tests have a very low + execution time and the sharding [could create an overhead on the test esecution](https://github.com/bazelbuild/bazel/issues/2113#issuecomment-264054799). 2. Using [Docker](https://www.docker.com) and TensorFlow's CI scripts. diff --git a/tensorflow/workspace2.bzl b/tensorflow/workspace2.bzl index b55649f4353c87..e934ddac7b778e 100644 --- a/tensorflow/workspace2.bzl +++ b/tensorflow/workspace2.bzl @@ -497,8 +497,8 @@ def _tf_repositories(): tf_http_archive( name = "absl_py", - sha256 = "0d37dc61cf29b04e42ed13b5fe3f578c05a1d07c75e5d7df826f0c2dc8dd2f53", - strip_prefix = "abseil-py-pypi-v0.14.1", + sha256 = "0be59b82d65dfa1f995365dcfea2cc57989297b065fda696ef13f30fcc6c8e5b", + strip_prefix = "abseil-py-pypi-v0.15.0", system_build_file = "//third_party/systemlibs:absl_py.BUILD", system_link_files = { "//third_party/systemlibs:absl_py.absl.BUILD": "absl/BUILD", @@ -507,8 +507,8 @@ def _tf_repositories(): "//third_party/systemlibs:absl_py.absl.logging.BUILD": "absl/logging/BUILD", }, urls = [ - "https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-py/archive/pypi-v0.14.1.tar.gz", - "https://github.com/abseil/abseil-py/archive/pypi-v0.14.1.tar.gz", + "https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-py/archive/pypi-v0.15.0.tar.gz", + "https://github.com/abseil/abseil-py/archive/pypi-v0.15.0.tar.gz", ], )