mirror of
https://github.com/azaion/detections.git
synced 2026-06-22 22:11:08 +00:00
Added step for model conversion
This commit is contained in:
@@ -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
|
||||
+5
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user