Commit Graph

136 Commits

Author SHA1 Message Date
vitor-aignosi
e8ce3e75d5 SIENTIAPDE-1184
fix: enhance error reporting in Formatters class

- Updated the parse_report_schedule method to return a dictionary for error keys, including both message and attachment.
- Improved error report formatting in send_error_report method to include attachments for better context in failure notifications.
2025-08-14 08:50:21 -03:00
vitor-aignosi
4d75d581f8 SIENTIAPDE-1184
Changing "updated_at" type from str to datetime
2025-08-13 16:34:02 -03:00
vitor-aignosi
1306bed21d SIENTIAPDE-1184
fix: enhance error reporting in TemporalManager class

- Added typed_search_attributes to the schedule creation for improved search capabilities.
- Included traceback in error messages when schedule deletion fails, providing better context for debugging.
2025-08-12 16:26:24 -03:00
vitor-aignosi
5477f68b6b SIENTIAPDE-1184
fix: update notification IDs for error reporting in Formatters class

- Changed notification IDs for error reports related to schedule creation, update, and deletion to include the suffix '_ERROR' for better clarity in error handling.
2025-08-12 14:12:52 -03:00
vitor-aignosi
8537eb515b SIENTIAPDE-1184
chore: update image tag in values.yaml from 0.3.2 to 0.4.0 and change GITHUB_BRANCH to SIENTIAPDE-1184-investigar-bugs-detectados-no-grafana
2025-08-12 13:42:30 -03:00
vitor-aignosi
7fd38e1d52 SIENTIAPDE-1184
fix: add conditional check for data_filter in MongoDB activity

- Updated the insert_many method to only execute if data_filter is not empty, preventing unnecessary database operations and potential errors.
2025-08-12 13:36:13 -03:00
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
bc81555ad0 Merge branch 'main' into SIENTIAPDE-1174-mapear-e-implementar-metricas-a-serem-criadas 2025-08-05 12:16:22 -03:00
vitor-aignosi
68d4998ce7 SIENTIAPDE-1174
chore: increment image tag in values.yaml from 0.3.1 to 0.3.2 for version update
2025-08-04 15:27:40 -03:00
vitor-aignosi
4f4bc9e7ec SIENTIAPDE-1174
chore: update helm upgrade command in values.yaml to reflect version change

- Modified the helm upgrade command in values.yaml to use version 0.4.0 instead of 0.4.0-uat for consistency in deployment.
2025-08-04 10:01:14 -03:00
Bruno Domingues
1b7603ae70 Merge pull request #12 from Aignosi/SIENTIAPDE-1172-criar-pipeline-de-alertas-orquestrador
Sientiapde 1172 criar pipeline de alertas orquestrador
2025-08-04 10:00:42 -03:00
vitor-aignosi
6c1b7c4bf7 SIENTIAPDE-1174
feat: enhance notification filtering in Formatters and SlotManager classes

- Added logic to remove receiver groups with no notifications, improving the efficiency of notification handling.
- Implemented early return in Alerts and Reports workflows when there are no notifications or receiver groups, streamlining the processing flow.
2025-08-01 12:41:40 -03:00
vitor-aignosi
ae0fa2fc8a SIENTIAPDE-1174
feat: integrate metrics tracking for sent emails in Email activity

- Added metrics tracking for the number of emails sent, incorporating pod ID, model name, pipeline name, and email group for better monitoring.
- Enhanced logging to provide detailed information on email sending status for each receiver group.
2025-08-01 12:27:59 -03:00
vitor-aignosi
7bb24b42f6 SIENTIAPDE-1174
feat: update dependencies and enhance metrics integration

- Updated sientia-dataops-library dependency version from 1.3.5 to 1.3.7 in requirements.txt.
- Incremented image tag in values.yaml from 0.2.7 to 0.3.1.
- Added Prometheus metrics service configuration in values.yaml, enabling metrics collection.
- Implemented Prometheus client in worker.py to start a metrics server and track application health.
2025-08-01 12:01:03 -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
ce380bd46d SIENTIAPDE-1172
fix: add timeout to SMTP connection for improved reliability

- Updated the SMTP connection in the Email class to include a timeout of 20 seconds, enhancing the robustness of email sending operations.
- Adjusted the reconnection logic to maintain consistent timeout settings during server initialization.
2025-07-30 08:55:59 -03:00
vitor-aignosi
e75e089b1b SIENTIAPDE-1172
refactor: rename send_email method to try_send_email and update parameter type

- Renamed the send_email method to try_send_email for clarity in its purpose.
- Changed the receivers parameter type from list[str] to str to simplify the method signature.
2025-07-30 08:43:48 -03:00
vitor-aignosi
0a5e137cc3 SIENTIAPDE-1172
SIENTIAPDE-1172
feat: update email configuration and enhance email sending functionality

- Changed EMAIL_SENDER in values.yaml to a new email address.
- Updated EMAIL_SENDER_PASSWORD key reference in values.yaml for improved security.
- Added PostgreSQL configuration parameters to values.yaml for database connectivity.
- Refactored Email class to include a new send_email method for better error handling during email transmission.
- Implemented reconnection logic for SMTP server disconnections to ensure reliable email delivery.
2025-07-30 08:29:11 -03:00
vitor-aignosi
0cda2bcb05 SIENTIAPDE-1172
Update dependencies in requirements.txt and increment image tag in values.yaml

- Updated sientia-dataops-library dependency version from 1.3.4 to 1.3.5.
- Changed image tag in values.yaml from 0.2.5 to 0.2.7 for the latest image version.
2025-07-29 13:19:54 -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
263410b292 SIENTIAPDE-1172
feat: enhance notification handling in Formatters and SlotManager classes

- Introduced a mechanism to prevent duplicate notifications by tracking already added keys.
- Updated notification filtering logic to ensure unique notifications are processed for each receiver group.
- Improved overall notification management in orchestrator activities.
2025-07-29 12:13:08 -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
c3ba2e4b5a SIENTIAPDE-1172
refactor: update email HTML structure and enhance notification generator

- Modified email HTML to reflect updated model names and error/warning messages.
- Adjusted notification generator to improve execution counts and streamline output handling.
- Refactored activities in orchestrator to correct parameter names and improve type hints for better clarity.
- Enhanced email builder to handle error, warning, and info models more efficiently.
2025-07-28 17:26:28 -03:00
vitor-aignosi
9bc238388a SIENTIAPDE-1172
feat: integrate email configuration and enhance orchestrator activities

- Added email configuration parameters to values.yaml for sender details and SMTP settings.
- Refactored Email class to correct parameter names and improve logging during initialization.
- Introduced build_email_config function to streamline email configuration retrieval.
- Updated worker.py to include email and Postgres configurations in the main orchestration process.
2025-07-28 16:12:22 -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
b0171614aa Merge pull request #11 from Aignosi/SIENTIAPDE-1171-criar-pipeline-de-retreino-laborious
Sientiapde 1171 criar pipeline de retreino laborious
2025-07-24 11:47:39 -03:00
vitor-aignosi
92f623ca90 Merge branch 'main' into SIENTIAPDE-1171-criar-pipeline-de-retreino-laborious 2025-07-24 10:26:55 -03:00
Matheus Demoner
6ba85a755a Merge pull request #10 from Aignosi/SIENTIAPDE-1166-alterar-orquestrador-para-criar-collections-com-ttl-no-mongo]
feat: add TTL index functionality to MongoDB activities and update requirements
2025-07-24 10:06:25 -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
c1e6807ac3 SIENTIAPDE-1171
fix: update workflow_type in minimal_retrain function for consistency

- Changed workflow_type from "retrain" to "minimal_retrain" in the minimal_retrain function to align with the new schedule configuration.
2025-07-23 13:01:37 -03:00
vitor-aignosi
66e9cf58e4 SIENTIAPDE-1171
SIENTIAPDE-1171 feat: add minimal retrain schedule configuration to samples.json and update formatters.py

- Added a new schedule configuration for the minimal retrain pipeline in samples.json.
- Updated the Formatters class in formatters.py to handle the new minimal retrain workflow type, integrating the minimal_retrain function for streamlined processing.
2025-07-23 12:51:55 -03:00
vitor-aignosi
115a174a31 SIENTIAPDE-1171
Update GITHUB_BRANCH in values.yaml to SIENTIAPDE-1171-criar-pipeline-de-retreino-laborious
2025-07-23 12:32:20 -03:00
vitor-aignosi
5a4d6c5706 SIENTIAPDE-1171
feat: add minimal_retrain function to orchestrator_functions.py for retraining workflows

- Introduced minimal_retrain function to streamline retraining configuration.
- The function integrates common configuration with specific parameters for retraining workflows.
2025-07-23 12:26:36 -03:00
vitor-aignosi
ff683eea14 SIENTIAPDE-1166
Update image tag to 0.2.5 and change GITHUB_BRANCH to SIENTIAPDE-1166-alterar-orquestrador-para-criar-collections-com-ttl-no-mongo in values.yaml
2025-07-23 08:04:21 -03:00
vitor-aignosi
2317bd404b SIENTIAPDE-1166
fix: add missing newline in MongoDB class for improved readability
2025-07-23 07:45:51 -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
Bruno Domingues
f72735857a Merge pull request #9 from Aignosi/SIENTIAPDE-1151-criar-testes-de-stress
Sientiapde 1151 criar testes de stress
2025-07-22 12:22:04 -03:00
vitor-aignosi
a87124fb99 Merge branch 'main' into SIENTIAPDE-1151-criar-testes-de-stress 2025-07-22 11:01:16 -03:00
Bruno Domingues
d81e8ea33f Merge pull request #8 from Aignosi/SIENTIAPDE-1163-alterar-dinamica-de-notificacoes-para-usar-o-mongodb-ao-inves-do-kafka
Sientiapde 1163 alterar dinamica de notificacoes para usar o mongodb ao inves do kafka
2025-07-22 10:14:49 -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
37f4e6cf59 SIENTIAPDE-1151
fix: update GITHUB_BRANCH in values.yaml and ensure error messages are converted to strings in formatters.py for improved notification clarity
2025-07-18 09:49:55 -03:00
vitor-aignosi
92fbb704f5 SIENTIAPDE-1151
refactor: enhance error handling in build_tag_config and slot processing to include notifications for missing servers
2025-07-18 09:45:42 -03:00
vitor-aignosi
7c92bd2584 SIENTIAPDE-1163
refactor: enhance logging in activities to include metadata for improved context in notifications and error handling
2025-07-17 15:27:58 -03:00
vitor-aignosi
a3ac942754 Merge branch 'main' into SIENTIAPDE-1163-alterar-dinamica-de-notificacoes-para-usar-o-mongodb-ao-inves-do-kafka 2025-07-17 14:58:33 -03:00
vitor-aignosi
9f22254037 SIENTIAPDE-1163
chore: update requirements to point to the specific version 1.3.3 of the sientia-dataops-library repository
2025-07-17 12:45:40 -03:00
vitor-aignosi
cc23286d13 SIENTIAPDE-1163
chore: update .gitignore to include git_log file for better version control management
2025-07-17 12:40:10 -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