Files
detections/.woodpecker/01-test.yml
Roman Meshko 01ac4725c1
ci/woodpecker/push/02-build-push Pipeline was successful
ci/woodpecker/manual/02-build-push Pipeline was successful
ci/woodpecker/manual/01-test Pipeline failed
Changed not to run e2e in case of flags set
2026-05-08 16:52:06 +03:00

46 lines
1.7 KiB
YAML

# Manual-trigger only. Validation fixtures (sample videos + expected-detections
# baseline) are not yet authored; running the e2e on push would produce red
# builds until that data lands. Flip `event: [manual]` back to
# `event: [push, pull_request, manual]` once validation fixtures are in place,
# and add `depends_on: [01-test]` to 02-build-push.yml.
#
# Tracking: see plan "CI Auto Tests Epic", story S3b — blocked by e2e validation data.
when:
- event: [manual]
branch: [dev, stage, main]
evaluate: 'E2E_CONVERT_JETSON != "1" && E2E_SMOKE_TEST != "1"'
labels:
platform: arm64
steps:
- name: e2e
image: docker:24
environment:
COMPOSE_PROJECT_NAME: detections-e2e
commands:
- cd e2e
- mkdir -p fixtures results logs
- chmod 777 results logs
- if [ -d fixtures/classes.json ]; then rm -rf fixtures/classes.json; fi
- if [ ! -f fixtures/classes.json ] && [ -f ../classes.json ]; then cp ../classes.json fixtures/classes.json; fi
- test -f fixtures/classes.json
- docker compose -f docker-compose.test.yml --profile cpu down -v --remove-orphans || true
- docker compose -f docker-compose.test.yml --profile cpu up --build --abort-on-container-exit --exit-code-from e2e-runner
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- name: e2e-report
image: docker:24
when:
status: [success, failure]
environment:
COMPOSE_PROJECT_NAME: detections-e2e
commands:
- cd e2e
- docker compose -f docker-compose.test.yml --profile cpu down -v || true
- test -f results/report.csv && cat results/report.csv || echo "no report"
volumes:
- /var/run/docker.sock:/var/run/docker.sock