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(nodebuilder/da): implement go-da v0.6.1 changes #3750

Merged
merged 10 commits into from
Oct 2, 2024

Conversation

tzdybal
Copy link
Member

@tzdybal tzdybal commented Sep 19, 2024

Resolves #3743

@github-actions github-actions bot added the external Issues created by non node team members label Sep 19, 2024
@tzdybal tzdybal self-assigned this Sep 19, 2024
@tzdybal tzdybal added the kind:feat Attached to feature PRs label Sep 19, 2024
@tzdybal tzdybal force-pushed the tzdybal/new_go_da branch 2 times, most recently from 269c6e8 to 9332823 Compare September 19, 2024 12:57
@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 8.57143% with 32 lines in your changes missing coverage. Please review.

Project coverage is 46.49%. Comparing base (2469e7a) to head (2bed37a).
Report is 375 commits behind head on main.

Files with missing lines Patch % Lines
nodebuilder/da/service.go 9.37% 29 Missing ⚠️
nodebuilder/da/da.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3750      +/-   ##
==========================================
+ Coverage   44.83%   46.49%   +1.65%     
==========================================
  Files         265      314      +49     
  Lines       14620    18120    +3500     
==========================================
+ Hits         6555     8425    +1870     
- Misses       7313     8681    +1368     
- Partials      752     1014     +262     

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

@tzdybal tzdybal changed the title feat(nodebuilder/da): implement go-da v0.6.x changes feat(nodebuilder/da): implement go-da v0.6.1 changes Sep 19, 2024
@tzdybal tzdybal marked this pull request as ready for review September 19, 2024 21:20
cristaloleg
cristaloleg previously approved these changes Sep 20, 2024
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

vgonkivs
vgonkivs previously approved these changes Sep 23, 2024
Copy link
Member

@vgonkivs vgonkivs left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

nodebuilder/da/service.go Outdated Show resolved Hide resolved
nodebuilder/da/service.go Outdated Show resolved Hide resolved
nodebuilder/da/service.go Outdated Show resolved Hide resolved
renaynay
renaynay previously approved these changes Sep 30, 2024
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.

utACK

@renaynay renaynay enabled auto-merge (squash) October 2, 2024 13:12
auto-merge was automatically disabled October 2, 2024 14:42

Head branch was pushed to by a user without write access

@tzdybal tzdybal force-pushed the tzdybal/new_go_da branch from 048e823 to d3536d4 Compare October 2, 2024 14:42
tzdybal added 10 commits October 2, 2024 17:15
This change ensures that if the options byte slice is empty, the parseOptions function returns an empty slice of ConfigOption without proceeding to unmarshal. This prevents potential errors and enhances the function's robustness.
…st loop

The reassignment of 'tt' within the loop is unnecessary and redundant. This cleanup simplifies the code and reduces potential confusion during code reviews.
Unskip DA tests in `da_test.go` and correct parameter usage in test functions to ensure accurate comparisons. This allows the full test suite to run and verifies the integrity of the Data Availability logic.
Introduced tests for the SubmitWithOptions method to ensure correct behavior with valid and invalid input. These tests validate the API's handling of well-formed requests and error scenarios, improving the robustness of the DA client.
Anonymous struct used for parsing submit options was extracted as exported struct for better visibility and documentation.
Standardize the JSON keys in the `SubmitOptions` struct to follow snake_case convention. This change ensures consistency in JSON serialization and deserialization across all service methods and tests.
Upgraded the go-da dependency from v0.7.0 to v0.8.0 in go.mod and go.sum.
@tzdybal tzdybal force-pushed the tzdybal/new_go_da branch from 446cb55 to 2bed37a Compare October 2, 2024 15:15
@cristaloleg cristaloleg merged commit f2fd83b into celestiaorg:main Oct 2, 2024
31 checks passed
Copy link

gitpoap-bot bot commented Oct 2, 2024

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 Celestia Contributor:

GitPOAP: 2024 Celestia Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@cristaloleg
Copy link
Contributor

Congrats @tzdybal ☝️ 😂

mojtaba-esk pushed a commit to vgonkivs/celestia-node that referenced this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members kind:feat Attached to feature PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Update to go-da v0.6.x
7 participants