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(share): Supplying eds.Store to bridge and full nodes #1363

Merged
merged 7 commits into from
Dec 6, 2022

Conversation

distractedm1nd
Copy link
Collaborator

@distractedm1nd distractedm1nd commented Nov 14, 2022

PULL REQUEST

Overview

This PR is based on #1232 and closes #1114. It supplies bridge and full nodes with an instance of EDSStore. The base path is provided by FX from nodebuilder.Store through a string alias.

It also fixes a bug that occurred when initializing the eds.Store twice, where the directories already existed. I have swapped MkDir out for MkDirAll, which does not err if the directory already exists.

No test modifications are done, but the Lifecycle tests would fail if it were to fail building or not be able to provide the EDSStore to the nodes.

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@distractedm1nd distractedm1nd added area:shares Shares and samples kind:feat Attached to feature PRs labels Nov 14, 2022
@distractedm1nd distractedm1nd self-assigned this Nov 14, 2022
@distractedm1nd distractedm1nd force-pushed the integrate-edsstore branch 2 times, most recently from d94806c to 7a71515 Compare November 24, 2022 09:56
walldiss
walldiss previously approved these changes Nov 24, 2022
nodebuilder/share/module.go Show resolved Hide resolved
nodebuilder/node/type.go Outdated Show resolved Hide resolved
@distractedm1nd distractedm1nd changed the title feat(share): Supplying EDSStore to bridge and full nodes feat(share): Supplying eds.Store to bridge and full nodes Dec 1, 2022
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

very nice overriding storepath w tempdir :)

share/eds/store.go Outdated Show resolved Hide resolved
share/eds/store.go Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2022

Codecov Report

Merging #1363 (fd65644) into main (da4f54b) will increase coverage by 0.00%.
The diff coverage is 47.36%.

@@           Coverage Diff           @@
##             main    #1363   +/-   ##
=======================================
  Coverage   56.02%   56.02%           
=======================================
  Files         188      188           
  Lines       11551    11561   +10     
=======================================
+ Hits         6471     6477    +6     
- Misses       4443     4447    +4     
  Partials      637      637           
Impacted Files Coverage Δ
nodebuilder/module.go 100.00% <ø> (ø)
nodebuilder/node/type.go 35.71% <ø> (ø)
nodebuilder/share/module.go 77.08% <10.00%> (-17.92%) ⬇️
share/eds/store.go 48.20% <83.33%> (ø)
nodebuilder/testing.go 100.00% <100.00%> (ø)
header/p2p/subscription.go 77.27% <0.00%> (-0.99%) ⬇️
header/core/listener.go 58.49% <0.00%> (+5.66%) ⬆️
nodebuilder/store_mem.go 90.90% <0.00%> (+9.09%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

renaynay
renaynay previously approved these changes Dec 5, 2022
Wondertan
Wondertan previously approved these changes Dec 5, 2022
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

LGTM. One nit and another general comment with actionable issue

nodebuilder/tests/swamp/swamp.go Show resolved Hide resolved
nodebuilder/share/module.go Outdated Show resolved Hide resolved
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

LGTM. Can you make an FS issue?

@distractedm1nd distractedm1nd merged commit c8413c2 into celestiaorg:main Dec 6, 2022
renaynay pushed a commit to renaynay/celestia-node that referenced this pull request Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:shares Shares and samples kind:feat Attached to feature PRs
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

node: Integrate share.EDSStore
5 participants