2.2 KiB
NOTE: diff-ref mode entry (code committed in the same commit as this log); backfilled from the live dev session transcript per the /prompt-io skill rules.
git log -1 -p --follow -- piker/service/_actor_runtime.py
Generated: normalize each registry addr via tractor.discovery._addr.wrap_address() before .unwrap()-ing for the accept_addrs bind check — entries may be raw tuples when passed in from (test) client code. Import-path precedent taken from piker/cli/__init__.py:336.
git log -1 -p --follow -- piker/service/_registry.py
Generated: check_for_service() ported to tractor.query_actor(name, regaddr=...) (kwarg was arbiter_sockaddr=), unpacking the new (sockaddr, portal) yield, and passing the now-required open_registry(addrs=Registry.addrs).
git log -1 -p --follow -- tests/test_services.pygit log -1 -p --follow -- tests/test_ems.pygit log -1 -p --follow -- piker/brokers/deribit/api.py
Key diagnostic reasoning (verbatim from session):
- the “DID NOT RAISE ContextCancelled” failure: in this test the client actor IS pikerd (in-proc), and current
tractormain absorbs aContextCancelledwhose canceller is your own actor — self-requested cancels now exit cleanly instead of raising; the ‘sigint’ variant propagates a bare collapsedKeyboardInterruptrather than aBaseExceptionGroup. - the hard-coded
trio.fail_after(9)startup budget is marginal — full stack boot (pikerd -> emsd -> brokerd.kraken -> paperboi + live kraken symbology fetch) occasionally exceeds 9s -> bumped to 19s. RemoteActorError.type->.boxed_type;Position.size->.cumsize(the paper engine populatesBrokerdPosition.sizefrompp.cumsize).- overlap survey (user-requested): all of the
repair_testsbranch commits are already in this stack’s ancestry; this commit finishes that branch’s port mission (itsf4c4f1e2fixedconftest.py’sarbiter_sockaddrusage; this fixes the remainingtest_services.py+check_for_service()sites).