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: add dumping and loading of state #555

Merged
merged 21 commits into from
Nov 2, 2023

Conversation

bajpai244
Copy link
Contributor

Pull Request type

Time spent on this PR:

Resolves: #159

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Testing

What is the new behavior?

Allows dump and loading state to and from json files.

Does this introduce a breaking change?

  • Yes
  • No

@bajpai244 bajpai244 requested a review from greged93 October 19, 2023 15:49
Copy link
Contributor

@greged93 greged93 left a comment

Choose a reason for hiding this comment

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

couple of comments, looks good!

crates/sequencer/src/serde.rs Outdated Show resolved Hide resolved
crates/sequencer/src/serde.rs Outdated Show resolved Hide resolved
crates/sequencer/src/state.rs Outdated Show resolved Hide resolved
crates/sequencer/src/state.rs Outdated Show resolved Hide resolved
crates/sequencer/src/state.rs Outdated Show resolved Hide resolved
crates/sequencer/src/state.rs Outdated Show resolved Hide resolved
@greged93
Copy link
Contributor

Also, can you integrate all this in the actual execution of the tests?

@bajpai244 bajpai244 force-pushed the feat/add-serialization-to-state branch 2 times, most recently from 25a6b02 to 0ed55db Compare October 26, 2023 08:42
@bajpai244
Copy link
Contributor Author

Also, can you integrate all this in the actual execution of the tests?

resolved via this.

Copy link
Contributor

@greged93 greged93 left a comment

Choose a reason for hiding this comment

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

I think there is some improvement that we can bring to the serde module in order to maybe only implement serialization

crates/sequencer/Cargo.toml Outdated Show resolved Hide resolved
crates/sequencer/src/sequencer.rs Outdated Show resolved Hide resolved
crates/sequencer/src/serde.rs Outdated Show resolved Hide resolved
crates/sequencer/src/state.rs Outdated Show resolved Hide resolved
@Eikix
Copy link
Member

Eikix commented Oct 31, 2023

What is the status of this @bajpai244 @greged93

@greged93
Copy link
Contributor

CI failing and waiting for answer on comments

@bajpai244 bajpai244 force-pushed the feat/add-serialization-to-state branch 2 times, most recently from 82167c9 to 87faaf2 Compare November 1, 2023 11:04
@bajpai244 bajpai244 force-pushed the feat/add-serialization-to-state branch from af6efae to 3d27d5b Compare November 1, 2023 13:42
@greged93
Copy link
Contributor

greged93 commented Nov 2, 2023

@bajpai244 you have a couple of issues in the trunk CI you need to fix

@bajpai244 bajpai244 force-pushed the feat/add-serialization-to-state branch from 3d27d5b to e24c8ac Compare November 2, 2023 09:43
@greged93 greged93 force-pushed the feat/add-serialization-to-state branch from e24c8ac to 633cee0 Compare November 2, 2023 10:48
@Eikix
Copy link
Member

Eikix commented Nov 2, 2023

I think we shouldn't have any diff on ef test folder

crates/sequencer/src/state.rs Outdated Show resolved Hide resolved
crates/sequencer/src/serde.rs Outdated Show resolved Hide resolved
crates/sequencer/src/serde.rs Outdated Show resolved Hide resolved
crates/sequencer/src/serde.rs Outdated Show resolved Hide resolved
crates/sequencer/src/serde.rs Outdated Show resolved Hide resolved
Copy link
Member

@Eikix Eikix left a comment

Choose a reason for hiding this comment

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

lgtm

@Eikix Eikix added this pull request to the merge queue Nov 2, 2023
Merged via the queue into kkrt-labs:main with commit db15057 Nov 2, 2023
2 checks passed
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.

3 participants