test(ledger-suite-orchestrator): drop the StateMachine test fixture - #10956
test(ledger-suite-orchestrator): drop the StateMachine test fixture#10956gregorydemay wants to merge 1 commit into
Conversation
Nothing in rs/ethereum consumes the old StateMachine-based fixture (lib.rs's LedgerSuiteOrchestrator, flow.rs, universal_canister.rs) now that both LSO and cketh integration tests run on PocketIC. Delete it and the now-unused ic-state-machine-tests, ic-types, and ic-management-canister-types-private dependencies, keeping only the environment-agnostic helpers (wasm loaders, init-arg builders, supported_erc20_tokens/usdc/usdt, constants) that the pocket_ic module and cketh still import at their existing paths. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Removes the legacy ic-state-machine-tests-based test fixture from rs/ethereum/ledger-suite-orchestrator/test_utils, leaving the existing PocketIC fixture as the only supported test harness and cleaning up now-unused dependencies.
Changes:
- Deleted the StateMachine-based
flowanduniversal_canisterfixtures and removed the StateMachineLedgerSuiteOrchestratorhelper implementation fromtest_utils/src/lib.rs. - Kept the environment-agnostic helpers (wasm loaders, init-arg builders, token helpers/constants) at their existing crate-root paths.
- Dropped unused dependencies (
ic-state-machine-tests,ic-types,ic-management-canister-types-private,assert_matches) from Cargo + Bazel, and updatedCargo.lock.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| rs/ethereum/ledger-suite-orchestrator/test_utils/src/universal_canister.rs | Deleted the StateMachine-based universal canister helper (PocketIC version remains under pocket_ic/). |
| rs/ethereum/ledger-suite-orchestrator/test_utils/src/lib.rs | Removed StateMachine fixture exports/impls; retained shared helper APIs/constants used by PocketIC + ckETH. |
| rs/ethereum/ledger-suite-orchestrator/test_utils/src/flow.rs | Deleted the StateMachine-based flow/assertion helpers (PocketIC equivalents remain under pocket_ic/). |
| rs/ethereum/ledger-suite-orchestrator/test_utils/Cargo.toml | Removed unused StateMachine-era dependencies. |
| rs/ethereum/ledger-suite-orchestrator/test_utils/BUILD.bazel | Removed unused Bazel deps corresponding to the deleted fixture. |
| Cargo.lock | Reflected the dependency removals for ic-ledger-suite-orchestrator-test-utils. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖🧐 VERDICT: CHANGES_REQUESTED — 0 blockers, 0 mediums, 3 nits; CI pending ( Review detailsVerdict rationaleNothing in the diff needs to change. The three questions a deletion PR has to answer1. Was anything still needed deleted? No. Conversely, every deleted symbol is gone repo-wide: 2. Was anything dead kept? Three pre-existing dead deps — see the inline nit on 3. The sweep claims — one holds as stated, one needs restating. Grep sweep: holds. Bazel sweep: the substantive criterion is met, but the plan's literal wording is unachievable. Maintainability rundown
TestingPure deletion of unreferenced code, so no behaviour changes and no new tests are warranted; the guarantee needed is that the surviving suites are unaffected, which they are. What I ran
|
Completes the DEFI-2262 PocketIC migration for
rs/ethereum: with the ckETH minter's integration tests now running on PocketIC, nothing inrs/ethereumstill uses the ledger-suite-orchestrator's StateMachine-based test fixture. This PR deletes it, along with the now-unusedic-state-machine-tests,ic-types,ic-management-canister-types-private, andassert_matchesdependencies, leaving PocketIC as the orchestrator's sole test harness.LedgerSuiteOrchestrator/flow/universal_canisterfixture fromledger-suite-orchestrator/test_utils; thepocket_icmodule (added in test(ledger-suite-orchestrator): migrate integration tests to PocketIC #10949) is now the crate's only fixture.pocket_icmodule and cketh still import at their existing paths (wasm loaders, init-arg builders,usdc()/usdt(), constants).ic-state-machine-tests,ic-types,ic-management-canister-types-private, andassert_matchesdependencies fromCargo.toml/BUILD.bazel.📚 PR stack
🤖 Generated with Claude Code