Skip to content

Commit 3d52466

Browse files
fredrectensorflower-gardener
authored andcommitted
Exclude enormous-sized tests from the CI
//tensorflow_model_optimization/python/core/quantization/keras:quantize_models_test uses more RAM that the CI machine provides, causing long build times and timeout failures. PiperOrigin-RevId: 415435354
1 parent 78fbab2 commit 3d52466

File tree

2 files changed

+6
-3
lines changed
  • ci/kokoro
  • tensorflow_model_optimization/python/core/quantization/keras

2 files changed

+6
-3
lines changed

ci/kokoro/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ set -o pipefail # Treat the failure of a command in a pipeline as error.
2828
# parameters, will print the full command, with credentials, in the build logs.
2929
# set -x
3030

31-
pip3 install --requirement "requirements.txt"
31+
pip install --requirement "requirements.txt"
3232

33-
bazel test --python_path=$PYTHON_BIN //tensorflow_model_optimization/python/core/...
33+
# Run the tests.
34+
# Some tests requiring more RAM that the CI machine provides are disabled.
35+
bazel test --test_size_filters="-enormous" \
36+
//tensorflow_model_optimization/python/core/...

tensorflow_model_optimization/python/core/quantization/keras/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ py_strict_test(
297297

298298
py_strict_test(
299299
name = "quantize_models_test",
300-
size = "large",
300+
size = "enormous",
301301
srcs = ["quantize_models_test.py"],
302302
flaky = True,
303303
python_version = "PY3",

0 commit comments

Comments
 (0)