refactor(p2p): remove simulations package - #2530
Conversation
Signed-off-by: Vladislav Lapin <v.lapin@scalablesolutions.io>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (25)
💤 Files with no reviewable changes (23)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change removes the ChangesSimulation package removal
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to This PR removes the unused simulations package and command while retaining the helper needed by existing tests; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I will remove this package later since I‘m upgrade p2p package. And don't submit PR to main branch. |
|
Understood — this package is being removed as part of the p2p upgrade, and new work should not target |
Proposed changes
Closes #694.
Remove the unused
p2p/simulationspackage and thep2psimcommand, following the corresponding upstream go-ethereum cleanup in ethereum#30250.The
TCPPipehelper is retained underp2p/pipesbecause it is still used by the RLPx tests. This also removes the obsoletep2psimarchive entry and the now-unused directhttprouterdependency.Validation
gofmtandgoimportson changed Go filesmake allmake tidymake generatego test ./p2p/... -count=1make quick-testaccounts/abi/abigengo test ./accounts/abi/abigen -count=1git diff --checkThe split full-test run is intentional:
accounts/abi/abigen.TestBindings/TestOverloadhas a container-only race that reproduces unchanged onmain; it passes natively. All other packages passed in Docker. Full lint reports 69 pre-existing findings (down from 75 onmain; the removed six were in the deleted simulations package).Types of changes
Impacted Components
Checklist
Summary by CodeRabbit
Removed Features
Documentation
Maintenance