mirror of
https://github.com/azaion/detections.git
synced 2026-06-21 08:41:07 +00:00
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
when:
|
|
- event: [manual]
|
|
evaluate: 'E2E_CONVERT_JETSON == "1"'
|
|
|
|
labels:
|
|
platform: arm64
|
|
|
|
steps:
|
|
- name: e2e-convert-jetson
|
|
image: docker
|
|
environment:
|
|
COMPOSE_PROJECT_NAME: detections-e2e-convert-jetson
|
|
REGISTRY_HOST:
|
|
from_secret: registry_host
|
|
REGISTRY_USER:
|
|
from_secret: registry_user
|
|
REGISTRY_TOKEN:
|
|
from_secret: registry_token
|
|
commands:
|
|
- apk add --no-cache bash docker-cli-compose
|
|
- echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
|
|
- |
|
|
cd e2e
|
|
cleanup() {
|
|
docker compose -f docker-compose.test.yml --profile jetson down -v --remove-orphans || true
|
|
}
|
|
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 -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:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|