Commit Graph

1 Commits (88608f12139fb7b689834e3f6497bec98685f9f3)

Author SHA1 Message Date
Gud Boi 036b7ed9fa 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-27 10:37:36 -05:00