From 06b10956e7caf047fff2982eca4009d380ca0e11 Mon Sep 17 00:00:00 2001 From: bhack Date: Mon, 18 Oct 2021 16:47:15 +0200 Subject: [PATCH 1/5] Small improvment and fix on bazel test flags --- CONTRIBUTING.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7c3ef68a313..bacf3162fbc 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,7 +216,7 @@ 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_arg=-- --test_arg=-k=*LoadTest.test_capture_variables* ``` **Note:** You can add `--test_sharding_strategy=disabled` to disables the From a4cff40e6376990aba6161ac3ce6b61e969d46c7 Mon Sep 17 00:00:00 2001 From: bhack Date: Mon, 18 Oct 2021 16:48:54 +0200 Subject: [PATCH 2/5] Update CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bacf3162fbc..ef20154ae0d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -219,7 +219,7 @@ There are two ways to run TensorFlow unit tests. bazel test ${flags} //tensorflow/python/saved_model:load_test --test_arg=-- --test_arg=-k=*LoadTest.test_capture_variables* ``` - **Note:** You can add `--test_sharding_strategy=disabled` to disables the + **Note:** You can add `--test_sharding_strategy=disabled` to the `flags` 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 From 778fc6369f8232f268cf82f14bb081318934e6f5 Mon Sep 17 00:00:00 2001 From: bhack Date: Tue, 19 Oct 2021 17:19:04 +0200 Subject: [PATCH 3/5] Fix typo --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ef20154ae0d..44c769540a5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -219,7 +219,7 @@ There are two ways to run TensorFlow unit tests. bazel test ${flags} //tensorflow/python/saved_model:load_test --test_arg=-- --test_arg=-k=*LoadTest.test_capture_variables* ``` - **Note:** You can add `--test_sharding_strategy=disabled` to the `flags` to disables the + **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 From 4bdc2265d5d5dacaa49f143950314fd0b7e02dae Mon Sep 17 00:00:00 2001 From: bhack Date: Tue, 19 Oct 2021 20:10:41 +0200 Subject: [PATCH 4/5] Use finally available test_filter --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 44c769540a5..7b2f119e704 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -216,7 +216,7 @@ There are two ways to run TensorFlow unit tests. (Requires `python>=3.7`) ```bash - bazel test ${flags} //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 the `flags` to disable the From c250090494ec2c9979ed0ddfbd86428a98c4e3b9 Mon Sep 17 00:00:00 2001 From: bhack Date: Tue, 19 Oct 2021 20:15:34 +0200 Subject: [PATCH 5/5] Update abseil-py to 0.15.0 --- tensorflow/workspace2.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tensorflow/workspace2.bzl b/tensorflow/workspace2.bzl index 8efc87575d6..a257371087e 100644 --- a/tensorflow/workspace2.bzl +++ b/tensorflow/workspace2.bzl @@ -498,8 +498,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", @@ -508,8 +508,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", ], )