Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

gossip: add GossipDecodeHarness for v2 conformance testing - #222

Merged
cmoyes-jump merged 1 commit into
mainfrom
cmoyes/gossip-decode
Apr 10, 2026
Merged

gossip: add GossipDecodeHarness for v2 conformance testing#222
cmoyes-jump merged 1 commit into
mainfrom
cmoyes/gossip-decode

Conversation

@cmoyes-jump

Copy link
Copy Markdown
Contributor

Update protosol submodule to v5.4.0, regenerate gossip protobuf stubs, and add GossipDecodeHarness using sol_compat_gossip_decode_v1 entry point. Handles scalar bytes input (GossipFixture.input) and guards removed pack_pb2 import.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Solana “gossip” protobuf surface and introduces a new GossipDecodeHarness intended for v2 conformance testing using the sol_compat_gossip_decode_v1 entrypoint, including support for fixtures whose input is a scalar bytes field.

Changes:

  • Regenerates/updates gossip protobuf stubs to include new GossipFixture / GossipEffects message types.
  • Adds GossipDecodeHarness and an encode_effects hook for human-readable output handling.
  • Removes obsolete generated protobuf modules (pack_pb2.py, shred_pb2.py) and drops the Pack harness wiring.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/test_suite/protos/shred_pb2.py Removes generated shred protobuf stub.
src/test_suite/protos/pack_pb2.py Removes generated pack protobuf stub.
src/test_suite/protos/gossip_pb2.py Updates generated gossip protobuf stub to include decode fixture/effects messages.
src/test_suite/gossip/codec_utils.py Adds encode_effects no-op for new GossipEffects output type.
src/test_suite/fuzz_interface.py Changes harness initialization to allow scalar (non-message) fixture inputs.
src/test_suite/fuzz_context.py Removes Pack harness and registers new GossipDecodeHarness.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/test_suite/fuzz_interface.py
Comment thread src/test_suite/fuzz_context.py
Update protosol submodule to v5.4.0, regenerate gossip protobuf stubs,
and add GossipDecodeHarness using sol_compat_gossip_decode_v1 entry point.
Handles scalar bytes input (GossipFixture.input) and guards removed
pack_pb2 import.
@cmoyes-jump
cmoyes-jump force-pushed the cmoyes/gossip-decode branch from da693eb to a98aca3 Compare April 10, 2026 22:30
@cmoyes-jump
cmoyes-jump merged commit 0058c4b into main Apr 10, 2026
10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants