Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ markers = [
]
asyncio_mode = "auto"
# Default timeout of 5 minutes
timeout = 300
isolate_timeout = 300
2 changes: 1 addition & 1 deletion python/tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest
pytest-timeout
pytest-asyncio
pytest-isolate
pytest-xdist
pyright
5 changes: 3 additions & 2 deletions scripts/common-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,16 @@ run_test_groups() {
pkill -9 pytest || true
sleep 2
# Conditionally set environment variable for pytest
# Isolate runs each test in a separate forked process which enhances reliability.
if [[ "$enable_v1" == "1" ]]; then
MONARCH_HOST_MESH_V1_REMOVE_ME_BEFORE_RELEASE=1 \
LC_ALL=C pytest python/tests/ -s -v -m "not oss_skip" \
LC_ALL=C pytest --isolate -n auto python/tests/ -s -v -m "not oss_skip" \
--ignore-glob="**/meta/**" \
--dist=no \
--group=$GROUP \
--splits=10
else
LC_ALL=C pytest python/tests/ -s -v -m "not oss_skip" \
LC_ALL=C pytest --isolate -n auto python/tests/ -s -v -m "not oss_skip" \
--ignore-glob="**/meta/**" \
--dist=no \
--group=$GROUP \
Expand Down
Loading