Skip to content

Commit 6b61a3f

Browse files
committed
Modify retry times.
1 parent 7d1e1dd commit 6b61a3f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sdks/python/tox.ini

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ deps =
7777
numpy==1.26.4
7878
commands =
7979
python apache_beam/examples/complete/autocomplete_test.py
80-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
80+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'
8181

8282
[testenv:py{310,311,312,313}-macos]
8383
commands_pre =
@@ -87,12 +87,12 @@ commands_pre =
8787
bash {toxinidir}/scripts/run_tox_cleanup.sh
8888
commands =
8989
python apache_beam/examples/complete/autocomplete_test.py
90-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
90+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'
9191

9292
[testenv:py{310,311,312,313}-win]
9393
commands =
9494
python apache_beam/examples/complete/autocomplete_test.py
95-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
95+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'
9696
install_command = {envbindir}/python.exe {envbindir}/pip.exe install --retries 10 {opts} {packages}
9797
list_dependencies_command = {envbindir}/python.exe {envbindir}/pip.exe freeze
9898

@@ -101,7 +101,7 @@ list_dependencies_command = {envbindir}/python.exe {envbindir}/pip.exe freeze
101101
extras = test,hadoop,gcp,interactive,dataframe,aws,azure
102102
commands =
103103
python apache_beam/examples/complete/autocomplete_test.py
104-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
104+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'
105105

106106
[testenv:py{310,311}-ml]
107107
# Don't set TMPDIR to avoid "AF_UNIX path too long" errors in certain tests.
@@ -114,7 +114,7 @@ extras = test,gcp,dataframe,ml_test
114114
commands =
115115
# Log tensorflow version for debugging
116116
/bin/sh -c "pip freeze | grep -E tensorflow"
117-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
117+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'
118118

119119
[testenv:py312-ml]
120120
# many packages do not support py3.12
@@ -126,7 +126,7 @@ extras = test,gcp,dataframe,p312_ml_test
126126
commands =
127127
# Log tensorflow version for debugging
128128
/bin/sh -c "pip freeze | grep -E tensorflow"
129-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
129+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'
130130

131131
[testenv:py313-ml]
132132
# many packages do not support py3.13, and datatables breaks after 3.12.
@@ -138,22 +138,22 @@ extras = test,gcp,dataframe,p313_ml_test
138138
commands =
139139
# Log tensorflow version for debugging
140140
/bin/sh -c "pip freeze | grep -E tensorflow"
141-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
141+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'
142142

143143
[testenv:py{310,311,31,313}-dask]
144144
extras = test,dask,dataframes
145145
commands_pre =
146146
pip install 'distributed>=2024.4.2' 'dask>=2024.4.2'
147147
commands =
148-
bash {toxinidir}/scripts/run_pytest.sh {envname} {toxinidir}/apache_beam/runners/dask/ '--reruns 3 --reruns-delay 5'
148+
bash {toxinidir}/scripts/run_pytest.sh {envname} {toxinidir}/apache_beam/runners/dask/ '--reruns 1 --reruns-delay 5'
149149

150150
[testenv:py{310,311,312,313}-win-dask]
151151
# use the tight range since the latest dask requires cloudpickle 3.0
152152
commands_pre =
153153
pip install 'distributed>=2024.4.2,<2024.9.0' 'dask>=2024.4.2,<2024.9.0'
154154
commands =
155155
python apache_beam/examples/complete/autocomplete_test.py
156-
bash {toxinidir}/scripts/run_pytest.sh {envname} {toxinidir}/apache_beam/runners/dask/ '--reruns 3 --reruns-delay 5'
156+
bash {toxinidir}/scripts/run_pytest.sh {envname} {toxinidir}/apache_beam/runners/dask/ '--reruns 1 --reruns-delay 5'
157157
install_command = {envbindir}/python.exe {envbindir}/pip.exe install --retries 10 {opts} {packages}
158158
list_dependencies_command = {envbindir}/python.exe {envbindir}/pip.exe freeze
159159

@@ -175,7 +175,7 @@ setenv =
175175
# NOTE: we could add ml_test to increase the collected code coverage metrics, but it would make the suite slower.
176176
extras = test,hadoop,gcp,interactive,dataframe,aws,redis
177177
commands =
178-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" "--cov-report=xml --cov=. --cov-append --reruns 3 --reruns-delay 5"
178+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" "--cov-report=xml --cov=. --cov-append --reruns 1 --reruns-delay 5"
179179

180180
[testenv:lint]
181181
# Don't set TMPDIR to avoid "AF_UNIX path too long" errors in pylint.
@@ -387,15 +387,15 @@ commands =
387387
# Log pandas and numpy version for debugging
388388
/bin/sh -c "pip freeze | grep -E '(pandas|numpy)'"
389389
# Run all DataFrame API unit tests
390-
bash {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/dataframe' '--reruns 3 --reruns-delay 5'
390+
bash {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/dataframe' '--reruns 1 --reruns-delay 5'
391391

392392
[testenv:py{310,311}-tft-{113,114}]
393393
deps =
394394
# Help pip resolve conflict with typing-extensions due to an old version of tensorflow https://github.com/apache/beam/issues/30852
395395
113: pydantic<2.0
396396
114: tensorflow_transform>=1.14.0,<1.15.0
397397
commands =
398-
bash {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/ml/transforms apache_beam/examples/snippets/transforms/elementwise/mltransform_test.py' '--reruns 3 --reruns-delay 5'
398+
bash {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/ml/transforms apache_beam/examples/snippets/transforms/elementwise/mltransform_test.py' '--reruns 1 --reruns-delay 5'
399399

400400
[testenv:py{310,311}-pytorch-{19,110,111,112,113}]
401401
deps =
@@ -587,12 +587,12 @@ commands =
587587
# Log aiplatform and its dependencies version for debugging
588588
/bin/sh -c "pip freeze | grep -E tensorflow"
589589
# Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
590-
bash {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/ml/transforms/embeddings' '--reruns 3 --reruns-delay 5'
590+
bash {toxinidir}/scripts/run_pytest.sh {envname} 'apache_beam/ml/transforms/embeddings' '--reruns 1 --reruns-delay 5'
591591

592592
[testenv:py{310,312}-dill]
593593
extras = test,dill
594594
commands =
595595
# Log dill version for debugging
596596
/bin/sh -c "pip freeze | grep -E dill"
597597
# Run all dill-specific tests
598-
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 3 --reruns-delay 5'
598+
bash {toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" '--reruns 1 --reruns-delay 5'

0 commit comments

Comments
 (0)