vitor-aignosi 102507d815 SIENTIAPDE-1205
Enhance unit tests for async shutdown and improve assertions

- Updated `test_app.py` to verify multiple calls to `asyncio_sleep` and ensure proper handling of sleep intervals.
- Added new tests in `test_ingestor.py` and `test_opc_manager.py` to validate shutdown behavior and error handling for async operations.
- Improved assertions in existing tests to enhance reliability and clarity of test outcomes.
2025-08-28 08:34:30 -03:00
2025-08-27 17:00:06 -03:00
2025-06-09 08:42:22 -03:00
2025-08-28 08:34:30 -03:00
2025-04-17 17:13:13 -03:00
2025-05-21 09:46:38 -03:00
2025-07-17 12:42:04 -03:00
2025-08-25 09:19:24 -03:00
2025-06-09 08:42:22 -03:00
2025-04-24 08:42:56 -03:00
2025-07-08 15:21:07 -03:00
2025-04-17 17:13:13 -03:00
2025-08-22 13:59:11 -03:00
2025-08-27 17:00:06 -03:00
2025-08-26 16:27:35 -03:00
2025-08-27 08:48:31 -03:00

sientia-dataops-opc-ingestor

OPC gateway to manage Scouter pipelines

Local tests

Generate your ssh key to Docker

ssh-keygen -t ed25519 -C "docker-access" -f ~/.ssh/id_ed25519_docker

Add the public key to yout Git SSH keys

Enable Docker BuildKit

export DOCKER_BUILDKIT=1

or make it permanent:

echo '{ "features": { "buildkit": true } }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker

Run docker compose

docker compose down -v
docker compose build --ssh default=$HOME/.ssh/id_ed25519_docker
docker compose up -d

Run Ingestor

The ingestor can be run as a docker container or as a python script.

As a docker container: Uncomment the ingestor service in docker-compose.yaml

docker compose up -d ingestor

As a python script:

python -m ingestor.app

Populate redis server

Create venv with python3.11

python3.11 -m venv venv
source ./venv/bin/activate

Install requirements

pip install -r requirements.txt

Run feeder

python simulator/redis-feeder.py

Unit tests

Install pytest

pip install pytest

Run pytest

pytest

Get current coverage

pip install pytest-cov
pytest --cov=ingestor

Generate complete report

pytest --cov=ingestor --cov-report=html

#PR shortcut

git log origin/main..HEAD --no-merges > git_log

Prompt: Write a summary of PR changes in markdown. Be objective and direct. Write to file

Description
No description provided
Readme 507 KiB
Languages
Python 97.5%
Shell 2.5%