Commit Graph

278 Commits

Author SHA1 Message Date
Bruno Domingues
d701943586 Merge pull request #18 from Aignosi/SIENTIAPDE-1205-alterar-opc-para-assincrono
SIENTIAPDE-1205: Standardize Datetime Handling in MongoDB Activities and Update Orchestration Notebook
2025-08-29 14:00:17 +00:00
vitor-aignosi
e389bd7c27 SIENTIAPDE-1182
SIENTIAPDE-1205: Enhance predictions_batch function and update test cases

- Added 'predictions_storage_policy' to the predictions_batch function for improved configuration handling.
- Updated test cases to include 'predictions_storage_policy' in expected results, ensuring consistency in testing.
2025-08-28 16:32:06 -03:00
vitor-aignosi
8f49745b0a SIENTIAPDE-1205
SIENTIAPDE-1205: Update timestamp formatting in MongoDB tests

- Modified timestamp handling in test_mongo_db.py to utilize DATETIME_FORMAT_MS_WITH_TZ for consistent formatting across test cases.
- Ensured all timestamp strings include UTC timezone information for improved accuracy in datetime comparisons.
2025-08-28 09:00:39 -03:00
vitor-aignosi
fbf006bb99 SIENTIAPDE-1205
SIENTIAPDE-1205: Update timestamp handling in MongoDB activities

- Modified timestamp formatting in mongo_db.py to apply UTC timezone before string conversion, ensuring consistency with DATETIME_FORMAT_MS_WITH_TZ.
2025-08-27 09:37:45 -03:00
vitor-aignosi
90e9e571b2 SIENTIAPDE-1205
SIENTIAPDE-1205: Simplify timestamp formatting in MongoDB activities

- Removed timezone conversion from timestamp handling in mongo_db.py, streamlining the formatting process while maintaining consistency with DATETIME_FORMAT_MS_WITH_TZ.
2025-08-27 09:35:55 -03:00
vitor-aignosi
2a3e5b8bc4 SIENTIAPDE-1205
SIENTIAPDE-1205: Refactor timestamp handling in MongoDB activities

- Updated the import statement in mongo_db.py to include timezone support.
- Modified timestamp formatting to ensure UTC timezone is applied before string conversion, enhancing consistency in datetime handling.
2025-08-27 09:32:42 -03:00
vitor-aignosi
93915841d6 SIENTIAPDE-1205
SIENTIAPDE-1205: Update GITHUB_BRANCH and standardize datetime handling in MongoDB activities

- Changed GITHUB_BRANCH in values.yaml from "main" to "SIENTIAPDE-1205-alterar-opc-para-assincrono".
- Updated datetime parsing in mongo_db.py to use DATETIME_FORMAT_MS_WITH_TZ for consistent timestamp handling.
2025-08-27 09:25:17 -03:00
vitor-aignosi
e17df007ab SIENTIAPDE-1205
Update orchestration notebook execution count, modify image tag in values.yaml, and standardize datetime handling in MongoDB activities

- Changed execution count in init_orchestration.ipynb from 2 to 1.
- Updated image tag in values.yaml from 0.4.4 to 0.4.5.
- Replaced DATETIME_FORMAT_MS_WITH_TZ with DATETIME_FORMAT_MS in mongo_db.py for consistent timestamp handling.
2025-08-27 09:12:24 -03:00
Bruno Domingues
e3b35bf4fa Merge pull request #17 from Aignosi/SIENTIAPDE-1193-conferir-como-a-escrita-de-datetime-ocorre-no-temporal
SIENTIAPDE-1193: Improve Timestamp Handling and Update Dependencies
2025-08-26 13:39:28 +00:00
vitor-aignosi
c581e7da47 Merge branch 'SIENTIAPDE-1193-conferir-como-a-escrita-de-datetime-ocorre-no-temporal' of github.com:Aignosi/sientia-dataops-orchestrator_temporal into SIENTIAPDE-1193-conferir-como-a-escrita-de-datetime-ocorre-no-temporal 2025-08-25 10:27:17 -03:00
vitor-aignosi
2aae718e5a SIENTIAPDE-1193
Enhance test cases to include datetime_columns for improved timestamp handling in minimal_retrain and predictions_batch functions
2025-08-25 10:04:26 -03:00
vitor-aignosi
575a99fd31 SIENTIAPDE-1193
chore: update image tag and enhance datetime column handling in orchestrator functions

- Updated the image tag in values.yaml from 0.4.2 to 0.4.4 for the latest version.
- Added support for datetime_columns in minimal_retrain and predictions_batch functions to improve timestamp handling in orchestrator functions.
2025-08-25 10:04:26 -03:00
vitor-aignosi
4aa7ea70fa SIENTIAPDE-1193
refactor: standardize timestamp handling across MongoDB and SlotManager

- Replaced instances of `now()` with `date_now` for consistent timestamp usage in MongoDB and SlotManager activities.
- Updated test cases to mock the new `now()` function, ensuring accurate timestamp handling in unit tests.
- Adjusted timestamp formatting in various tests to align with the DATETIME_FORMAT_MS_WITH_TZ standard.
2025-08-25 10:04:26 -03:00
vitor-aignosi
d7effd44e5 SIENTIAPDE-1193
refactor: update date handling and remove deprecated constants

- Replaced the usage of datetime.now() with a new now() function from sientia_do.temporal.constants for consistent timestamp handling across multiple files.
- Updated the date format from DEFAULT_DATE_FORMAT to DATETIME_FORMAT_MS_WITH_TZ in various activities to ensure uniformity in timestamp formatting.
- Removed the obsolete patterns.py file that contained the DEFAULT_DATE_FORMAT constant.
2025-08-25 10:04:26 -03:00
vitor-aignosi
d4efe1d159 SIENTIAPDE-1193
chore: update sientia-dataops-library version and modify environment variables

- Updated the sientia-dataops-library dependency version from 1.4.1 to 1.4.2 in requirements.txt.
- Changed the GITHUB_BRANCH value in values.yaml to reflect the new task SIENTIAPDE-1193.
- Enhanced the process_notifications workflow to include timestamp conversion metadata for improved data handling.
2025-08-25 10:04:26 -03:00
Matheus Demoner
3e3926832b Merge pull request #16 from Aignosi/SIENTIAPDE-1199-revisar-e-testar-observabilidade
Sientiapde 1199 revisar e testar observabilidade
2025-08-25 09:52:44 -03:00
vitor-aignosi
33017ffc7e SIENTIAPDE-1193
Enhance test cases to include datetime_columns for improved timestamp handling in minimal_retrain and predictions_batch functions
2025-08-25 09:16:47 -03:00
vitor-aignosi
92e5ccdcde SIENTIAPDE-1193
chore: update image tag and enhance datetime column handling in orchestrator functions

- Updated the image tag in values.yaml from 0.4.2 to 0.4.4 for the latest version.
- Added support for datetime_columns in minimal_retrain and predictions_batch functions to improve timestamp handling in orchestrator functions.
2025-08-25 08:48:02 -03:00
vitor-aignosi
5692fa69e1 SIENTIAPDE-1193
refactor: standardize timestamp handling across MongoDB and SlotManager

- Replaced instances of `now()` with `date_now` for consistent timestamp usage in MongoDB and SlotManager activities.
- Updated test cases to mock the new `now()` function, ensuring accurate timestamp handling in unit tests.
- Adjusted timestamp formatting in various tests to align with the DATETIME_FORMAT_MS_WITH_TZ standard.
2025-08-25 08:30:42 -03:00
vitor-aignosi
9672a9cb7e SIENTIAPDE-1193
refactor: update date handling and remove deprecated constants

- Replaced the usage of datetime.now() with a new now() function from sientia_do.temporal.constants for consistent timestamp handling across multiple files.
- Updated the date format from DEFAULT_DATE_FORMAT to DATETIME_FORMAT_MS_WITH_TZ in various activities to ensure uniformity in timestamp formatting.
- Removed the obsolete patterns.py file that contained the DEFAULT_DATE_FORMAT constant.
2025-08-22 11:45:11 -03:00
vitor-aignosi
cb3caaa55c SIENTIAPDE-1193
chore: update sientia-dataops-library version and modify environment variables

- Updated the sientia-dataops-library dependency version from 1.4.1 to 1.4.2 in requirements.txt.
- Changed the GITHUB_BRANCH value in values.yaml to reflect the new task SIENTIAPDE-1193.
- Enhanced the process_notifications workflow to include timestamp conversion metadata for improved data handling.
2025-08-22 08:11:19 -03:00
vitor-aignosi
e48bb4cc1e Merge branch 'SIENTIAPDE-1199-revisar-e-testar-observabilidade' of github.com:Aignosi/sientia-dataops-orchestrator_temporal into SIENTIAPDE-1199-revisar-e-testar-observabilidade 2025-08-21 09:28:00 -03:00
vitor-aignosi
5992909a61 SIENTIAPDE-1199
fix: add metadata handling in schedule configuration tests

- Enhanced the test cases in test_formatters.py and test_temporal_manager.py to include metadata in the schedule configuration inputs.
- This change improves the accuracy and traceability of the tests by ensuring that metadata is properly accounted for in the test scenarios.
2025-08-21 09:27:57 -03:00
vitor-aignosi
2ed8f2e2db Merge branch 'main' into SIENTIAPDE-1199-revisar-e-testar-observabilidade 2025-08-21 09:25:01 -03:00
vitor-aignosi
e0b8677f83 Merge pull request #15 from Aignosi/SIENTIAPDE-1169-pensar-e-projetar-testes-de-breakdown-e-performance
Sientiapde 1169 pensar e projetar testes de breakdown e performance
2025-08-21 09:19:17 -03:00
vitor-aignosi
2ade08c916 SIENTIAPDE-1199
refactor: remove unused schedule_handles attribute from TemporalManager

- Eliminated the schedule_handles dictionary from the TemporalManager class as it was no longer needed.
- Cleaned up related code to ensure proper functionality without the removed attribute.
2025-08-20 14:58:15 -03:00
vitor-aignosi
02243a1e22 SIENTIAPDE-1199
refactor: enhance logging and metadata handling across activities

- Updated logging statements in Email, Formatters, MongoDB, SlotManager, and TemporalManager classes to include metadata for better traceability.
- Improved success reporting in MongoDB, SlotManager, and TemporalManager by specifying the number of successfully processed items.
- Refactored logger usage in worker.py to utilize custom_info for enhanced logging consistency.
2025-08-20 11:15:58 -03:00
vitor-aignosi
9e49dd4255 SIENTIAPDE-1169
chore: update dependencies and refactor logger imports

- Updated the sientia-dataops-library dependency version from 1.3.8 to 1.4.1 in requirements.txt.
- Changed image tag in values.yaml from 0.4.0 to 0.4.2.
- Refactored logger imports in multiple files to use the new observability module instead of the temporal module.
- Updated retry policy imports in various workflow files to reflect the new structure.
2025-08-19 16:47:25 -03:00
vitor-aignosi
f3cae0f0ce Merge branch 'SIENTIAPDE-1169-pensar-e-projetar-testes-de-breakdown-e-performance' of github.com:Aignosi/sientia-dataops-orchestrator_temporal into SIENTIAPDE-1169-pensar-e-projetar-testes-de-breakdown-e-performance 2025-08-19 08:54:24 -03:00
vitor-aignosi
e2fbc20af0 SIENTIAPDE-1169
feat: add shutdown tests for Activities and Email classes

- Implemented unit tests for the shutdown methods in the Activities and Email classes to ensure proper resource cleanup.
- Verified that the shutdown processes for MongoDB, PostgreSQL, and Email are called as expected during the shutdown sequence.
2025-08-19 08:54:18 -03:00
vitor-aignosi
3dd2b9de62 Merge branch 'main' into SIENTIAPDE-1169-pensar-e-projetar-testes-de-breakdown-e-performance 2025-08-18 15:20:20 -03:00
Bruno Domingues
552e1d7087 Merge pull request #14 from Aignosi/SIENTIAPDE-1184-investigar-bugs-detectados-no-grafana
Sientiapde 1184 investigar bugs detectados no grafana
2025-08-18 17:14:57 +00:00
vitor-aignosi
d065f7f700 SIENTIAPDE-1169
chore: update helm chart version in values.yaml

- Updated the version number for the sientia-orchestrator-worker helm chart from 0.4.0 to 0.5.0 in values.yaml to reflect the latest release.
2025-08-18 13:45:32 -03:00
vitor-aignosi
845654859e SIENTIAPDE-1169
feat: add SDK metrics service and update telemetry configuration

- Introduced a new service for SDK metrics in values.yaml, enabling metrics collection on port 9091.
- Updated the worker.py to initialize a new runtime with Prometheus metrics configuration for the SDK metrics server.
- Adjusted environment variable for GITHUB_BRANCH to reflect the current focus on testing and performance design.
2025-08-18 13:40:19 -03:00
vitor-aignosi
229dcb1ac8 SIENTIAPDE-1184
docs: update README.md to provide comprehensive overview of SIENTIA DataOps Orchestrator Temporal

- Added detailed project overview, goals, and architecture sections.
- Documented main workflows including orchestrator, alerts, and reports workflows with input parameters and functionalities.
- Included environment variable configurations for Redis, MongoDB, PostgreSQL, Couchbase, email, Temporal, application, and Kafka.
- Described deployment strategies and monitoring capabilities, including Prometheus metrics.
- Enhanced usage instructions for triggering workflows and logging operations.
2025-08-14 09:58:51 -03:00
vitor-aignosi
31f2ff2439 SIENTIAPDE-1184
refactor: enhance shutdown procedures and documentation across activities

- Added shutdown methods to MongoDB and Email classes to ensure proper resource cleanup.
- Updated docstrings for shutdown methods to clarify their purpose and functionality.
- Enhanced documentation for various methods across multiple classes, improving clarity on parameters and return values.
- Improved the main function and other utility functions with detailed docstrings for better understanding and maintainability.
2025-08-14 09:48:19 -03:00
vitor-aignosi
bfb633c9d7 SIENTIAPDE-1184
docs: enhance docstrings in Formatters class

- Improved clarity and consistency of docstrings across multiple methods in the Formatters class.
- Added detailed descriptions for method arguments and return values to facilitate better understanding and usage.
- Ensured that all public methods now have comprehensive documentation, enhancing maintainability and readability.
2025-08-14 09:29:48 -03:00
vitor-aignosi
36c34d3208 SIENTIAPDE-1184
refactor: consolidate report handling in Formatters class

- Introduced a new method, manage_and_send_report, to streamline success and error report generation.
- Improved code readability by reducing duplication in report handling logic.
- Maintained existing functionality while enhancing the structure of report messages.
2025-08-14 09:26:10 -03:00
vitor-aignosi
4791665642 SIENTIAPDE-1184
SIENTIAPDE-1184
 refactor: improve schedule reporting in Formatters class

- Introduced a unified reporting structure for created, updated, and deleted schedules.
- Enhanced success and error report messages for clarity, including specific schedule types in notifications.
- Updated attachment handling in success and error reports to improve context and readability.
2025-08-14 09:19:48 -03:00
vitor-aignosi
26a31a39d6 Merge branch 'SIENTIAPDE-1184-investigar-bugs-detectados-no-grafana' of github.com:Aignosi/sientia-dataops-orchestrator_temporal into SIENTIAPDE-1184-investigar-bugs-detectados-no-grafana 2025-08-14 08:50:24 -03:00
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
07af9e1ee3 Merge branch 'main' into SIENTIAPDE-1184-investigar-bugs-detectados-no-grafana 2025-08-14 07:36:43 -03:00
Bruno Domingues
da603d1b1f Merge pull request #13 from Aignosi/SIENTIAPDE-1174-mapear-e-implementar-metricas-a-serem-criadas
Sientiapde 1174 mapear e implementar metricas a serem criadas
2025-08-13 16:34:35 -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