Skip to content
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

feat: attempt to fetch operation status in database upon relayer restart #5182

Merged
merged 27 commits into from
Jan 29, 2025

Conversation

kamiyaa
Copy link
Collaborator

@kamiyaa kamiyaa commented Jan 15, 2025

Description

  • Add logic to retrieve message status from db before defaulting to PendingOperationStatus::FirstPrepareAttempt.
  • Add e2e tests to restart relayer and check message statuses were successfully read from db

Drive-by changes

  • add impl Default to MerkleTreeBuilder to satisfy clippy

Related issues

Backward compatibility

Yes

Testing

  • Add e2e tests to restart relayer and check message statuses were successfully read from db

Copy link

changeset-bot bot commented Jan 15, 2025

⚠️ No Changeset found

Latest commit: d50db51

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.53%. Comparing base (84f886b) to head (d50db51).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5182   +/-   ##
=======================================
  Coverage   77.53%   77.53%           
=======================================
  Files         103      103           
  Lines        2110     2110           
  Branches      190      190           
=======================================
  Hits         1636     1636           
  Misses        453      453           
  Partials       21       21           
Components Coverage Δ
core 87.80% <ø> (ø)
hooks 79.39% <ø> (ø)
isms 83.68% <ø> (ø)
token 91.27% <ø> (ø)
middlewares 79.80% <ø> (ø)

rust/main/agents/relayer/src/msg/pending_message.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Outdated Show resolved Hide resolved
@kamiyaa kamiyaa force-pushed the jeff/operation-status branch from e45a249 to 62d60c6 Compare January 23, 2025 09:28
rust/main/agents/relayer/src/msg/pending_message.rs Outdated Show resolved Hide resolved
rust/main/agents/relayer/src/msg/pending_message.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/utils.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Outdated Show resolved Hide resolved
 - gate debug messages behind "test-utils" feature
 - rename message_retrieval_invariants_met to relayer_restart_invariants_met
 - add comment on message_retry termination invariants
rust/main/utils/run-locally/src/utils.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Outdated Show resolved Hide resolved
@kamiyaa kamiyaa force-pushed the jeff/operation-status branch from 05c15ef to 99fd6f7 Compare January 28, 2025 06:53
Copy link
Collaborator

@tkporter tkporter left a comment

Choose a reason for hiding this comment

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

enjoying the cleanup around run-locally :)

rust/main/agents/relayer/src/msg/pending_message.rs Outdated Show resolved Hide resolved
rust/main/agents/relayer/src/msg/pending_message.rs Outdated Show resolved Hide resolved
rust/main/agents/relayer/src/msg/pending_message.rs Outdated Show resolved Hide resolved
rust/main/agents/relayer/src/msg/pending_message.rs Outdated Show resolved Hide resolved
rust/main/utils/run-locally/src/utils.rs Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Show resolved Hide resolved
rust/main/utils/run-locally/src/main.rs Outdated Show resolved Hide resolved
@tkporter tkporter enabled auto-merge January 29, 2025 14:36
@tkporter tkporter added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit f250b19 Jan 29, 2025
44 checks passed
@tkporter tkporter deleted the jeff/operation-status branch January 29, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug: Operation status labels are reset across relayer restarts
4 participants