Harden network throughput skill pcap staging (Sam & Codex)

---
Build: pass | Tests: pass — 2456 passed (182 files)
This commit is contained in:
Operator & Codex 2026-05-15 13:11:46 +02:00
parent 0e659e6232
commit c9a8aa1f64

View file

@ -44,6 +44,7 @@ Terminology:
- Use one test download only. Do not run Firefox/browser downloads in parallel.
- On FreeBSD/Clawdie, use project-local scratch directories, not system `/tmp` or `/var/tmp`.
- On Linux/debby/Hermes, prefer `~/.local/state/hermes/net-tests/`; project-root `tmp/` is also acceptable when running inside a specific repo.
- On Linux/debby/Hermes, root `tcpdump` may stage in `/tmp/osa-pcap-$TEST_ID` when direct writes into user-owned artifact dirs are awkward; move/chown the captures into `CLIENT_DIR` after the run.
- On FreeBSD, run root commands in the visible tmux root window when one is available.
- Do not leave large pcaps or duplicate downloaded images behind after analysis.
- Do not change PF during the measurement unless the purpose of the test is explicitly PF comparison.
@ -181,7 +182,7 @@ sudo /usr/bin/timeout 900 tcpdump -ni "$CLIENT_IF" \
Staged form, if root tcpdump cannot write directly to `CLIENT_DIR`:
```sh
CAPTURE_TMP="$HOME/.local/state/hermes/net-tests/root-pcap-staging-$TEST_ID"
CAPTURE_TMP="/tmp/osa-pcap-$TEST_ID"
mkdir -p "$CAPTURE_TMP"
date -u '+client_pcap_start_utc=%Y-%m-%dT%H:%M:%SZ' | tee -a "$CLIENT_DIR/timestamps.txt"
sudo /usr/bin/timeout 900 tcpdump -ni "$CLIENT_IF" \