piker/tests
Gud Boi 7952eb0634 Distinguish websocket receive and relay timeouts
The `proxy_msgs()` deadline covers both `ws.get_message()` and
`snd.send()`. Repeated socket-ready reports with no first relay
could therefore mean either a silent source or a blocked local
consumer; the old generic reset log could not distinguish them.

Track the currently awaited operation and report its phase, URL,
deadline, accumulated timeout count and reset threshold on each
timeout. Snapshot `NoBsWs._timeout` once per iteration so the log
reflects the deadline that actually elapsed. Keep the existing
shared deadline, counter behavior and reconnect policy intact.

Add two real loopback regressions: a silent websocket server and
one payload blocked on an unconsumed zero-capacity Trio relay.
Require the matching timeout phase and URL before the reset budget
is exhausted. The 15 selected Binance/websocket cases pass.

The human observes this after invalid `.usdm.` startup followed
by corrected `.usdtm.` input. Metadata accepts the typo but later
history lookup expects canonical keys. Record that investigation
as context; this diagnostic patch does not fix FQME validation,
failed-startup cleanup or prove the cause of corrected-feed stalls.

Prompt-IO: ai/prompt-io/opencode/20261028T180856Z_032580bf_timeout_phase.md

(this patch was generated in some part by `opencode` using
`gpt-6.1-sol` (`openai`))
2026-10-28 14:35:57 -04:00
..
_inputs Add first account cumsize test; known to fail Bo 2023-07-14 17:54:13 -04:00
conftest.py Normalize registrar addrs with `wrap_address()` 2026-10-07 03:10:41 -04:00
test_accounting.py Draft a gt-one-`.fqme`-in-txns/account-file test 2026-01-07 13:41:07 -05:00
test_binance.py Harden Binance USD-M feed startup 2026-10-28 10:45:47 -04:00
test_cli.py Skip CLI tests due to questrade dependency for now 2021-05-22 15:12:12 -04:00
test_docker_services.py Skip marketstore docker tests, we're gonna drop it.. 2023-06-27 13:42:08 -04:00
test_ems.py Port service+tests to latest `tractor` APIs 2026-10-07 03:10:41 -04:00
test_ems_broadcast.py .clearing: backport owned dark quote subscriptions 2026-10-23 11:36:02 -04:00
test_feed_broadcast.py .data: isolate cached feed stream consumers 2026-10-21 20:50:38 -04:00
test_feeds.py Update feed test fqmes to use `.<venue>` format 2026-10-07 03:10:41 -04:00
test_ib_history.py .ib.feed: backport no-data request boundaries 2026-10-23 11:35:31 -04:00
test_ib_method_proxy.py Fix IB `MethodProxy` response routing 2026-10-21 20:50:38 -04:00
test_ib_quote_restart.py .ib.feed: backport no-data request boundaries 2026-10-23 11:35:31 -04:00
test_logging.py .data: expose websocket reconnect progress at INFO 2026-10-28 13:13:26 -04:00
test_questrade.py Spurious first-draft of EG collapsing 2026-01-06 22:27:58 -05:00
test_services.py Fix endpoint config and daemon startup from PR94 review 2026-10-10 14:20:52 -04:00
test_startup.py Fix endpoint config and daemon startup from PR94 review 2026-10-10 14:20:52 -04:00
test_watchlists.py Capture the right logger 2019-02-10 17:29:08 -05:00
test_websocket.py Distinguish websocket receive and relay timeouts 2026-10-28 14:35:57 -04:00