Skip to content

fix: fix e2e issues#2114

Merged
nimrod-teich merged 20 commits into
mainfrom
fix_e2e_test
Dec 9, 2025
Merged

fix: fix e2e issues#2114
nimrod-teich merged 20 commits into
mainfrom
fix_e2e_test

Conversation

@AnnaR-prog

@AnnaR-prog AnnaR-prog commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • read the contribution guide
  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the main branch
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Note

Adds panic recovery and session cleanup to provider Relay, and strengthens E2E framework/scripts with expected process exits, validator readiness checks, and improved logging.

  • Protocol (rpcprovider):
    • RPCProviderServer.Relay: add panic recovery with stack logging; ensure session unlock via OnSessionFailure on panic/unsupported methods; integrate resource limiter rejection path to properly unlock/rollback sessions; switch to named return values.
  • E2E framework (testutil/e2e):
    • Process management: track/consume expected command exits to avoid false panics; remove commands on exit; mark daemon exit as expected in stopLava.
    • Startup checks: wait for validators in checkLava before proceeding.
    • Logging: prevent recursive saveLogs(); improve error aggregation/printing.
    • Misc: use ethtypes aliases; minor timing and reliability tweaks.
  • Test scripts (scripts/test):
    • Clean up redundant wait_next_block; add waits after votes; validate operator address presence; add startup logs.

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

@github-actions

github-actions Bot commented Nov 24, 2025

Copy link
Copy Markdown

Test Results

    7 files  ±0    131 suites  ±0   31m 29s ⏱️ + 9m 50s
3 118 tests ±0  3 117 ✅ +1  1 💤 ±0  0 ❌ ±0 
3 198 runs  ±0  3 197 ✅ +1  1 💤 ±0  0 ❌ ±0 

Results for commit 80b71aa. ± Comparison against base commit 294407b.

♻️ This comment has been updated with latest results.

@AnnaR-prog AnnaR-prog changed the title fix: fix e2e timeout issue (draft) fix: fix e2e issues Nov 25, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Consider adding in line 334
deadline := time.Now().Add(timeout)

and replace 336 and 354 with

for time.Now().Before(deadline) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

avitenzer
avitenzer previously approved these changes Dec 7, 2025

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Comment thread testutil/e2e/protocolE2E.go
Comment thread testutil/e2e/protocolE2E.go Outdated
Enhanced checkLava() to wait for validators to be queryable via the
staking module before running init_e2e.sh, preventing operator_address()
from timing out in CI.
Wait for proposal submission transaction to be included in a block before
voting. This prevents account sequence mismatch errors when transactions
are broadcast in sync mode.

Fixes panic in TestLavaProtocolPayment: 'account sequence mismatch'
- Fixed resource leak in  by using cancellable context for connector loop
- Patched  to gracefully handle websocket closure errors
- Resolved  failure by checking all call options for trailer
- Removed temporary debug logs and cleaned up test helpers
- Fix deadlock in ClientSubscription.run() by making error reporting non-blocking
- Fix panic in genericWebSocketHandler when connection is closed by client
@nimrod-teich nimrod-teich merged commit 4ee4fa7 into main Dec 9, 2025
66 of 68 checks passed
@nimrod-teich nimrod-teich deleted the fix_e2e_test branch December 9, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants