mirror of
https://github.com/azaion/detections.git
synced 2026-06-23 06:21:09 +00:00
Added step for model conversion
This commit is contained in:
+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