piker/tests
Gud Boi e02a6431e3 Test persistent feed reuse across IPC subscriptions
Exercise the canonical endpoint registry and per-feed task lifetime
through real `tractor` contexts, TCP streams, sampling and SHM.
Use a controlled provider/history source and private actors rather
than requiring a live Gateway or production storage.

Cover,
- concurrent requests held across history startup and allocation
  locking, requiring one writer and matching descriptors;
- dated/continuous alias reuse after subscriber detach and reopen,
  preserving SHM tokens without another producer;
- quote fanout to overlapping clients, continued delivery after one
  closes, and persistent writers after every client detaches;
- history prepends and sampled prices visible through parent-side
  SHM attachments;
- remote startup failure joining its producer while existing feeds
  continue delivering quotes;
- unlinking all history/realtime buffers and index segments when
  the owning actor exits.

Keep four complementary focused cases for missing/empty metadata,
quote-start endpoint mismatch and normal sampler-return cleanup.
Avoid duplicating the actor lifecycle and already-committed IB
resolver tests with another fake chart/subscription framework.

The actor suite does not drive Qt, a live broker, NativeDB or the
samplerd bar clock. Controlled prepends prove quote progress in
that scenario, not the absence of stalls during real disk backfill.

(this patch was generated in some part by `opencode` using
`openai/gpt-6-astra` (`openai`))
2026-11-02 09:17:22 -05:00
..
_inputs Add first account cumsize test; known to fail Bo 2023-07-14 17:54:13 -04:00
providers Retry incomplete IB schedule coverage 2026-09-24 20:20:20 -04:00
conftest.py Clean test-owned SHM leaks in `pytest` 2026-07-27 18:09:03 -04:00
test_accounting.py Fix `SymbologyCache.search()` key matching 2026-08-27 23:11:43 -04:00
test_backfill_audit_snippet.py Add `xonsh` backfill qualification workflow 2026-07-28 19:41:55 -04:00
test_binance.py Fix Binance USD-M websocket routing 2026-08-26 19:24:37 -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_dpi_font.py fixed spacing 2026-03-17 21:15:19 -04:00
test_ems.py Port service+tests to latest `tractor` APIs 2026-06-10 13:11:05 -04:00
test_ems_trade_events.py Preserve IB order state through notices and late fills 2026-10-30 18:50:06 -04:00
test_feed_actor_e2e.py Test persistent feed reuse across IPC subscriptions 2026-11-02 09:17:22 -05:00
test_feed_aliases.py Test persistent feed reuse across IPC subscriptions 2026-11-02 09:17:22 -05:00
test_feeds.py Update feed test fqmes to use `.<venue>` format 2026-03-24 20:21:29 -04:00
test_fsp_momo.py Formalize `FspStream` and fix builtin call contracts 2026-09-15 12:17:02 -04:00
test_fsp_sync.py Skip unchanged realtime FSP redraws 2026-09-15 12:49:42 -04:00
test_gap_overlays.py Test gap dialogs through a real `tractor` actor 2026-08-17 19:11:03 -04:00
test_history_backfill.py Factor and bound synthetic SHM null repair 2026-09-24 14:58:18 -04:00
test_ib_broadcast.py .ib.feed: cache quote channel contexts 2026-10-28 14:57:52 -04:00
test_ib_broker.py Fix string errors in `.ib.broker` relay 2026-08-28 02:52:12 -04:00
test_ib_history.py Preserve IB history request bounds on no data 2026-09-23 14:35:21 -04:00
test_ib_method_proxy.py Raise on IB socket disconnects in proxy and trades 2026-09-17 18:24:17 -04:00
test_ib_symbols.py Fix IB metadata lookup without a supplied proxy 2026-10-31 19:49:25 -04:00
test_ib_trade_events.py Preserve IB order state through notices and late fills 2026-10-30 18:50:06 -04:00
test_ldshm.py Own gap overlays in chart-local `GapOverlayMngr` 2026-08-14 19:03:11 -04:00
test_logging.py Fix package logger names for daemon startup 2026-10-21 16:07:53 -04:00
test_questrade.py Spurious first-draft of EG collapsing 2026-01-06 22:27:58 -05:00
test_services.py .data: cut feed layer over to `datad` actors 2026-06-10 13:13:44 -04:00
test_shm_cleanup.py Clean test-owned SHM leaks in `pytest` 2026-07-27 18:09:03 -04:00
test_storage_audit.py Repair first-slot OHLC sentinels in `NativeDB` 2026-07-29 13:30:51 -04:00
test_storage_nativedb.py Expose storage state through `piker store` 2026-07-31 17:26:11 -04:00
test_store_cli.py Simplify `store` series and SHM discovery 2026-08-01 00:34:55 -04:00
test_tsp_analysis.py .tsp: report non-positive timestamp steps 2026-07-24 18:33:06 -04:00
test_watchlists.py Capture the right logger 2019-02-10 17:29:08 -05:00