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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

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 7.69231% with 36 lines in your changes missing coverage. Please review.

Project coverage is 45.53%. Comparing base (2469e7a) to head (8a4573d).
Report is 194 commits behind head on main.

Files with missing lines Patch % Lines
nodebuilder/da/service.go 8.33% 33 Missing ⚠️
nodebuilder/da/da.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3750      +/-   ##
==========================================
+ Coverage   44.83%   45.53%   +0.70%     
==========================================
  Files         265      281      +16     
  Lines       14620    16090    +1470     
==========================================
+ Hits         6555     7327     +772     
- Misses       7313     7924     +611     
- Partials      752      839      +87     

☔ 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
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.
@@ -105,11 +104,13 @@ func TestDaModule(t *testing.T) {
{
name: "GetIDs",
doFn: func(t *testing.T) {
t.Skip()
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm curious why it was skipped before. Anyone knows?

Copy link
Member Author

Choose a reason for hiding this comment

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

IIRC order of returned IDs was non-deterministic in the past.

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

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
3 participants