Skip to content

Commit

Permalink
Fix nightly container builds (#518)
Browse files Browse the repository at this point in the history
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 pytest-dev/pytest#2393 (comment)
  • Loading branch information
benfred committed Aug 5, 2022
1 parent af13180 commit 562f1bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 562f1bf

Please sign in to comment.