Files
detections/.woodpecker/e2e-smoke-jetson.yml
T
2026-05-12 21:43:46 +03:00

46 lines
1.4 KiB
YAML

when:
- event: [manual]
evaluate: 'E2E_SMOKE_TEST == "1"'
labels:
platform: arm64
steps:
- name: e2e-smoke-jetson
image: docker
environment:
COMPOSE_PROJECT_NAME: detections-e2e-smoke-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/video_test01.mp4 ]; then
echo "ERROR: fixtures/video_test01.mp4 is missing; cannot run Jetson video smoke test"
exit 1
fi
ls -lh fixtures/image_small.jpg fixtures/video_test01.mp4
bash scripts/pull_jetson_engine.sh
E2E_PROFILE=jetson bash run_test.sh \
tests/test_health_engine.py::TestHealthEngineStep03Warmed \
tests/test_video.py::test_ft_p_10_frame_sampling_ac1 \
-rs
volumes:
- /var/run/docker.sock:/var/run/docker.sock