Skip to content

Commit 775374f

Browse files
committed
TEST
1 parent e66341b commit 775374f

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/run-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [ -z "$NO_COMMON_TESTS" ]; then
2424
pytest $PYTEST_CONFIG mars/remote mars/storage mars/lib mars/metrics
2525
mv .coverage build/.coverage.tileable.file
2626

27-
pytest $PYTEST_CONFIG --forked --ignore mars/tensor --ignore mars/dataframe \
27+
pytest $PYTEST_CONFIG --forked -v --ignore mars/tensor --ignore mars/dataframe \
2828
--ignore mars/learn --ignore mars/remote mars
2929
mv .coverage build/.coverage.main.file
3030
coverage combine build/ && coverage report

ci/reload-env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
export UNAME="$(uname | awk '{print tolower($0)}')"
4-
export PYTEST_CONFIG_WITHOUT_COV="--log-level=DEBUG --timeout=1500 -W ignore::PendingDeprecationWarning"
4+
export PYTEST_CONFIG_WITHOUT_COV="-p no:logging -s --timeout=1500 -W ignore::PendingDeprecationWarning"
55
export PYTEST_CONFIG="$PYTEST_CONFIG_WITHOUT_COV --cov-config=setup.cfg --cov-report= --cov=mars"
66

77
if [[ "$GITHUB_REF" =~ ^"refs/tags/" ]]; then

mars/tests/test_cluster.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,19 @@ def _terminate(pid: int):
4747
continue
4848

4949

50+
@pytest.fixture
51+
def config_log():
52+
import logging
53+
logging.basicConfig(level=logging.WARNING)
54+
try:
55+
yield
56+
finally:
57+
logging.basicConfig(level=logging.DEBUG)
58+
59+
5060
@flaky(max_runs=3)
5161
@pytest.mark.asyncio
52-
async def test_cluster():
62+
async def test_cluster(config_log):
5363
port = get_next_port()
5464
web_port = get_next_port()
5565
supervisor_addr = f"127.0.0.1:{port}"

0 commit comments

Comments
 (0)