Skip to content

apollo_network_benchmark: add ReversedSqmr receiver and registration - #11555

Closed
sirandreww-starkware wants to merge 1 commit into
01-08-apollo_network_benchmark_add_reveresedsqmrsender_struct_and_implementationfrom
01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration
Closed

sirandreww-starkware wants to merge 1 commit into
01-08-apollo_network_benchmark_add_reveresedsqmrsender_struct_and_implementationfrom
01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration

Conversation

@sirandreww-starkware

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

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Adds new async loops and query/response handling in the benchmark node; mistakes could cause hangs, hot loops, or misleading benchmark results, but it’s isolated to benchmarking code.

Overview
Implements the previously todo!() NetworkProtocol::ReveresedSqmr path in the broadcast network stress test node by registering SQMR client/server channels and wiring them into new MessageSender::ReveresedSqmr and MessageReceiver::ReveresedSqmr variants.

Adds a ReveresedSqmrSender wrapper that tracks the latest incoming server query and replies with broadcast messages, and adds a receiver loop that continuously opens client queries and streams responses into the benchmark’s message callback with basic error logging.

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

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

sirandreww-starkware commented Jan 8, 2026 •

Copy link
Copy Markdown
Contributor Author

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

github-actions Bot commented Feb 8, 2026

Copy link
Copy Markdown

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

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

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

);
}
}
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tight busy-loop on repeated connection failure

Medium Severity

The ReveresedSqmr receiver's outer loop has no delay or backoff in the Err(e) arm. Since send_new_query fails immediately (the underlying mpsc::SendError is non-blocking), a persistent failure will cause a tight CPU-spinning loop that also floods logs with error messages. A small sleep or backoff in the error branch would prevent this.

Additional Locations (1)

Fix in Cursor Fix in Web

@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmrsender_struct_and_implementation branch from 471fd3f to a929882 Compare February 16, 2026 09:10
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration branch from 0192b6d to a024e8b 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_reveresedsqmrsender_struct_and_implementation branch from a929882 to a354cd2 Compare February 19, 2026 07:24
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration branch from a024e8b to 31afa17 Compare February 19, 2026 07:24
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmrsender_struct_and_implementation branch from a354cd2 to a153019 Compare February 19, 2026 08:04
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration branch from 31afa17 to 5436db8 Compare February 19, 2026 08:04
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmrsender_struct_and_implementation branch from a153019 to 4541183 Compare March 16, 2026 15:13
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration branch from 5436db8 to 3bd9208 Compare March 16, 2026 15:13
@sirandreww-starkware sirandreww-starkware changed the title apollo_network_benchmark: add ReveresedSqmr receiver and registration apollo_network_benchmark: add ReversedSqmr receiver and registration Mar 22, 2026
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmrsender_struct_and_implementation branch from 4541183 to 7c93416 Compare March 22, 2026 17:09
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration branch from 3bd9208 to 6d96e8c Compare March 22, 2026 17:09
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmrsender_struct_and_implementation branch from 7c93416 to a45019b Compare March 30, 2026 11:08
@sirandreww-starkware
sirandreww-starkware force-pushed the 01-08-apollo_network_benchmark_add_reveresedsqmr_receiver_and_registration branch from 6d96e8c to 87d3238 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