mirror of
https://github.com/azaion/detections.git
synced 2026-06-21 07:01:09 +00:00
58 lines
1.9 KiB
YAML
58 lines
1.9 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
|
|
if [ ! -f fixtures/models/azaion.int8_calib.cache ]; then
|
|
echo "ERROR: fixtures/models/azaion.int8_calib.cache is missing; cannot verify INT8 Jetson conversion"
|
|
exit 1
|
|
fi
|
|
ls -lh fixtures/image_small.jpg fixtures/models/azaion.onnx fixtures/models/azaion.int8_calib.cache
|
|
|
|
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
|
|
|
|
REQUIRE_INT8_ENGINE=1 bash scripts/publish_jetson_engine.sh
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|