Commit Graph

32 Commits

Author SHA1 Message Date
vitor-aignosi
afaf017340 SIENTIAPDE-1174
SIENTIAPDE-1174
chore: update sientia-dataops-library dependency version from 1.3.7 to 1.3.8 in requirements.txt

- Removed unused test group from test_formatters.py.
- Added new test case for handling scenarios with no log reports in test_alerts.py.
- Added new test case for handling scenarios with no groups in test_reports.py.
2025-08-05 13:51:34 -03:00
vitor-aignosi
3a8eb04462 SIENTIAPDE-1172
fix: add conditional login for SMTP server and enhance test coverage

- Updated the Email class to conditionally log in to the SMTP server only if a sender password is provided, improving security.
- Enhanced test cases for the try_send_email method to cover various scenarios, including successful email sending and handling SMTP disconnections.
2025-07-30 09:25:02 -03:00
vitor-aignosi
dd22e8a553 SIENTIAPDE-1172
Update values.yaml and tests to incorporate mail_type parameter for notification handling

- Changed GITHUB_BRANCH in values.yaml to reflect the new alert pipeline.
- Added 'mail_type' parameter to various test cases in SlotManager and notification workflows to enhance notification specificity and tracking.
- Ensured consistency in test data structures across multiple test functions.
2025-07-29 12:50:03 -03:00
vitor-aignosi
6f6094b2ce SIENTIAPDE-1172
feat: enhance email notifications and orchestrator activities for reports

- Updated email HTML structure to clearly present errors, warnings, and info notifications.
- Introduced a new method in the Formatters class to filter notification reports based on group configurations.
- Enhanced the Reports workflow to integrate the new filtering functionality and manage notification packages effectively.
- Adjusted SlotManager to store timestamps with mail type specificity for better tracking.
- Improved test coverage for the new filtering functionality in the Formatters class.
2025-07-29 11:42:05 -03:00
vitor-aignosi
bc456cc8be SIENTIAPDE-1172
refactor: streamline email generation and enhance notification handling

- Updated email HTML structure to improve clarity and presentation of notifications.
- Enhanced notification generator to better manage execution counts and output formatting.
- Refactored Email class to improve error handling and logging during email sending.
- Adjusted EmailBuilder to efficiently process error, warning, and info models.
- Improved test coverage for email and notification functionalities to ensure reliability.
2025-07-29 10:25:31 -03:00
vitor-aignosi
ab657d0fda SIENTIAPDE-1172
feat: enhance email and slot manager activities with new filtering and caching functionalities

- Updated Email class to improve attachment handling and logging.
- Refactored Formatters class to process notifications more effectively by grouping them based on their configurations.
- Introduced new methods in SlotManager for filtering notification alerts and storing notification cache.
- Enhanced Alerts workflow to integrate new filtering and caching activities.
- Added tests for new functionalities in SlotManager and Formatters classes to ensure reliability.
2025-07-28 15:07:09 -03:00
vitor-aignosi
f2cb0f057d SIENTIAPDE-1172
refactor: simplify EmailBuilder parameters and remove unused templates

- Removed unused template file attributes from EmailBuilder class.
- Updated parameters method to eliminate report_data argument, streamlining the function for better clarity and efficiency.
2025-07-25 16:51:56 -03:00
vitor-aignosi
2a5534cf64 SIENTIAPDE-1172
feat: enhance orchestrator activities with new email and Postgres integrations

- Added Email and Postgres classes to the Activities class for improved functionality.
- Introduced new methods in MongoDB and SlotManager for loading and managing data.
- Updated requirements.txt to include jinja2.
- Added new formatting activity for log reports in Formatters class.
- Enhanced test coverage for MongoDB and SlotManager activities.
2025-07-25 16:03:39 -03:00
vitor-aignosi
1bdfc48cb2 SIENTIAPDE-1171
feat: enhance test coverage for minimal_retrain workflow

- Added a new test for the minimal_retrain function to validate its configuration output.
- Updated the test_process_schedules to include a new schedule entry for minimal_retrain, ensuring comprehensive testing of the workflow integration.
2025-07-23 16:56:24 -03:00
vitor-aignosi
4905e61214 SIENTIAPDE-1166
feat: add TTL index functionality to MongoDB activities and update requirements

- Updated MongoDB class to accept TTL index duration in seconds.
- Implemented create_collection_with_ttl_index method to create collections with TTL indexes.
- Added environment variable for TTL index duration in connectors_config.
- Updated tests to cover new TTL index functionality and ensure proper behavior.
- Bumped sientia-dataops-library version to 1.3.4 in requirements.txt.
2025-07-22 15:09:15 -03:00
vitor-aignosi
5591557209 SIENTIAPDE-1151
test: add unit tests for error handling in process_slots and build_tag_config functions to ensure proper notification on missing servers
2025-07-21 16:59:46 -03:00
vitor-aignosi
1d7ce518bd SIENTIAPDE-1163
refactor: update requirements to point to local sientia-dataops-library path; modify orchestration and test files to use start_activity_method for consistency
2025-07-17 11:03:05 -03:00
vitor-aignosi
d60062af74 SIENTIAPDE-1163
refactor: update MongoDB notification IDs for error handling in activities; add tests for error scenarios in MongoDB and TemporalManager activities to ensure proper notification sending on failures
2025-07-16 15:18:49 -03:00
vitor-aignosi
b67d23da1f SIENTIAPDE-1163
refactor: update notification handling in activities to include metadata in notifications, enhancing context for error reporting and success messages; update requirements to use version 1.3.0 of the sientia-dataops-library
2025-07-16 13:14:16 -03:00
vitor-aignosi
2533ea882f SIENTIAPDE-1150
refactor: update logging in Couchbase activity to use f-strings for improved readability; modify orchestration workflow to conditionally execute report handlers and replace method calls for consistency
2025-07-15 10:03:04 -03:00
vitor-aignosi
0fd631a029 SIENTIAPDE-1150
SIENTIAPDE-1150: enhance MongoDB activities to filter successful pipelines; update orchestration workflow to include timestamp management for updated, created, and deleted pipelines; adjust tests to reflect new success criteria
2025-07-14 16:10:51 -03:00
vitor-aignosi
b3069c8a58 SIENTIAPDE-1150
chore: update image tag to 0.2.4 in values.yaml; refactor logging in slot_manager and temporal_manager for improved readability; modify MongoDB and Redis configurations for better defaults; enhance worker.py with new activities and error handling
2025-07-14 13:42:10 -03:00
vitor-aignosi
43206b578d SIENTIAPDE-1150
fix: implement schedule normalization and timestamp management in MongoDB activities, enhance orchestration workflow with new formatting and normalization methods
2025-07-14 13:00:46 -03:00
vitor-aignosi
89c769998f SIENTIAPDE-1148
fix: update schedule handling in temporal_manager and formatters to support multiple namespaces, enhance test coverage, and improve configuration handling
2025-07-11 16:22:19 -03:00
vitor-aignosi
fae942136b SIENTIAPDE-1141
fix: remove outdated assertions in test_orchestrator.py to streamline workflow testing
2025-07-11 08:16:28 -03:00
vitor-aignosi
4df1b0240a SIENTIAPDE-1141
refactor: remove commented-out code and improve timeout settings in orchestrator.py and test_activities.py
2025-07-09 13:00:05 -03:00
vitor-aignosi
e1f1d3e3f4 SIENTIAPDE-1110
refactor: remove unused test_prepare_activity function from test_activities.py
2025-07-08 16:39:35 -03:00
vitor-aignosi
5d4faab557 SIENTIAPDE-1110
chore: update sientia-dataops-library version to 1.2.1 and add debug_data_package option in test_scouter
2025-07-08 16:34:47 -03:00
vitor-aignosi
a3bc22c055 SIENTIAPDE-1107
TEst fix
2025-06-17 07:51:06 -03:00
vitor-aignosi
f7b73618d8 SIENTIAPDE-1107
feat: implement MongoDB integration with clear_mongo_id function and related tests
2025-06-16 16:01:20 -03:00
vitor-aignosi
0a612f6a5b fix: update server_name to server_id in predictions batch test 2025-06-10 13:06:13 -03:00
vitor-aignosi
15f1cd92cb SIENTIAPDE-1030
Add tests for loading OPC slots without decoding and connector configurations
2025-06-09 12:00:54 -03:00
vitor-aignosi
e81bd61f5a Init files 2025-06-09 11:46:42 -03:00
vitor-aignosi
dcbcc70651 fix: update search attribute keys and improve schedule handling
- Changed search attribute key from "Orchestrated" to "orchestrated" in temporal_manager.py and test cases.
- Enhanced logging for schedule creation and updates in temporal_manager.py.
- Updated schedule creation to use workflow_type directly instead of a hardcoded string.
- Modified gather_read_tags function to use server_id instead of server_name for tag identification.
- Adjusted test cases to reflect changes in server_id usage and ensure consistency across tests.
- Fixed model_name retrieval in common_config to access nested models dictionary.
- Updated test cases to align with new data structures and ensure accurate assertions.
2025-06-04 15:06:54 -03:00
vitor-aignosi
5dc49b476a SIENTIAPDE-1030
Add comprehensive tests and utility functions for orchestrator activities

- Introduced tests for the new Formatters class, covering methods for processing schedules and slots.
- Enhanced SlotManager tests with update and delete slot functionalities.
- Added TemporalManager tests for creating, updating, and deleting schedules, including frequency parsing.
- Implemented utility functions for orchestrator operations, including frequency parsing and tag configuration building.
- Created tests for utility functions to ensure correct behavior and integration with orchestrator activities.
- Established a new converters module for parsing frequency strings into seconds.
2025-06-03 17:29:00 -03:00
vitor-aignosi
4f37b2be02 SIENTIAPDE-1030
Add unit tests for orchestrator activities and workflows

- Implement tests for Activities class, covering initialization and prepare_activity method.
- Create tests for Couchbase class, including successful and failed query loading.
- Add tests for SlotManager class, verifying OPC slot loading and active ingestor retrieval.
- Develop tests for TemporalManager class, focusing on schedule loading functionality.
- Introduce tests for Orchestrator class, ensuring proper execution of workflow activities.
- Establish a new test suite for orchestrator activities and workflows in the tests directory.
2025-05-30 16:24:52 -03:00
vitor-aignosi
f6584314b2 SIENTIAPDE-1030
Add unit tests for connectors configuration, logger, workflows, and predictions batch

- Implement tests for MLflow, OPC, and Postgres configuration builders to validate environment variable handling and default values.
- Create tests for the logger to ensure default settings and handler configurations are correct.
- Add comprehensive tests for the FormatAndExportPrediction and PredictionProcess workflows, covering various scenarios including path flags and activity execution.
- Introduce tests for the PredictionsBatch workflow to verify the execution of local activities and child workflows.
- Include a values.yaml file for Kubernetes deployment configuration, specifying image details, service account settings, environment variables, and resource limits.
2025-05-28 13:32:42 -03:00