Skip to content

Commit 1898301

Browse files
authored
build: Run databricks dataset tests sequentially instead of in parallel (#1037)
* Try run dataset tests sequentially instead of in parallel Signed-off-by: Merel Theisen <[email protected]> * Run databricks tests sequentially and the rest in parallel Signed-off-by: Merel Theisen <[email protected]> --------- Signed-off-by: Merel Theisen <[email protected]>
1 parent 2a53f33 commit 1898301

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ check-datasets-docs:
5757

5858
# Run test_tensorflow_model_dataset separately, because these tests are flaky when run as part of the full test-suite
5959
dataset-tests: dataset-doctests
60-
cd kedro-datasets && pytest tests --cov-config pyproject.toml --numprocesses 4 --dist loadfile --ignore tests/tensorflow
61-
cd kedro-datasets && pytest tests/tensorflow/test_tensorflow_model_dataset.py --no-cov
60+
cd kedro-datasets && pytest tests --cov-config pyproject.toml --numprocesses 4 --dist loadfile --ignore tests/tensorflow --ignore tests/databricks
61+
cd kedro-datasets && pytest tests/tensorflow/test_tensorflow_model_dataset.py --no-cov
62+
cd kedro-datasets && pytest tests/databricks --no-cov
6263

6364
extra_pytest_args-no-spark=--ignore kedro_datasets/databricks --ignore kedro_datasets/spark
6465
extra_pytest_args=

kedro-datasets/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ version = {attr = "kedro_datasets.__version__"}
321321
fail_under = 100
322322
show_missing = true
323323
# temporarily ignore kedro_datasets/__init__.py in coverage report
324-
omit = ["tests/*", "kedro_datasets/holoviews/*", "kedro_datasets/tensorflow/*", "kedro_datasets/snowflake/*", "kedro_datasets/__init__.py", "kedro_datasets/conftest.py"]
324+
omit = ["tests/*", "kedro_datasets/holoviews/*", "kedro_datasets/tensorflow/*", "kedro_datasets/databricks/*", "kedro_datasets/snowflake/*", "kedro_datasets/__init__.py", "kedro_datasets/conftest.py"]
325325
exclude_also = ["raise NotImplementedError", "if TYPE_CHECKING:"]
326326

327327
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)