Commit Graph

276 Commits

Author SHA1 Message Date
vitor-aignosi
4352c67f3a SIENTIAPDE-1478
Enhance PI Web API Scouter Workflow and Documentation

- Added support for PI Web API data ingestion, including real-time and historical data retrieval.
- Implemented timestamp normalization to ensure consistency across records.
- Updated README.md to reflect new features and detailed workflow execution flow.
- Enhanced API class with comprehensive error handling and cleanup operations.
- Improved CoreScouter workflow with early exit conditions and detailed processing steps.
- Updated configuration parameters for better clarity and usability.
2026-01-09 09:49:55 -03:00
vitor-aignosi
b75f499436 SIENTIAPDE-1478
Update sientia-dataops-library version in requirements.txt from 1.7.1 to 1.8.0 for improved functionality.
2026-01-08 16:25:40 -03:00
vitor-aignosi
f94ee12324 SIENTIAPDE-1478
Update import path for connectors_config in worker.py to reflect new repository structure
2026-01-08 16:25:07 -03:00
vitor-aignosi
f2b648ead2 SIENTIAPDE-1478
Refactor metrics and imports across multiple files

- Removed unused import of CORE_LABELS in metrics.py.
- Updated import statements in api.py for consistency.
- Cleaned up import order in worker.py for better readability.
- Added missing newline at the end of metrics.py.
- Adjusted formatting in core_scouter.py to ensure proper syntax.
- Removed redundant 'on_conflict' and 'unique_columns' keys from test cases in test_core_scouter.py for clarity.
2026-01-08 16:20:10 -03:00
vitor-aignosi
7958afbadf SIENTIAPDE-1478
Update pytest_asyncio fixture scopes in conftest.py for improved test isolation and add asyncio_default_fixture_loop_scope in pyproject.toml. Remove outdated scenarios from scenarios.md and delete unused test files for cleaner codebase.
2026-01-08 16:13:59 -03:00
vitor-aignosi
cf7f9fb63c SIENTIAPDE-1478
Refactor PIWebAPIClient and Update Configuration Imports

- Removed outdated PostgreSQL, Redis, MongoDB, and API configuration functions from connectors_config.py.
- Deleted the pi_web_api_client.py file as part of the refactor.
- Updated imports in worker.py and api.py to use the new repository structure.
- Cleaned up scenarios.md by removing obsolete scenarios related to unique constraint violations.
- Commented out the specific version of the sientia-dataops-library in requirements.txt for flexibility.
2026-01-08 12:41:53 -03:00
vitor-aignosi
9988720421 Merge pull request #28 from Aignosi/fix/SIENTIAPDE-1445
PIWebAPIClient Refinements, Enhanced Debugging, and E2E Test Setup
2025-12-30 16:42:28 -03:00
vitor-aignosi
90e801bdcd SIENTIAPDE-1445
Update pyproject.toml to enable automatic asyncio mode, modify pytest_asyncio fixture scopes in conftest.py for better isolation, and streamline e2e scenarios documentation in scenarios.md by removing outdated scenarios and reorganizing sections for clarity.
2025-12-30 16:18:52 -03:00
vitor-aignosi
4f076956cc SIENTIAPDE-1445
Update workflow_name in test_pi_web_api_scouter.py to reflect correct naming convention for clarity
2025-12-30 09:00:52 -03:00
vitor-aignosi
b17eaf972c SIENTIAPDE-1445
Update requirements-dev.txt to add E2E testing dependencies: fakeredis and mongomock for in-memory testing, and include testcontainers for PostgreSQL support.
2025-12-30 08:40:07 -03:00
vitor-aignosi
a6a3a9326e SIENTIAPDE-1445
Invert startTime and endTime parameters in PIWebAPIClient to ensure descending order results. Update tests to verify parameter handling and use pytest.approx for floating-point comparisons.
2025-12-23 12:10:11 -03:00
vitor-aignosi
7424844db6 SIENTIAPDE-1445
Add debug logging to PIWebAPIClient for raw data output
2025-12-23 11:30:56 -03:00
vitor-aignosi
57b2a7d2fa SIENTIAPDE-1445
Update values.yaml to change GITHUB_BRANCH to fix/SIENTIAPDE-1445 and modify workflow_name in pi_web_api_scouter.py for clarity
2025-12-23 11:28:29 -03:00
vitor-aignosi
d9fbd132ef SIENTIAPDE-1445
Update debug logging in API class to display latest values as a string for improved readability.
2025-12-23 11:26:09 -03:00
vitor-aignosi
77e54b6b16 Merge pull request #27 from Aignosi/feature/SIENTIAPDE-1445
Enhance PI Web API Integration, Refactor Worker Setup, and Update Dependencies
2025-12-22 15:22:53 -03:00
vitor-aignosi
3127efd391 SIENTIAPDE-1445
Update test_api.py and test_core_scouter.py to enhance timestamp validation and add new test cases

- Updated timestamp assertions in test_get_tag_values_success to reflect the correct values.
- Added new test cases in test_core_scouter.py to handle scenarios with zero affected rows and without debug data package, ensuring proper workflow execution and activity method assertions.
2025-12-22 14:32:45 -03:00
vitor-aignosi
d3945692d0 SIENTIAPDE-1445
Refactor condition in core_scouter.py for improved readability

- Simplified the condition checking for affected rows in the data export logic by removing unnecessary whitespace.
2025-12-22 14:23:30 -03:00
vitor-aignosi
90d543f810 SIENTIAPDE-1445
Update tests.ipynb to improve execution count management and enhance data handling

- Adjusted execution counts for various code cells to maintain consistent state.
- Added error handling for KeyError in API response processing.
- Updated data processing logic to include timestamp formatting and CSV export functionality.
2025-12-22 14:10:58 -03:00
vitor-aignosi
bcc4e6de6d SIENTIAPDE-1445
Normalize package timestamp in API class to ensure consistent data handling.
2025-12-19 16:32:08 -03:00
vitor-aignosi
dd282e003d SIENTIAPDE-1445
Update requirements.txt to change sientia-dataops-library dependency to version 1.7.1 for improved functionality.
2025-12-19 15:54:45 -03:00
vitor-aignosi
7f8b7a3b1c SIENTIAPDE-1445
Update requirements.txt and core_scouter.py

- Commented out the Git repository reference for sientia-dataops-library in requirements.txt and replaced it with a local path.
- Modified the condition for data export in core_scouter.py to check for affected rows, enhancing data handling logic.
2025-12-19 15:51:06 -03:00
vitor-aignosi
256d3c909a SIENTIAPDE-1445
Update requirements.txt to change sientia-dataops-library dependency from a local path to a Git repository reference at version 1.7.0 for improved dependency management.
2025-12-19 11:16:40 -03:00
vitor-aignosi
d9820cf3d7 SIENTIAPDE-1445
Update requirements and enhance tests.ipynb functionality

- Changed the dependency path for sientia-dataops-library in requirements.txt to a local directory.
- Updated execution counts in tests.ipynb for better state management and added new code cells for retrieving web IDs from the PI Web API, improving data handling capabilities.
2025-12-19 11:15:19 -03:00
vitor-aignosi
4bf1a5aae8 SIENTIAPDE-1445
Update queue naming convention in prepare_worker.py to use kebab-case instead of snake_case for improved consistency.
2025-12-18 12:39:13 -03:00
vitor-aignosi
aa1850ce47 SIENTIAPDE-1445
Refactor camelCase conversion in prepare_worker.py to snake_case for consistency in queue naming. Updated function name and logic accordingly.
2025-12-18 12:38:36 -03:00
vitor-aignosi
3bd44bb12b SIENTIAPDE-1445
Refactor imports and enhance timestamp handling in API and test files

- Removed redundant import statements in api.py and prepare_worker.py for cleaner code.
- Updated timestamp format in test cases to include timezone information for consistency.
- Adjusted test configurations to align with new API structure for improved accuracy in data handling.
2025-12-18 09:36:13 -03:00
vitor-aignosi
23e6890692 SIENTIAPDE-1445
Enhance PI Web API integration and update test configurations

- Adjusted execution counts in tests.ipynb for better notebook state management.
- Introduced a new pi_web_api_query structure in tests.ipynb for improved API configuration.
- Updated API class to format timestamps using DATETIME_FORMAT_WITH_TZ.
- Refactored PIWebAPIClient to ensure correct web ID retrieval and emit metrics accurately.
- Streamlined workflow parameters in pi_web_api_scouter.py for clarity and flexibility.
2025-12-18 09:06:11 -03:00
vitor-aignosi
e61cb38b5b SIENTIAPDE-1445
SIENTIAPDE-1445 Add PI Web API configuration to .env.example and enhance worker setup

- Introduced new environment variables for PI Web API configuration in .env.example.
- Updated prepare_worker.py to utilize a camelCase to kebab-case conversion function for queue naming.
- Enhanced logging in prepare_worker to provide better insights during worker preparation.
- Adjusted execution counts in tests.ipynb for improved notebook state management.
2025-12-17 17:02:06 -03:00
vitor-aignosi
034e0b2520 SIENTIAPDE-1445
Refactor workflow parameters in tests.ipynb and prepare_worker.py to enhance clarity and flexibility. Updated workflow_id and task_queue to accept dynamic values, and standardized timeout parameters for improved configuration.
2025-12-17 16:46:15 -03:00
vitor-aignosi
d7d61f27a4 SIENTIAPDE-1445
Update API configuration in values.yaml and connectors_config.py; integrate PIWebAPIScouter into worker setup
2025-12-17 16:42:51 -03:00
vitor-aignosi
e87c5d2da6 SIENTIAPDE-1445
Enhance Activities and API Integration

- Updated Activities class to include API operations for external data ingestion.
- Added API configuration builder to connectors_config.py for environment variable management.
- Integrated API configuration into worker setup.
- Expanded unit tests to cover new API functionality and configuration handling.
- Updated requirements.txt to include pycurl and prometheus-client for enhanced metrics support.
2025-12-17 15:16:00 -03:00
vitor-aignosi
ab99695702 Merge pull request #26 from Aignosi/release/SIENTIAPDE-1441
Enhance Temporal Worker Configuration, Refine Helm Chart, and Streamline Dependencies
2025-12-16 16:33:12 -03:00
vitor-aignosi
666a0a6e13 SIENTIAPDE-1441
Refactor prepare_worker.py to improve type annotations and code clarity. Update import statements and enhance formatting for better readability. Adjust comments in worker.py for consistency.
2025-12-16 16:01:47 -03:00
vitor-aignosi
26eed05f74 SIENTIAPDE-1441
Update sonar-project.properties to include prepare_worker.py in coverage exclusions, enhancing code quality metrics.
2025-12-16 15:51:31 -03:00
vitor-aignosi
5e2403090b SIENTIAPDE-1441
Refactor prepare_worker function to return a single Worker instance instead of a list, streamlining worker configuration and improving code clarity.
2025-12-16 15:43:01 -03:00
vitor-aignosi
f1cdf7471d SIENTIAPDE-1441
SIENTIAPDE-1441: Refactor worker configuration in worker.py to utilize a new prepare_worker function for cleaner setup. Update environment variable names in values.yaml for consistency and clarity, adjusting memory requests and enhancing health check commands for improved application monitoring.
2025-12-16 15:39:54 -03:00
vitor-aignosi
14eea70090 SIENTIAPDE-1441
Update values.yaml to modify liveness and readiness probe configurations, enhancing application health checks with improved metrics validation and adjusted timing parameters for better responsiveness.
2025-12-16 14:06:39 -03:00
vitor-aignosi
39494b90ac SIENTIAPDE-1441
Update requirements.txt to upgrade sientia-dataops-library dependency from version 1.5.3 to 1.6.1 for improved functionality.
2025-12-16 13:40:54 -03:00
vitor-aignosi
d3555221cf SIENTIAPDE-1441
Update values.yaml to define resource limits and requests for improved resource management in Kubernetes deployments.
2025-12-16 13:24:23 -03:00
vitor-aignosi
c538f43488 SIENTIAPDE-1441
Update requirements.txt to remove unused dependencies: asyncua and aiokafka, streamlining the project requirements.
2025-12-16 10:45:01 -03:00
vitor-aignosi
5c4f9eca96 SIENTIAPDE-1441
Update README.md and values.yaml to enhance system description and worker configuration. Added ML model orchestration to the system overview, introduced new debug mode features, and updated environment variable values to be strings for consistency.
2025-12-16 10:40:21 -03:00
vitor-aignosi
e879107053 SIENTIAPDE-1441
SIENTIAPDE-1442: Enhance Temporal worker configuration by adding environment variables for concurrency limits and poller behavior settings in values.yaml and worker.py for optimized performance.
2025-12-16 10:10:42 -03:00
vitor-aignosi
f3833a0f98 SIENTIAPDE-1441
Remove encrypt.py and test.ipynb files; update values.yaml to set image tag to 1.0.0 and change GITHUB_BRANCH to release/SIENTIAPDE-1441 for version consistency.
2025-12-16 09:48:28 -03:00
Matheus Demoner
9332f6a4a9 Merge pull request #25 from Aignosi/fix/SIENTIAPDE-1273
SIENTIAPDE-1273: Update GITHUB_BRANCH, Helm Chart Version, Metrics Registration, and Test Cases
2025-11-19 16:56:41 -03:00
vitor-aignosi
2bc49637a1 SIENTIAPDE-1273
Update image tag in values.yaml from 0.5.0 to 0.5.2 for version consistency.
2025-11-18 11:42:21 -03:00
vitor-aignosi
fc4ec35298 SIENTIAPDE-1273
Update GITHUB_BRANCH in values.yaml to fix/SIENTIAPDE-1273 for issue resolution.
2025-11-17 16:53:32 -03:00
vitor-aignosi
6701a25c7b SIENTIAPDE-1273
Update GITHUB_BRANCH in values.yaml to feature/SIENTIAPDE-1273, increment Helm chart version to 0.6.0, and modify metrics registration in Gates class to skip None values. Update test cases to reflect changes in tag values.
2025-11-14 12:04:16 -03:00
vitor-aignosi
5db04c7e5b Merge pull request #24 from Aignosi/feature/SIENTIAPDE-1325-adicionar-metricas-especificas-de-operacoes-externas
SIENTIAPDE-1325: Refactor Activities, Gates, MongoDB, and Redis for Improved Monitoring, Asynchronous Notifications, and Repository Pattern Implementation
2025-11-10 10:12:16 -03:00
vitor-aignosi
1b7391e8f1 SIENTIAPDE-1325
Enhance Redis activity by formatting set and get operations for improved readability and consistency. Update tests to include metadata in assertions for better verification of Redis interactions.
2025-11-10 08:39:19 -03:00
vitor-aignosi
3e8ba6c758 SIENTIAPDE-1325
Update release workflow to trigger only on merged pull requests, ensuring proper release management.
2025-11-10 08:23:01 -03:00