edge: add integration tests, synthetic publisher, and devnet guide#3525
Draft
armcconnell wants to merge 1 commit intoedge/3-runner-manager-clifrom
Draft
edge: add integration tests, synthetic publisher, and devnet guide#3525armcconnell wants to merge 1 commit intoedge/3-runner-manager-clifrom
armcconnell wants to merge 1 commit intoedge/3-runner-manager-clifrom
Conversation
Rounds out the edge feed parser with the test and operator materials that let someone run the feature themselves. The integration tests exercise the full pipeline — parser + sink — against synthetic wire-format bytes, covering: normal refdata-then-marketdata ordering, the cold-start scenario where marketdata arrives first and is buffered until refdata lands, the buffer cap + most-recent-wins overwrite semantics, CSV output, and JSON output. The testutil package provides a programmable synthetic Top-of-Book publisher. publisher.go builds raw frames in the wire format (header + messages) and is used by tests to construct deterministic scenarios without needing a real feed. A small topofbook-publisher binary wraps it as a CLI tool that streams frames onto a multicast group, useful for local devnet testing where a real producer isn't available. DEVNET_TEST.md walks through bringing the feature up end-to-end in the local devnet: building containers, adding devices and clients, creating a multicast group with subscriber allowlist, running the synthetic publisher on one client, enabling the edge feed on another, and verifying records flow through.
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.
Part 4 of 4 — edge feed parser stack
Draft until the prior three land.
Summary
testutil/publisher.gois a programmable synthetic Top-of-Book publisher that builds raw wire-format frames (header + messages) for deterministic tests, with no real feed needed.testutil/cmd/topofbook-publisher/wraps the publisher as a CLI tool that streams frames onto a multicast group — useful for local devnet testing where a real producer isn't available.DEVNET_TEST.mdwalks through bringing the edge feature up end-to-end in the local devnet: containers, device setup, multicast group creation with subscriber allowlist, running the synthetic publisher on one client, enabling the edge feed on another, and verifying records flow through.Testing Verification
go testwith no special infrastructure.