Skip to content

apollo_network_benchmark: added broadcasting mode selection#11541

Open
sirandreww-starkware wants to merge 1 commit into12-09-apollo_network_benchmark_added_message_broadcasting_taskfrom
01-07-apollo_network_benchmark_added_broadcasting_mode_selection
Open

apollo_network_benchmark: added broadcasting mode selection#11541
sirandreww-starkware wants to merge 1 commit into12-09-apollo_network_benchmark_added_message_broadcasting_taskfrom
01-07-apollo_network_benchmark_added_broadcasting_mode_selection

Conversation

@sirandreww-starkware
Copy link
Contributor

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

Note

Low Risk
Low risk: adds new CLI parsing options (mode and conditional broadcaster) without changing network logic in this PR.

Overview
Adds a new Mode CLI/serde enum to select stress-test broadcast behavior (all vs one).

Extends UserArgs with --mode (default all) and a --broadcaster node ID that is required when mode=one, plus a Display impl for Mode to match existing enum formatting.

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

@reviewable-StarkWare
Copy link

This change is Reviewable

This was referenced Jan 8, 2026
@github-actions
Copy link

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!

Copy link

@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.


/// Which node ID should do the broadcasting - for OneBroadcast mode
#[arg(long, env, required_if_eq("mode", "one"))]
pub broadcaster: Option<u64>,
Copy link

Choose a reason for hiding this comment

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

New mode and broadcaster fields are never used

Low Severity

The newly added mode and broadcaster fields on UserArgs, along with the Mode enum, are parsed from CLI arguments but never read by any application logic. In stress_test_node.rs, get_tasks unconditionally calls start_message_sender for every node regardless of mode. A user passing --mode one --broadcaster 5 would expect only node 5 to broadcast, but all nodes will broadcast, making the feature silently non-functional.

Additional Locations (1)

Fix in Cursor Fix in Web

@sirandreww-starkware sirandreww-starkware force-pushed the 12-09-apollo_network_benchmark_added_message_broadcasting_task branch from a00a4b2 to f1147e4 Compare February 16, 2026 09:10
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcasting_mode_selection branch from 502522a to 1165b86 Compare February 16, 2026 09:10
@sirandreww-starkware sirandreww-starkware changed the base branch from 12-09-apollo_network_benchmark_added_message_broadcasting_task to graphite-base/11541 February 16, 2026 10:25
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcasting_mode_selection branch from 1165b86 to 0e35ff2 Compare February 18, 2026 13:19
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/11541 to 12-09-apollo_network_benchmark_added_message_broadcasting_task February 18, 2026 13:20
@sirandreww-starkware sirandreww-starkware force-pushed the 12-09-apollo_network_benchmark_added_message_broadcasting_task branch from 8d2cd59 to e25a2b7 Compare February 19, 2026 07:24
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcasting_mode_selection branch from 0e35ff2 to a56150d Compare February 19, 2026 07:24
@sirandreww-starkware sirandreww-starkware force-pushed the 12-09-apollo_network_benchmark_added_message_broadcasting_task branch from e25a2b7 to fa29577 Compare February 19, 2026 08:04
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcasting_mode_selection branch from a56150d to 345946a Compare February 19, 2026 08:04
@github-actions github-actions bot removed the stale label Feb 24, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 12-09-apollo_network_benchmark_added_message_broadcasting_task branch from fa29577 to bf7d9a3 Compare March 16, 2026 15:13
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcasting_mode_selection branch from 345946a to 049171c Compare March 16, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants