[AZ-233] Add blackbox replay infrastructure

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-05-05 06:19:35 +03:00
parent 9812503abd
commit c30fd4f67d
19 changed files with 610 additions and 24 deletions
+63 -3
View File
@@ -13,15 +13,75 @@ services:
timeout: 5s
retries: 5
replay-tests:
gps-denied-service:
build:
context: .
dockerfile: deployment/docker/Dockerfile.runtime
networks:
- replay-net
- sitl-net
satellite-cache-stub:
image: python:3.12-slim-bookworm
command:
- python
- -c
- "from pathlib import Path; Path('/cache/satellite/.stub-ready').write_text('ready\\n'); import time; time.sleep(3600)"
volumes:
- satellite-cache:/cache/satellite
networks:
- replay-net
ardupilot-plane-sitl:
image: python:3.12-slim-bookworm
command:
- python
- -c
- "from pathlib import Path; Path('/tmp/sitl-blocked.txt').write_text('SITL binary unavailable in local stub\\n'); import time; time.sleep(3600)"
networks:
- sitl-net
qgc-observer:
image: python:3.12-slim-bookworm
command:
- python
- -c
- "from pathlib import Path; Path('/tmp/qgc-observer-ready.txt').write_text('observer ready\\n'); import time; time.sleep(3600)"
networks:
- sitl-net
replay-consumer:
build:
context: .
dockerfile: deployment/docker/Dockerfile.replay
command: ["python", "e2e/replay/run_replay.py", "--output-dir", "/app/data/test-results"]
env_file:
- config/ci/runtime.env
depends_on:
postgis:
condition: service_healthy
gps-denied-service:
condition: service_completed_successfully
satellite-cache-stub:
condition: service_started
ardupilot-plane-sitl:
condition: service_started
qgc-observer:
condition: service_started
volumes:
- ./_docs/00_problem/input_data:/data/input:ro
- ./_docs/00_problem/input_data/expected_results:/data/expected:ro
- ./_docs/00_problem/input_data/flight_derkachi:/data/input/flight_derkachi:ro
- ./tests/fixtures:/app/tests/fixtures:ro
- ./data/test-results:/app/data/test-results
- satellite-cache:/cache/satellite
- fdr-output:/fdr
networks:
- replay-net
- sitl-net
networks:
replay-net:
sitl-net:
volumes:
satellite-cache:
fdr-output: