Extension types support via msgspec.Encoder/Decoder hooks #19
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "ext_type_plds"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Primary new-feature summary
Namely, extension-types as
msgspec.Structfields such that you can now (more) easily define and configuredec/enc_hook()funcs to be used by ourtractor.msg.MsgCodec/Decinternals:c302b74008 Finally get type-extended
msgspecfields workinnPldRxdesign we can,dec_hook()to ourMsgDecwhich is used to configure the underlying.dec: msgspec.msgpack.Decoderenc_hook()tomk_codec()and use it to conf the equivMsgCodec.encsuch that sent msg-plds are converted prior to transport.29c3895 Namely moving
enc/dec_type_union()from the test mod to a newtractor.msg._extsfor use everywhere.08e15f441 Raise RTE from
limit_plds()on nocurr_ctxVarious (and some very serious) fixes to the
tractor.msgrelated underbelly,e57ac63f56 Avoid attr-err when
MsgTypeError._ipc_msg==Noneon sender side.fde6d84 Fix msg-draining on
parent_never_opened_stream!b0ab77a Slight
PldRxrework to simplify, likeContext._outcome_msguse newPldRxAPIMsgStream._stop_msguse newPldRxAPI4d9f6e73 Support
ctx: UnionTypeannots for@tractor.contextepsef7a585 Deliver a
MaybeBoxedErrorfrom.expect_ctxc()Testing related fixes & improvements,
test_ext_types_msgspec.py,test_ext_types_over_ipcwhich avoids all the wacky “parent dictates what sender should be able to send beforehand”, insteadb85f301c05to8d12ece8d68d12ece8d6to6b8bd950fb6b8bd950fbtoeb12029372Fyi prior to this landing the
mainbranch should have the following failures (see screenshot) since obvi this patchset reworks that suite entirely.Lol woops meant for this to be switched to
main..Just did the
git merge --no-ffmanually and added the same commit msg thatgiteawould’veBp