Describe the bug
Currently the Github Actions workflow fails on all commits, PRs and releases due to repeated errors in the "Build and publish the argilla sdk python package" workflow due to a build or test failure. This causes the workflow to halt and prevents the CI pipeline from completing - leading us to approve PRs without a successful build.
The code involved starts from the workflow in .github/workflows/argilla.yml
Stacktrace and Code to create the bug
Workflow run:
Run pdm run test tests/unit
============================= test session starts ==============================
platform linux -- Python 3.11.11, pytest-8.3.2, pluggy-1.5.0
rootdir: /home/runner/work/extralit/extralit/argilla
configfile: pyproject.toml
plugins: pytest_httpx-0.29.0, retry-1.6.3, typeguard-4.4.2, anyio-4.4.0, mock-3.14.0
collected 241 items / 2 errors
==================================== ERRORS ====================================
_____________ ERROR collecting tests/unit/cli/schemas/test_list.py _____________
ImportError while importing test module '/home/runner/work/extralit/extralit/argilla/tests/unit/cli/schemas/test_list.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/cli/schemas/test_list.py:3: in <module>
from argilla.client.sdk.v1.files.models import ListObjectsResponse, ObjectMetadata
E ModuleNotFoundError: No module named 'argilla.client.sdk'; 'argilla.client' is not a package
_________ ERROR collecting tests/unit/server/commons/test_settings.py __________
ImportError while importing test module '/home/runner/work/extralit/extralit/argilla/tests/unit/server/commons/test_settings.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/unit/server/commons/test_settings.py:16: in <module>
from argilla_server.settings import Settings
E ModuleNotFoundError: No module named 'argilla_server'
=============================== warnings summary ===============================
.venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:291
/home/runner/work/extralit/extralit/argilla/.venv/lib/python3.11/site-packages/pydantic/_internal/_config.py:291: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.8/migration/
warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/unit/cli/schemas/test_list.py
ERROR tests/unit/server/commons/test_settings.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 2 errors in 0.55s =========================
Error: Process completed with exit code 2.
Expected behavior
There shouldn't be any ModuleNotFoundError errors.
Additional context
These GitHub Actions workflows started breaking on the argilla v2 update that was recently merged, but has not been fully tested with the Extralit workflow.
Describe the bug
Currently the Github Actions workflow fails on all commits, PRs and releases due to repeated errors in the "Build and publish the
argillasdk python package" workflow due to a build or test failure. This causes the workflow to halt and prevents the CI pipeline from completing - leading us to approve PRs without a successful build.The code involved starts from the workflow in .github/workflows/argilla.yml
Stacktrace and Code to create the bug
Workflow run:
Expected behavior
There shouldn't be any
ModuleNotFoundErrorerrors.Additional context
These GitHub Actions workflows started breaking on the
argillav2 update that was recently merged, but has not been fully tested with the Extralit workflow.