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

refactor(share/availability/light | share/availability/full): Availability implementations are aware of sampling window, removed from DASer #3957

Merged
merged 10 commits into from
Dec 10, 2024

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Nov 22, 2024

This PR makes the concept of archival node explicit, splitting it away from sampling window. Now, both the node's pruning status (archival or not) and the sampling window will have to be provided to availability implementations for them to determine what to sync + what to store. This also applies to core package for BNs as that's their "availability implementation" technically.

@renaynay renaynay self-assigned this Nov 22, 2024
@renaynay renaynay added area:shares Shares and samples kind:refactor Attached to refactoring PRs labels Nov 22, 2024
@renaynay renaynay force-pushed the split-sampling-windows branch from ccfedc6 to 354e3ab Compare December 2, 2024 10:02
core/option.go Show resolved Hide resolved
@renaynay renaynay marked this pull request as ready for review December 2, 2024 17:04
@codecov-commenter
Copy link

codecov-commenter commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 82.22222% with 8 lines in your changes missing coverage. Please review.

Project coverage is 45.60%. Comparing base (2469e7a) to head (b98b4b6).
Report is 405 commits behind head on main.

Files with missing lines Patch % Lines
nodebuilder/pruner/module.go 0.00% 3 Missing ⚠️
share/availability/light/availability.go 25.00% 2 Missing and 1 partial ⚠️
das/worker.go 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3957      +/-   ##
==========================================
+ Coverage   44.83%   45.60%   +0.76%     
==========================================
  Files         265      309      +44     
  Lines       14620    22013    +7393     
==========================================
+ Hits         6555    10039    +3484     
- Misses       7313    10904    +3591     
- Partials      752     1070     +318     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cristaloleg
Copy link
Contributor

Merge conflict after Hlib changes.

…implement in avail impls, fullAvailability takes opts + params
…paramters as it doesnt matter if its written on disk, bc we always override it light avail construction which forces it to be defined StorageWindow
…confuse node operators as the value wont actually be configurable
@renaynay renaynay force-pushed the split-sampling-windows branch from 774afa1 to 0724ac9 Compare December 3, 2024 15:35
Copy link
Contributor

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

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

SGTM

Copy link
Contributor

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

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

SGTM

@renaynay renaynay enabled auto-merge (squash) December 10, 2024 16:07
@renaynay renaynay merged commit ac5d7a7 into celestiaorg:main Dec 10, 2024
19 checks passed
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:refactor Attached to refactoring PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants