-
Notifications
You must be signed in to change notification settings - Fork 146
fix(l2): increase L1 tx receipt retrieve retries #5356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses flaky L2 integration tests in CI caused by changes to L1 dev node transaction inclusion behavior. The fix increases the retry count for retrieving L1 transaction receipts from 5 to 50 attempts, allowing sufficient time for the L1 dev node to include transactions.
Key Changes:
- Increased transaction receipt retrieval retry count from 5 to 50 across all L2 integration tests
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| let deposit_tx_receipt = | ||
| ethrex_l2_sdk::wait_for_transaction_receipt(deposit_tx_hash, l1_client, 5).await?; | ||
| ethrex_l2_sdk::wait_for_transaction_receipt(deposit_tx_hash, l1_client, 50).await?; |
Copilot
AI
Nov 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The retry count '50' is a magic number repeated across multiple tests. Consider extracting this to a named constant (e.g., const L1_TX_RECEIPT_MAX_RETRIES: u64 = 50;) at the module level to improve maintainability and make it easier to adjust if needed in the future.
| ethrex_l2_sdk::wait_for_transaction_receipt(deposit_tx_hash, l1_client, 50).await?; | |
| ethrex_l2_sdk::wait_for_transaction_receipt(deposit_tx_hash, l1_client, L1_TX_RECEIPT_MAX_RETRIES).await?; |
**Motivation** lambdaclass#5337 introduced some unexpected behaviour in the L1 dev node tx inclusion. This made flaky L2 integration tests in the CI. **Description** Increase the number of retries to retrieve an L1 tx receipt to a number high enough for the L1 dev to include txs.
Motivation
#5337 introduced some unexpected behaviour in the L1 dev node tx inclusion. This made flaky L2 integration tests in the CI.
Description
Increase the number of retries to retrieve an L1 tx receipt to a number high enough for the L1 dev to include txs.