Commit 97980fa
test(rig): two-endpoint call on one Mac — honest cross-process end-to-end measurement
Single-process loopback confounded every metric and repeatedly produced broken-ruler
results: sent and recv were the SAME node's counters (delivery ratios >100% from
timing offsets, waves #26/#33/#37), jitter==0 meant "no stream" not "clean link"
(#24), and a cross-thread crash-race hid until it fired (#33). There was no way to
verify the UI or a real MITM either. Fix: run TWO independent TriNetMonitor instances
that dial each other over real UDP.
Three dev-only env hooks (no-ops in a shipping run):
TRINET_LOG=<path> per-instance log (LogBus) so each process's counters read apart
TRINET_LISTEN=<port> this instance's UDP listen port
TRINET_AUTOCALL=host:port auto-dial a 1-1 call on launch (INVITE bypassed)
CallManager.startCall now honors a distinct listen port so two locals don't collide.
smoke/two_endpoint_rig.sh orchestrates A(:8000) <-> B(:8100) and reports the CROSS-process
delivery A->B = (B received)/(A sent) — the honest number a single process cannot give.
Verified live: two real windowed processes establish a bidirectional call (macOS shares
the camera, so both send AND receive). Clean link: A->B 98.7%, B->A 93.4%. With 25%
induced packet loss on B: A->B still 96.7% -- i.e. the layered loss-recovery stack
(grouped FEC + whole-NAL NACK + per-fragment NACK from #31-33) recovers 25% loss to ~97%
frame delivery, now proven over two genuine processes instead of a self-loopback.
Mac-only (the rig runs two Mac instances); the env hooks are inert dev tooling.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e5a8581 commit 97980fa
3 files changed
Lines changed: 72 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
203 | 223 | | |
204 | 224 | | |
205 | 225 | | |
| |||
979 | 999 | | |
980 | 1000 | | |
981 | 1001 | | |
982 | | - | |
| 1002 | + | |
| 1003 | + | |
983 | 1004 | | |
984 | 1005 | | |
985 | 1006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments