From a2276db59823a7775abfa83580ffd8bfd22b0223 Mon Sep 17 00:00:00 2001 From: Roman Meshko Date: Wed, 6 May 2026 19:12:03 +0300 Subject: [PATCH] Fixed tests --- .woodpecker/e2e-convert-jetson.yml | 18 +++++++++++++++++- .woodpecker/e2e-smoke-jetson.yml | 8 +++++++- e2e/docker-compose.test.yml | 2 +- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.woodpecker/e2e-convert-jetson.yml b/.woodpecker/e2e-convert-jetson.yml index 5b28ec5..2fa667c 100644 --- a/.woodpecker/e2e-convert-jetson.yml +++ b/.woodpecker/e2e-convert-jetson.yml @@ -26,11 +26,27 @@ steps: } trap cleanup EXIT + if [ ! -f fixtures/image_small.jpg ]; then + echo "ERROR: fixtures/image_small.jpg is missing; cannot warm up Jetson engine" + exit 1 + fi + if [ ! -f fixtures/models/azaion.onnx ]; then + echo "ERROR: fixtures/models/azaion.onnx is missing; cannot convert Jetson engine" + exit 1 + fi + ls -lh fixtures/image_small.jpg fixtures/models/azaion.onnx + E2E_PROFILE=jetson \ E2E_WAIT_FOR_ENGINE_ENABLED=1 \ E2E_ENGINE_WAIT_TIMEOUT=3600 \ E2E_LOG_TAIL=300 \ - bash run_test.sh tests/test_health_engine.py::TestHealthEngineStep03Warmed + bash run_test.sh tests/test_health_engine.py::TestHealthEngineStep03Warmed -rs + + if grep -qi 'skipped' results/report.csv; then + echo "ERROR: Jetson conversion warm-up tests were skipped; no engine was produced" + cat results/report.csv + exit 1 + fi bash scripts/publish_jetson_engine.sh volumes: diff --git a/.woodpecker/e2e-smoke-jetson.yml b/.woodpecker/e2e-smoke-jetson.yml index 102ef07..a6eab0d 100644 --- a/.woodpecker/e2e-smoke-jetson.yml +++ b/.woodpecker/e2e-smoke-jetson.yml @@ -26,7 +26,13 @@ steps: } trap cleanup EXIT + if [ ! -f fixtures/image_small.jpg ]; then + echo "ERROR: fixtures/image_small.jpg is missing; cannot warm up Jetson engine" + exit 1 + fi + ls -lh fixtures/image_small.jpg + bash scripts/pull_jetson_engine.sh - E2E_PROFILE=jetson bash run_test.sh tests/test_health_engine.py + E2E_PROFILE=jetson bash run_test.sh tests/test_health_engine.py::TestHealthEngineStep03Warmed -rs volumes: - /var/run/docker.sock:/var/run/docker.sock diff --git a/e2e/docker-compose.test.yml b/e2e/docker-compose.test.yml index 0de13de..484d555 100644 --- a/e2e/docker-compose.test.yml +++ b/e2e/docker-compose.test.yml @@ -93,7 +93,7 @@ services: - mock-annotations environment: JWT_SECRET: test-secret-e2e-only - MEDIA_DIR: /media + MEDIA_DIR: /app/fixtures volumes: - ./fixtures:/media - ./results:/results