mirror of
https://github.com/azaion/detections.git
synced 2026-06-21 09:51:08 +00:00
Fixed tests
This commit is contained in:
@@ -9,6 +9,7 @@ steps:
|
|||||||
- name: e2e-convert-jetson
|
- name: e2e-convert-jetson
|
||||||
image: docker
|
image: docker
|
||||||
environment:
|
environment:
|
||||||
|
COMPOSE_PROJECT_NAME: detections-e2e-convert-jetson
|
||||||
REGISTRY_HOST:
|
REGISTRY_HOST:
|
||||||
from_secret: registry_host
|
from_secret: registry_host
|
||||||
REGISTRY_USER:
|
REGISTRY_USER:
|
||||||
@@ -18,13 +19,19 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add --no-cache bash docker-cli-compose
|
- apk add --no-cache bash docker-cli-compose
|
||||||
- echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
|
- echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
|
||||||
- cd e2e
|
- |
|
||||||
- >
|
cd e2e
|
||||||
E2E_PROFILE=jetson
|
cleanup() {
|
||||||
E2E_WAIT_FOR_ENGINE_ENABLED=1
|
docker compose -f docker-compose.test.yml --profile jetson down -v --remove-orphans || true
|
||||||
E2E_ENGINE_WAIT_TIMEOUT=3600
|
}
|
||||||
E2E_LOG_TAIL=300
|
trap cleanup EXIT
|
||||||
bash run_test.sh tests/test_health_engine.py::TestHealthEngineStep03Warmed
|
|
||||||
- bash scripts/publish_jetson_engine.sh
|
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
|
||||||
|
|
||||||
|
bash scripts/publish_jetson_engine.sh
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ steps:
|
|||||||
- name: e2e-smoke-jetson
|
- name: e2e-smoke-jetson
|
||||||
image: docker
|
image: docker
|
||||||
environment:
|
environment:
|
||||||
|
COMPOSE_PROJECT_NAME: detections-e2e-smoke-jetson
|
||||||
REGISTRY_HOST:
|
REGISTRY_HOST:
|
||||||
from_secret: registry_host
|
from_secret: registry_host
|
||||||
REGISTRY_USER:
|
REGISTRY_USER:
|
||||||
@@ -18,8 +19,14 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add --no-cache bash docker-cli-compose
|
- apk add --no-cache bash docker-cli-compose
|
||||||
- echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
|
- echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
|
||||||
- cd e2e
|
- |
|
||||||
- bash scripts/pull_jetson_engine.sh
|
cd e2e
|
||||||
- E2E_PROFILE=jetson bash run_test.sh tests/test_health_engine.py
|
cleanup() {
|
||||||
|
docker compose -f docker-compose.test.yml --profile jetson down -v --remove-orphans || true
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
bash scripts/pull_jetson_engine.sh
|
||||||
|
E2E_PROFILE=jetson bash run_test.sh tests/test_health_engine.py
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|||||||
Reference in New Issue
Block a user