From c9ac25ea80404c2c71b405262a09b3a07bd34721 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Thu, 7 May 2026 17:02:25 -0300 Subject: [PATCH] SIENTIAPDE-1646 Update README, requirements, and E2E tests for improved configuration and functionality - Enhanced the README with updated model configuration examples, including the addition of an alias for production. - Removed the `requirements-light.txt` file and updated `requirements-local.txt` and `requirements.txt` to replace `asyncua` with `opcua`. - Refactored E2E test scenarios to utilize scenario input files for better maintainability and clarity. - Improved test coverage for MinIO offload functionality and added new helper functions for loading scenario inputs. - Updated `values.yaml` to reflect new global configurations and environment variables for the laborious worker. --- requirements-light.txt | 12 ------------ tests/conftest.py | 13 +++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 requirements-light.txt diff --git a/requirements-light.txt b/requirements-light.txt deleted file mode 100644 index f105052..0000000 --- a/requirements-light.txt +++ /dev/null @@ -1,12 +0,0 @@ -temporalio -psycopg2-binary -sqlalchemy -asyncua -redis -git+ssh://git@github.com/Aignosi/sientia-dataops-library.git@1.12.0 -prometheus-client -botocore -boto3 -s3fs -pyarrow -mlflow \ No newline at end of file diff --git a/tests/conftest.py b/tests/conftest.py index e46ac68..eb23f39 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,6 +3,19 @@ import os from sientia_do.temporal.activities.postgres_sync import Postgres +def _noop_postgres_del(_self): + """ + Unit tests use MagicMock metrics controllers; postgres_sync.Postgres.__del__ calls + close() during GC and triggers async shutdown. Explicit ``close()`` is covered in tests. + """ + return None + + +Postgres.__del__ = _noop_postgres_del # type: ignore[method-assign] + +from sientia_do.temporal.activities.postgres_sync import Postgres + + def _noop_postgres_del(_self): """ Unit tests use MagicMock metrics controllers; postgres_sync.Postgres.__del__ calls