From 12fc173c388b40ebf60815f0af3377a8d1a43b18 Mon Sep 17 00:00:00 2001 From: Omer Lachish Date: Thu, 20 Feb 2025 15:31:09 +0100 Subject: [PATCH] allow control over pytest concurrency --- Makefile | 3 ++- NEXT_CHANGELOG.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eb8fe8397..5bf2d6462 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,9 @@ lint: test: pytest -m 'not integration and not benchmark' --cov=databricks --cov-report html tests +PYTEST_CONCURRENCY ?= auto integration: - pytest -n auto -m 'integration and not benchmark' --reruns 2 --dist loadgroup --cov=databricks --cov-report html tests + pytest -n $(PYTEST_CONCURRENCY) -m 'integration and not benchmark' --reruns 2 --dist loadgroup --cov=databricks --cov-report html tests benchmark: pytest -m 'benchmark' tests diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 44956e0ce..7507c8bac 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -9,6 +9,7 @@ ### Documentation ### Internal Changes +* Allow control over pytest concurrency ([#894](https://github.com/databricks/databricks-sdk-py/pull/894)) * Introduce automated tagging ([#888](https://github.com/databricks/databricks-sdk-py/pull/888)) * Update Jobs GetJob API to support paginated responses ([#869](https://github.com/databricks/databricks-sdk-py/pull/869)).