Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
run bodo tests in separate pytest session
  • Loading branch information
= committed Jan 27, 2025
commit 829e8792879002d6ded192f811eb8c41c60155f2
13 changes: 12 additions & 1 deletion ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,19 @@ COVERAGE="-s --cov=pandas --cov-report=xml --cov-append --cov-config=pyproject.t
PYTEST_CMD="MESONPY_EDITABLE_VERBOSE=1 PYTHONDEVMODE=1 PYTHONWARNDEFAULTENCODING=1 pytest -r fE -n $PYTEST_WORKERS --dist=worksteal $TEST_ARGS $COVERAGE $PYTEST_TARGET"

if [[ "$PATTERN" ]]; then
PYTEST_CMD="$PYTEST_CMD -m \"$PATTERN\""
PYTEST_CMD="$PYTEST_CMD -m \"$PATTERN and not bodo_udf_engine\""
else
PYTEST_CMD="$PYTEST_CMD -m \"not bodo_udf_engine\""
fi

echo $PYTEST_CMD
sh -c "$PYTEST_CMD"

# Workaround for running bodo tests. Needs to be in a separate session to prevent
# conflicts with numba extensions and run without PYTHONDEVMODE=1 since it can cause segmentation faults during compilation.
if [[ "$PYTEST_WORKERS" == "0" ]]; then
PYTEST_CMD_BODO_UDF_ENGINE="MESONPY_EDITABLE_VERBOSE=1 PYTHONWARNDEFAULTENCODING=1 pytest -r fE -n $PYTEST_WORKERS --dist=worksteal $TEST_ARGS $COVERAGE $PYTEST_TARGET -m \"bodo_udf_engine\""
echo "Running Bodo Tests..."
echo $PYTEST_CMD_BODO_UDF_ENGINE
sh -c "$PYTEST_CMD_BODO_UDF_ENGINE"
fi
Loading