Skip to content

007 resilience e2e#362

Draft
nahimterrazas wants to merge 17 commits into
mainfrom
007-resilience-e2e
Draft

007 resilience e2e#362
nahimterrazas wants to merge 17 commits into
mainfrom
007-resilience-e2e

Conversation

@nahimterrazas
Copy link
Copy Markdown
Collaborator

Summary

Testing Process

Checklist

  • Add a reference to related issues in the PR description.
  • Add unit tests if applicable.

- Introduced  and  types for managing transaction attempts.
- Implemented  for creating, saving, and retrieving transaction attempts.
- Updated  and  to include necessary dependencies.
- Added tests for transaction attempt functionality to ensure correct behavior and persistence.
- Added support for recording transaction attempt updates, including transaction hashes and receipts.
- Updated the  trait and its implementations to accommodate new fields.
- Integrated transaction attempt recording into order and settlement handlers.
- Introduced end-to-end tests for transaction attempt delivery to ensure proper functionality and persistence.
- Added  dependency for async trait support.
…vice

- Added TransactionAttemptStore to RecoveryService for enhanced transaction recovery.
- Implemented methods for retrieving and resolving transaction attempts during recovery.
- Updated the storage interface to support atomic compare-and-swap operations with index refresh.
- Enhanced tests to cover new transaction attempt functionalities and ensure correct behavior.
…vice

- Added TransactionAttemptStore to RecoveryService for enhanced transaction recovery.
- Implemented methods for retrieving and resolving transaction attempts during recovery.
- Updated the storage interface to support atomic compare-and-swap operations with index refresh.
- Enhanced tests to cover new transaction attempt functionalities and ensure correct behavior.
- Updated  to return a Result for better error handling.
- Improved error logging for invalid order IDs in recovery service methods.
- Modified  to accept transaction attempts and use the correct anchor transaction.
- Added tests to verify new behavior for order ID processing and recovery scenarios.
…on monitoring

- Added revert classification logic to handle transaction failures more effectively.
- Integrated new  types to distinguish between , , and  states.
- Updated order and settlement handlers to utilize the new classification during transaction monitoring.
- Enhanced the  to support retrieving revert data for failed transactions.
- Introduced tests for revert classification to ensure accurate behavior and logging.
…canning

- Updated  to scan for earlier events by adjusting the starting block based on the receipt's block number.
- Modified  to treat transient errors during transaction attempts and revert data retrieval as , preventing permanent failure states.
- Added tests to ensure correct behavior for both the chain probe and recovery service under error conditions.
- Introduced a new  field in  to facilitate profitability calculations.
- Implemented  method to determine if a transaction bump should proceed based on profitability headroom.
- Enhanced event logging for cases where the proposed bumped transaction cost exceeds the available profitability.
- Updated tests to cover new profitability checks and event emissions.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

Warning

Rate limit exceeded

@nahimterrazas has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d600af5c-dce9-4062-920e-0220048e1c94

📥 Commits

Reviewing files that changed from the base of the PR and between 7db99fb and 199f0aa.

📒 Files selected for processing (29)
  • crates/solver-config/src/builders/config.rs
  • crates/solver-config/src/lib.rs
  • crates/solver-core/src/bump/lineage.rs
  • crates/solver-core/src/bump/mod.rs
  • crates/solver-core/src/bump/policy.rs
  • crates/solver-core/src/bump/service.rs
  • crates/solver-core/src/engine/mod.rs
  • crates/solver-core/src/handlers/order.rs
  • crates/solver-core/src/handlers/settlement.rs
  • crates/solver-core/src/handlers/transaction.rs
  • crates/solver-core/src/lib.rs
  • crates/solver-core/src/recovery/mod.rs
  • crates/solver-core/src/state/order.rs
  • crates/solver-core/src/state/transaction_attempt.rs
  • crates/solver-core/tests/transaction_attempt_store.rs
  • crates/solver-delivery/src/implementations/evm/alloy.rs
  • crates/solver-delivery/src/lib.rs
  • crates/solver-e2e-tests/Cargo.toml
  • crates/solver-e2e-tests/src/lib.rs
  • crates/solver-e2e-tests/tests/resilience_e2e.rs
  • crates/solver-e2e-tests/tests/resilience_e2e/fixture.rs
  • crates/solver-e2e-tests/tests/transaction_attempt_delivery_e2e.rs
  • crates/solver-service/src/apis/admin.rs
  • crates/solver-service/src/apis/rebalance.rs
  • crates/solver-service/src/config_merge.rs
  • crates/solver-types/src/events.rs
  • crates/solver-types/src/lib.rs
  • crates/solver-types/src/operator_config.rs
  • crates/solver-types/src/transaction_attempt.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 007-resilience-e2e

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nahimterrazas nahimterrazas marked this pull request as draft May 19, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant