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

chore: consolidate classic-level usage #6795

Merged
merged 2 commits into from
May 24, 2024

Conversation

jeluard
Copy link
Member

@jeluard jeluard commented May 16, 2024

Motivation

Make sure classic-level is used consistently.

Description

Remove older dependencies level and leveldown. db is already dependent on classic-level.

Closes #6794

@jeluard jeluard requested a review from a team as a code owner May 16, 2024 14:00
@@ -38,6 +38,7 @@
"@chainsafe/ssz": "^0.15.1",
"@lodestar/config": "^1.18.1",
"@lodestar/utils": "^1.18.1",
"classic-level": "^1.4.1",
Copy link
Member Author

Choose a reason for hiding this comment

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

It might make sense to depend on classic-level dependency directly now that we are requiring it.

Copy link
Member

Choose a reason for hiding this comment

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

Rather than using the level package?

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, the code already expect running under NodeJS and we add classic-level dependency to make sure the right version is used.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good to me.
Can you update this PR to include that? Currently it feels like in a halfway state (which I suppose caused your comment here).

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link

codecov bot commented May 16, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 62.21%. Comparing base (c39b914) to head (3812189).
Report is 10 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6795      +/-   ##
============================================
+ Coverage     61.88%   62.21%   +0.32%     
============================================
  Files           562      571       +9     
  Lines         59331    60017     +686     
  Branches       1916     1972      +56     
============================================
+ Hits          36715    37337     +622     
- Misses        22573    22637      +64     
  Partials         43       43              

@jeluard jeluard requested a review from wemeetagain May 24, 2024 08:02
@jeluard jeluard changed the title chore: do not rely on leveldown chore: consolidate classic-level usage May 24, 2024
Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

lgtm thanks

@wemeetagain
Copy link
Member

failing CI

@jeluard jeluard merged commit b439da2 into ChainSafe:unstable May 24, 2024
22 checks passed
@jeluard jeluard deleted the jeluard/replace-leveldown branch May 24, 2024 13:39
matthewkeil added a commit that referenced this pull request May 29, 2024
@twoeths twoeths mentioned this pull request May 31, 2024
2 tasks
twoeths pushed a commit that referenced this pull request May 31, 2024
jeluard added a commit to jeluard/lodestar that referenced this pull request Jun 4, 2024
* chore: do not rely on leveldown

* chore: replace level with classic-level
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.

Replace leveldown with classic-level in db tests
2 participants