Skip to content

apollo_network_benchmark: add ReversedSqmr variant to NetworkProtocol enum#11553

Closed
sirandreww-starkware wants to merge 1 commit into01-08-apollo_network_benchmark_add_sqmr_variant_to_messagereceiver_and_registrationfrom
01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum
Closed

apollo_network_benchmark: add ReversedSqmr variant to NetworkProtocol enum#11553
sirandreww-starkware wants to merge 1 commit into01-08-apollo_network_benchmark_add_sqmr_variant_to_messagereceiver_and_registrationfrom
01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum

Conversation

@sirandreww-starkware
Copy link
Copy Markdown
Contributor

@sirandreww-starkware sirandreww-starkware commented Jan 8, 2026

Note

Medium Risk
Low code churn, but it introduces a new user-selectable mode that will crash at runtime (todo!()) if chosen.

Overview
Adds a new NetworkProtocol::ReveresedSqmr CLI-selectable variant (--network-protocol reversed-sqmr) for the network benchmark.

Updates register_protocol_channels to handle this variant, but currently calls todo!() with a placeholder comment instead of registering channels, so selecting it will panic at runtime.

Written by Cursor Bugbot for commit 50dae42. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Contributor Author

sirandreww-starkware commented Jan 8, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 8, 2026

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale.
This PR will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions Bot added the stale label Feb 8, 2026
@github-actions github-actions Bot closed this Feb 16, 2026
}
NetworkProtocol::ReveresedSqmr => {
// TODO(AndrewL): Implement ReveresedSqmr protocol registration
todo!("ReveresedSqmr protocol registration not yet implemented")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New protocol option panics at runtime

Medium Severity

NetworkProtocol::ReveresedSqmr is exposed as a selectable CLI value in node_args.rs, but register_protocol_channels handles it with todo!(). Choosing reversed-sqmr causes an immediate panic during node initialization, so the newly advertised protocol mode is not runnable.

Additional Locations (1)

Fix in Cursor Fix in Web

@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum branch from a86c6c8 to b16cd92 Compare February 16, 2026 09:10
@github-actions github-actions Bot removed the stale label Feb 17, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_sqmr_variant_to_messagereceiver_and_registration branch from 2817aba to a0c4d0e Compare February 19, 2026 07:24
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum branch from b16cd92 to 55e1b2d Compare February 19, 2026 07:24
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_sqmr_variant_to_messagereceiver_and_registration branch from a0c4d0e to a497a4a Compare February 19, 2026 08:04
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum branch from 55e1b2d to 8067a3e Compare February 19, 2026 08:04
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum branch from 8067a3e to 4015380 Compare March 16, 2026 15:13
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Sqmr,
/// Use Reversed SQMR where receivers initiate requests to broadcasters
#[value(name = "reversed-sqmr")]
ReveresedSqmr,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Misspelled enum variant affects serde serialization name

Medium Severity

The variant ReveresedSqmr is misspelled (should be ReversedSqmr — the 'e' and 's' are transposed). Because NetworkProtocol derives Serialize and Deserialize, serde will use the misspelled name ReveresedSqmr as the serialized representation. The clap #[value(name = "reversed-sqmr")] and the doc comment both use the correct spelling, creating an inconsistency where the CLI accepts the right name but serde uses the wrong one.

Additional Locations (1)
Fix in Cursor Fix in Web

@sirandreww-starkware sirandreww-starkware changed the title apollo_network_benchmark: add ReveresedSqmr variant to NetworkProtocol enum apollo_network_benchmark: add ReversedSqmr variant to NetworkProtocol enum Mar 22, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_sqmr_variant_to_messagereceiver_and_registration branch from 04611b6 to bc7549c Compare March 22, 2026 17:09
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum branch from 4015380 to b78d523 Compare March 22, 2026 17:09
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_sqmr_variant_to_messagereceiver_and_registration branch from bc7549c to cf93d25 Compare March 30, 2026 11:08
@sirandreww-starkware sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_variant_to_networkprotocol_enum branch from b78d523 to 50dae42 Compare March 30, 2026 11:08
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 28, 2026
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.

2 participants