Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 19c8871

Browse files
afrozenatorCopybara-Service
authored andcommitted
- Disable the MuJoCo test from Travis since it needs installation, license and
setup. - Added a missing set_status from a previous change. - Disable overly verbose warnings summary from pytest. PiperOrigin-RevId: 237319913
1 parent 8de0584 commit 19c8871

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

oss_scripts/oss_tests.sh

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ set_status
4343
# trax tests need C++
4444
# others (see below) enable eager, so can't be tested along with the others in
4545
# pytest
46-
pytest \
46+
pytest --disable-warnings \
4747
--ignore=tensor2tensor/bin/t2t_trainer_test.py \
4848
--ignore=tensor2tensor/data_generators/algorithmic_math_test.py \
4949
--ignore=tensor2tensor/data_generators/allen_brain_test.py \
5050
--ignore=tensor2tensor/data_generators/ops/pack_sequences_ops_test.py \
5151
--ignore=tensor2tensor/data_generators/ops/subword_text_encoder_ops_test.py \
5252
--ignore=tensor2tensor/data_generators/problem_test.py \
53+
--ignore=tensor2tensor/envs/mujoco_problems_test.py \
5354
--ignore=tensor2tensor/layers/bayes_test.py \
5455
--ignore=tensor2tensor/layers/common_attention_test.py \
5556
--ignore=tensor2tensor/layers/common_layers_test.py \
@@ -66,10 +67,10 @@ pytest \
6667
--ignore=tensor2tensor/models/video/nfg_uncond_test.py \
6768
--ignore=tensor2tensor/rl \
6869
--ignore=tensor2tensor/trax \
70+
--ignore=tensor2tensor/utils/registry_test.py \
6971
--ignore=tensor2tensor/utils/t2t_model_test.py \
7072
--ignore=tensor2tensor/utils/test_utils.py \
7173
--ignore=tensor2tensor/utils/test_utils_test.py \
72-
--ignore=tensor2tensor/utils/registry_test.py \
7374
--ignore=tensor2tensor/utils/trainer_lib_test.py \
7475
--ignore=tensor2tensor/visualization/visualization_test.py \
7576
--deselect=tensor2tensor/utils/beam_search_test.py::BeamSearchTest::testTPUBeam
@@ -80,7 +81,7 @@ set_status
8081
# ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/jaxlib/_pywrap_xla.so)
8182

8283
# These tests enable eager, so are tested separately.
83-
pytest \
84+
pytest --disable-warnings \
8485
tensor2tensor/data_generators/problem_test.py \
8586
tensor2tensor/layers/bayes_test.py \
8687
tensor2tensor/layers/common_attention_test.py \
@@ -94,17 +95,18 @@ pytest \
9495
tensor2tensor/utils/t2t_model_test.py \
9596
tensor2tensor/utils/test_utils_test.py \
9697
--deselect=tensor2tensor/layers/common_video_test.py::CommonVideoTest::testGifSummary
98+
set_status
9799

98-
pytest tensor2tensor/utils/registry_test.py
100+
pytest --disable-warnings tensor2tensor/utils/registry_test.py
99101
set_status
100102

101-
pytest tensor2tensor/utils/trainer_lib_test.py
103+
pytest --disable-warnings tensor2tensor/utils/trainer_lib_test.py
102104
set_status
103105

104-
pytest tensor2tensor/visualization/visualization_test.py
106+
pytest --disable-warnings tensor2tensor/visualization/visualization_test.py
105107
set_status
106108

107-
pytest tensor2tensor/data_generators/allen_brain_test.py
109+
pytest --disable-warnings tensor2tensor/data_generators/allen_brain_test.py
108110
set_status
109111

110112

@@ -113,17 +115,19 @@ if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]] && [[ "$TF_VERSION" == "tf-nightly"
113115
then
114116
# Ignores:
115117
# * Glow requires the CIFAR-10 dataset to be generated
116-
pytest tensor2tensor/models/research \
118+
pytest --disable-warnings tensor2tensor/models/research \
117119
--ignore=tensor2tensor/models/research/glow_test.py
118120
set_status
119121
fi
120122

121123
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]] && [[ "$TF_VERSION" == "$TF_LATEST" ]]
122124
then
123125
# TODO(afrozm): Once we drop support for 1.10 we can get rid of this.
124-
pytest tensor2tensor/utils/beam_search_test.py::BeamSearchTest::testTPUBeam
126+
pytest --disable-warnings \
127+
tensor2tensor/utils/beam_search_test.py::BeamSearchTest::testTPUBeam
125128
set_status
126129
# TODO(afrozm): Enable other tests in the RL directory.
130+
# Can't add disable warning here since it parses flags.
127131
pytest tensor2tensor/rl/trainer_model_based_test.py
128132
set_status
129133
jupyter nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute tensor2tensor/notebooks/hello_t2t.ipynb

0 commit comments

Comments
 (0)