Repository navigation
feat(engine): support extension on rejected k3po transport streams - #2110
Merged
Merged
Conversation
Wires the k3po language extension to `rejected` (issue aklivity/k3po#17) into the zilla k3po test transport so `rejected zilla:reset.ext ${...}` actually carries the extension on the RESET frame sent for the rejected accept, instead of only affecting parsing. - ZillaTarget: add a doReset(channel, ...) overload that reads any staged RESET extension off the channel (mirrors the existing doAbortInput extension-carrying reset), defaulting to empty when nothing was staged. - ZillaPartition: route the reject-path RESET through the new extension-aware overload so the k3po driver's WriteConfigHandler (installed by k3po's GenerateConfigurationVisitor when `rejected` carries a config type) has somewhere to land its encoded bytes. - Add handshake.reset.ext.rejected IT scenarios (simplex/half-duplex/duplex) proving the server can reject a handshake with a zilla:reset.ext extension and the client observes `connect aborted`; verified with a negative control (bogus config name) that the test fails as expected when the wiring is broken. Requires a k3po version with aklivity/k3po#17 merged; tested locally against a k3po develop-SNAPSHOT build. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014gSmK7DTu83C9fHYQBtZfw
Picks up aklivity/k3po#18 (rejected extension support), which the handshake.reset.ext.rejected ITs in runtime/engine depend on. Verified by rebuilding the full reactor and re-running those ITs against the real released 3.4.4 artifacts (no local SNAPSHOT override). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_014gSmK7DTu83C9fHYQBtZfw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Wires the k3po language extension added to
rejected(aklivity/k3po#17, aklivity/k3po#18) into zilla's k3po test transport (runtime/engine/.../test/internal/k3po/ext/), sorejected zilla:reset.ext ${...}actually carries the extension on the RESET frame sent for the rejected accept, instead of only affecting parsing.Changes
ZillaTarget: add adoReset(channel, originId, routedId, streamId, sequence, acknowledge, traceId, maximum)overload that reads any RESET extension staged on the channel (mirrors the existing extension-carryingdoAbortInput), defaulting to empty when nothing was staged — so existing barerejectedspecs are unaffected.ZillaPartition: routes the reject-path RESET (handleBeginInitial) through the new extension-aware overload, so the k3po driver'sWriteConfigHandler— installed by k3po'sGenerateConfigurationVisitorwhenrejectedcarries a config type — has somewhere to land its encoded bytes before the RESET is written.handshake.reset.ext.rejectedscenarios toSimplexIT,HalfDuplexIT, andDuplexIT, proving a server canrejected zilla:reset.ext [...]and the client observesconnect aborted. Verified with a negative control (temporarily corrupting the config type name) that the test fails as expected when the wiring is broken, and that it passes cleanly when restored.Dependency note
This requires a k3po version with aklivity/k3po#18 merged and released.
pom.xml'sk3po.version(currently3.4.3) is intentionally left unchanged in this PR — it was tested locally by overriding with-Dk3po.version=develop-SNAPSHOTagainst a local k3po build. The version bump should happen once k3po cuts a release containing #18, as a separate follow-up.Follow-up
The connect (client) side currently has no way to assert the extension it received on the RESET that caused a
connect aborted— filed as aklivity/k3po#19, since it needs its own grammar/AST change plus a fix to zilla's own RESET-extension capture on the connect-abort path (currently discarded).Fixes # (relates to aklivity/k3po#17)
Generated by Claude Code