From d91e4503c0d5b79e6337c955fe44ab77c9f5ab22 Mon Sep 17 00:00:00 2001 From: Ben Frederickson Date: Fri, 5 Aug 2022 16:08:59 -0700 Subject: [PATCH] Fix nightly container builds Our nightly container builds are failing, because all the integration tests are skipped (since we don't have faiss/feast on the containers). pytest returns error code '5' in this case, causing us to fail the container. Use the workaround as suggested https://github.com/pytest-dev/pytest/issues/2393#issuecomment-452634365 --- tests/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 6e7f95582..b54435c7c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -22,3 +22,9 @@ import pytest REPO_ROOT = Path(__file__).parent.parent + + +def pytest_sessionfinish(session, exitstatus): + # if all the tests are skipped, lets not fail the entire CI run + if exitstatus == 5: + session.exitstatus = 0