From 7d5b0aba6f194a542c2640e9e819e4781f747b0b Mon Sep 17 00:00:00 2001 From: Roman Meshko Date: Sun, 3 May 2026 20:27:54 +0300 Subject: [PATCH] Added step for model conversion --- .woodpecker/e2e-convert-jetson.yml | 20 ++++++++++++++++++++ e2e/run_test.sh | 9 +++++---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .woodpecker/e2e-convert-jetson.yml diff --git a/.woodpecker/e2e-convert-jetson.yml b/.woodpecker/e2e-convert-jetson.yml new file mode 100644 index 0000000..61db575 --- /dev/null +++ b/.woodpecker/e2e-convert-jetson.yml @@ -0,0 +1,20 @@ +when: + event: [manual] + +labels: + platform: arm64 + +steps: + - name: e2e-convert-jetson + image: docker + commands: + - apk add --no-cache bash docker-cli-compose + - cd e2e + - > + 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 + volumes: + - /var/run/docker.sock:/var/run/docker.sock diff --git a/e2e/run_test.sh b/e2e/run_test.sh index 28d5f3b..8f68b0a 100755 --- a/e2e/run_test.sh +++ b/e2e/run_test.sh @@ -19,10 +19,11 @@ case "$PROFILE" in esac COMPOSE="docker compose -f docker-compose.test.yml --profile $PROFILE" +LOG_TAIL="${E2E_LOG_TAIL:-100}" RUNNER_ENV_ARGS=(-e E2E_PROFILE="$PROFILE") if [[ "$PROFILE" == "jetson" ]]; then RUNNER_ENV_ARGS+=( - -e E2E_WAIT_FOR_ENGINE_ENABLED="${E2E_WAIT_FOR_ENGINE_ENABLED:-1}" + -e E2E_WAIT_FOR_ENGINE_ENABLED="${E2E_WAIT_FOR_ENGINE_ENABLED:-0}" -e E2E_ENGINE_WAIT_TIMEOUT="${E2E_ENGINE_WAIT_TIMEOUT:-900}" ) fi @@ -53,7 +54,7 @@ for i in $(seq 1 60); do fi if [[ "$i" == "60" ]]; then echo "ERROR: detections service did not become healthy" - $COMPOSE logs "$DETECTIONS_SERVICE" --tail 100 + $COMPOSE logs "$DETECTIONS_SERVICE" --tail "$LOG_TAIL" exit 1 fi sleep 2 @@ -66,6 +67,6 @@ EXIT_CODE=$? set -e echo "--- Test finished with exit code $EXIT_CODE" -echo "--- Detections logs (last 100 lines):" -$COMPOSE logs "$DETECTIONS_SERVICE" --tail 100 +echo "--- Detections logs (last $LOG_TAIL lines):" +$COMPOSE logs "$DETECTIONS_SERVICE" --tail "$LOG_TAIL" exit $EXIT_CODE