From b4075127520c2040c881ebf3470c8feafa235c4c Mon Sep 17 00:00:00 2001 From: RobertSamoilescu Date: Mon, 17 Jun 2024 16:25:03 +0100 Subject: [PATCH] Fixed macos kafka CI (#1807) * Update tox to run kafka separately. * Included clarification comments. --- tox.ini | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 173a0b803..56905ebaa 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,11 @@ commands_pre = poetry install --sync --no-root commands = python -m pytest {posargs} -n auto \ - {toxinidir}/tests + {toxinidir}/tests --ignore={toxinidir}/tests/kafka + # kafka tests are failinig for macos when running in parallel + # with the entire test suite. So, we run them separately. + python -m pytest {posargs} -n auto \ + {toxinidir}/tests/kafka set_env = GITHUB_SERVER_URL = {env:GITHUB_SERVER_URL:https\://github.com} GITHUB_REPOSITORY = {env:GITHUB_REPOSITORY:SeldonIO/MLServer} @@ -41,7 +45,12 @@ commands = {toxinidir}/runtimes/mllib \ {toxinidir}/runtimes/lightgbm \ {toxinidir}/runtimes/mlflow \ - {toxinidir}/runtimes/huggingface + {toxinidir}/runtimes/huggingface \ + --ignore={toxinidir}/tests/kafka + # kafka tests are failinig for macos when running in parallel + # with the entire test suite. So, we run them separately. + python -m pytest {posargs} -n auto \ + {toxinidir}/tests/kafka set_env = GITHUB_SERVER_URL = {env:GITHUB_SERVER_URL:https\://github.com} GITHUB_REPOSITORY = {env:GITHUB_REPOSITORY:SeldonIO/MLServer}