test: improves websocket server teardown#30043
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 66ba1d9. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: The PR makes two categories of changes:
Tag selection rationale:
No performance tests are needed as these are test infrastructure/skip changes with no app code modifications. Performance Test Selection: |
|




Description
This PR improves websocket server teardown to prevent port collision and skips failing tests.
Context: https://consensys.slack.com/archives/C02U025CVU4/p1778589879443169
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk: changes are limited to the E2E test harness and smoke specs, mainly improving WebSocket teardown/port release to avoid CI port collisions. Main downside is reduced coverage due to multiple smoke suites being temporarily skipped.
Overview
Improves E2E WebSocket teardown to avoid port collisions.
LocalWebSocketServernow optionally tracks aResourceTypeand always releases itsPortManagerallocation when stopping (including when the server was never started, and via afinallyto guarantee cleanup on errors).withFixturesnow constructs the account-activity WebSocket server withResourceType.ACCOUNT_ACTIVITY_WSso this release happens.Unblocks CI by skipping failing smoke tests. Several smoke specs (native send, EIP-7702 gas fee token flows, perps liquidation, and snap tests) are switched to
describe.skipwith comments pointing to the tracking thread.Reviewed by Cursor Bugbot for commit 54caed9. Bugbot is set up for automated code reviews on this repo. Configure here.