Patinas by RustySockets Documentation Product Search public

Patinas — Acceptance Testing

This guide defines the Product P0 acceptance checks and how to run them locally and in CI. It focuses on end-to-end continuity/latency under mild loss and QUIC preview stability as defined in ../TODO.md and docs/engineering/ROADMAP.md.

Scope (P0)

Payload classes (invariant)

Operational note: the proxy’s optional GStreamer MKV synthetic path disables the engine automatically (see docs/architecture/PROXY.md).

Prerequisites

Quick checklist

  1. Bring up e2e stack and run the mild-loss scenario in execute mode.
  2. Verify PASS in artifacts; p95 ≤ 450 ms; no continuity gaps.
  3. Run QUIC loopback tests on Linux; confirm passing.
  4. Verify presence of QUIC metrics (bytes-in-flight gauge plus QUIC counters) via app tests or metrics endpoints.
  5. Ensure CI required checks are enabled and green on a test PR.
  6. (Optional) Run RTSP Docker harness integration tests.
  7. (Pilot) Confirm no-panic policy for pilot apps (tests + smoke runs).
  8. (Pilot) Run ONVIF golden corpus tests (SDP + URL parsing).

1) Resilience engine acceptance (mild loss)

Bring up the e2e topology and execute the acceptance scenario. Artifacts (CSV/HTML) are written under out/ by default.

Plan mode (dry-run):

cargo run -p patinas-chaos -- --scenario tests/e2e/mild_loss_accept.yaml --dry-run true

Execute mode (applies tc/netem on Linux; requires Docker with privileged router):

docker compose -f deploy/docker/docker-compose.e2e.yml up -d
cargo run -p patinas-chaos -- --scenario tests/e2e/mild_loss_accept.yaml --execute --dry-run false --i-know-what-im-doing

Acceptance criteria:

Notes:


2) QUIC adapter acceptance (preview)

Run QUIC loopback tests (Linux-only) and verify metrics exposure.

Loopback (adapter tests):

cargo test -p patinas-adapters-quic --features "quinn-net" -- --nocapture

Metrics presence (app tests):

cargo test -p patinas-hub -p patinas-proxy -- --nocapture

Optional manual metrics check (with apps running locally):

curl -s http://127.0.0.1:9640/metrics | rg "patinas_(bytes_in_flight|quic_connect_ok_total|quic_handshake_failures_total|quic_reconnects_total)"
curl -s http://127.0.0.1:9641/metrics | rg "patinas_(bytes_in_flight|quic_connect_ok_total|quic_handshake_failures_total|quic_reconnects_total)"

Acceptance criteria:


3) CI gating acceptance

Enable required checks on main via GitHub branch protection:

Create a test PR to confirm checks are enforced and passing.


4) RTSP integration acceptance (Docker harness)

Patinas includes RTSP integration tests for the GStreamer RTSP client/server. They are gated behind env vars so local cargo test does not require Docker.

Run (from workspace root patinas/):

docker compose -f tests/e2e/docker-compose.rtsp-test.yml up -d
PATINAS_RTSP_RUN_INTEGRATION=1 cargo test -p patinas-adapters-rtsp -- --nocapture

Acceptance criteria:


4b) ONVIF golden corpus acceptance (pilot)

Run the golden corpus tests:

cargo test -p patinas-adapters-rtsp --tests onvif_golden_corpus -- --nocapture

Acceptance criteria:


5) No-panics acceptance (pilot apps)

Acceptance criteria:


Recording results

Troubleshooting