patinas-chaos
Chaos/test harness (plan mode and E2E scenario runner).
- Inputs: YAML scenarios under
tests/e2e/*.yaml - Outputs: CSV KPI samples and HTML report
- Modes: plan-only (prints tc/netem + KPI sampling) and scenario-mode (drive link-sim HTTP APIs)
Example:
patinas-chaos --profile tests/scenarios/pit_rough_day.yaml --endpoints 127.0.0.1:9640,127.0.0.1:9641 --out-csv chaos.csv --out-html report.html
With link simulators (infra):
docker compose -f deploy/docker/docker-compose.yml -f deploy/docker/docker-compose.infra.yml up -d --build
patinas-chaos --profile tests/e2e/machine_to_infra.yaml --endpoints proxy:9640,hub:9641 --out-csv chaos.csv --out-html report.html
Run E2E scenario (drives link-sim API, samples KPIs concurrently):
patinas-chaos --scenario tests/e2e/multi_hop.yaml --endpoints proxy:9640,hub:9641 --out-csv chaos_multi.csv --out-html report_multi.html --dry-run
# Execute mode:
patinas-chaos --scenario tests/e2e/multi_hop.yaml --endpoints proxy:9640,hub:9641 --out-csv chaos_multi.csv --out-html report_multi.html --no-dry-run
Docker-exec links (for environments where host->published ports may be restricted):
patinas-chaos --scenario tests/e2e/esp_v2_mesh_wan_outage.yaml --endpoints "" --out-csv chaos.csv --out-html report.html --no-dry-run
CSV schema (new):
ts_ms,endpoint,publish_total,receive_total,recv_delta,pub_delta,e2e_ms_sum,e2e_ms_count,e2e_p95_est,inter_ms_sum,inter_ms_count
Notes:
*_deltacolumns are derived from monotonic totals; use them for delivery ratio in windowse2e_p95_estis estimated from Prometheus histogram buckets; use offline analysis for final KPIs- The HTML report summarizes per-endpoint samples and shows observed max p95