Repository navigation
Conversation
Delete two unused `pub` convenience methods from `IntegrationTestManager`: `await_txs_accepted_on_all_running_nodes` and `get_num_accepted_txs_on_all_running_nodes`, plus the now-unused `monitoring_utils::await_txs_accepted` import they left behind. Both are `_on_all_running_nodes` wrappers over still-used methods/helpers (`perform_action_on_all_running_nodes` + `await_txs_accepted`, and `get_num_accepted_txs_on_running_nodes(get_running_node_indices())` respectively); the wrapped items retain other live callers, so removal is self-contained. Neither method has any caller anywhere in the sequencer workspace (all `tests/`/`benches/`/`src/bin/*` included) or in the sibling repos sequencer-devops and starkware, and both predate the repo's shallow history window (unused for >2 months, not fresh scaffolding). Marked "unsure, review carefully": this is a test-harness library whose `pub` API is a reusable toolbox, so these wrappers may be intentionally kept for future or out-of-tree test authors even without current callers. A maintainer should confirm they are not intended as kept public test-API before merging. Verified: rust_fmt clean; `cargo build -p apollo_integration_tests` and `cargo clippy -p apollo_integration_tests --all-targets` both finish with zero dead_code/unused warnings (clippy covers lib + bins + tests, i.e. both cfgs). The `--tests` full link and the test run are environmentally infeasible here (linking ~15 full-node-stack test binaries exhausts the session disk; tests need a live multi-node network); removing uncalled methods cannot change test behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AHduHDPL9JJPafP1GJxHWL
This branch has not been deployed
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.
Caution
REVIEW WITH CARE! THIS PR REQUIRES CAREFUL HUMAN REVIEW...
If you find this to be a false positive comment in detail why this code should be kept and close the PR.
Description
Deletes two unused
pubconvenience methods fromIntegrationTestManagerincrates/apollo_integration_tests/src/integration_test_manager.rs:await_txs_accepted_on_all_running_nodes(&mut self, target_n_txs: usize)get_num_accepted_txs_on_all_running_nodes(&self) -> HashMap<usize, usize>Both are
_on_all_running_nodesconvenience wrappers over existing, still-usedmethods/helpers:
await_txs_accepted_on_all_running_nodeswrappedperform_action_on_all_running_nodes+ themonitoring_utils::await_txs_acceptedhelper (which keeps other callers, e.g.sequencer_simulator_utils.rs,bin/sequencer_simulator.rs).get_num_accepted_txs_on_all_running_nodeswrappedget_num_accepted_txs_on_running_nodes(&self.get_running_node_indices()); the innerget_num_accepted_txs_on_running_nodeskeeps other callers in this same file.The PR also drops the now-unused
monitoring_utils::await_txs_acceptedimport fromintegration_test_manager.rs(its only use in this file was the deleted method; the helperitself is kept, as it is used elsewhere).
Why this may be dead
starkware-libs/sequencerworkspace (includingevery
tests/,benches/, andsrc/bin/*target), confirmed by a whole-workspaceword-boundary grep.
starkware-industries/sequencer-devopsorstarkware-industries/starkware(scripts/config/code).least ~2 months — they are not freshly-added scaffolding.
transitive dead code is introduced.
What a human must verify
This crate is a test-harness library whose
pubAPI is intended as a reusable toolbox forintegration-test authors. These two
_on_all_running_nodeswrappers may be deliberately kept asconvenience building blocks for future or out-of-tree test scenarios, even though nothing calls
them today. A maintainer should confirm these wrappers are not intended as kept public
test-API (e.g. for an upcoming test, or for consumers outside the three repos checked above)
before merging. If they are intended to be kept, this is a false positive — please comment why
and close the PR.
Verification
scripts/rust_fmt.sh— clean.cargo build -p apollo_integration_tests(default/lib) —Finished, zerodead_code/unused/never readwarnings. (CI runs withRUSTFLAGS="-D warnings", so thenow-unused
await_txs_acceptedimport had to be removed too.)cargo clippy -p apollo_integration_tests --all-targets—Finished, zero warnings. Thistype-checks the lib, all bins, and all test targets (i.e. both the default and
cfg(test)configurations), confirming the deletion introduces no dead-code/unused warnings in either cfg.
cargo build -p apollo_integration_tests --tests(full link) and the integration-test runcould not be completed in this sandbox: linking the crate's ~15 integration-test binaries (each
statically links the whole node stack) exhausts the session's fixed disk allowance and fails
with
error: linking with 'cc' failed(ENOSPC), and the tests themselves require a livemulti-node network. This is an environmental limit, not a property of this change — and since the
deletion only removes methods that have no callers, it cannot affect any test's behavior.
Caution
REVIEW WITH CARE! THIS PR REQUIRES CAREFUL HUMAN REVIEW...
If you find this to be a false positive comment in detail why this code should be kept and close the PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AHduHDPL9JJPafP1GJxHWL
Generated by Claude Code