Skip to content

Conversation

Halimao
Copy link
Contributor

@Halimao Halimao commented Dec 30, 2023

Partially addresses: #1140

Exports errors for light package.

@Halimao Halimao requested a review from a team as a code owner December 30, 2023 01:56
@Halimao Halimao requested a review from a team December 30, 2023 01:56
@adizere
Copy link
Contributor

adizere commented Jan 3, 2024

Thanks for this @Halimao. The team was away and we're back as of today - will review soon!

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

Thanks @Halimao ❤️

Copy link

@cason cason left a comment

Choose a reason for hiding this comment

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

Thank you for your submission, but in my opinion what is missing here is using (at least) the introduced errors in test units. The point of having error types is to avoid hacks in which we compare the error message with a string, when testing methods.

Please consider navigating the test units and adopting the introduced errors there. Notice that this package has lots of tests checking not only the regular operation but also the errors expected in determined circumstances.

@Halimao Halimao changed the title light: export errors feat(light): export errors Jan 8, 2024
@adizere
Copy link
Contributor

adizere commented Jan 16, 2024

@Halimao there's a few outstanding suggestions from Daniel and Anton. You feel good about pushing this through the finish line, or should someone else take over it? Thanks for the contributions so far!

@Halimao
Copy link
Contributor Author

Halimao commented Jan 16, 2024

@Halimao there's a few outstanding suggestions from Daniel and Anton. You feel good about pushing this through the finish line, or should someone else take over it? Thanks for the contributions so far!

Sorry for this. I'm still working on this, but there are still many things that need to be done, and I'm busy these days. I will try my best to finish this asap, thanks.

@cason
Copy link

cason commented Jan 17, 2024

Do you mind, meanwhile, converting this PR to draft?

@Halimao Halimao marked this pull request as draft January 17, 2024 09:18
@Halimao Halimao marked this pull request as ready for review January 18, 2024 16:27
@Halimao Halimao requested review from cason and melekes January 18, 2024 16:27
@Halimao
Copy link
Contributor Author

Halimao commented Jan 18, 2024

@cason Hi sir, suggested changes have been addressed, now we are using the introduced errors in the unit tests.

@adizere adizere added this to the 2024-Q1 milestone Jan 19, 2024
Copy link
Contributor

@mzabaluev mzabaluev left a comment

Choose a reason for hiding this comment

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

Thank you for doing this drudge work.

@github-actions github-actions bot removed the stale For use by stalebot label Feb 20, 2024
@Halimao
Copy link
Contributor Author

Halimao commented Feb 23, 2024

Thank you for doing this drudge work.

@mzabaluev Hi sir, addressed the suggestion changes

@Halimao Halimao requested a review from mzabaluev February 23, 2024 09:34
@andynog andynog self-assigned this Mar 14, 2024
@andynog andynog added light-client Light client-related P:tech-debt Priority: Technical debt that needs to be paid off to enable us to move faster, reliably labels Mar 14, 2024
@andynog
Copy link
Contributor

andynog commented Mar 14, 2024

Hi @Halimao, thanks for all the work. I'm taking care of this PR now and will take it to the finish line.

Copy link
Contributor

@andynog andynog left a comment

Choose a reason for hiding this comment

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

The code looks very good, only added a few comments for improvements

@andynog andynog requested review from adizere and removed request for mzabaluev March 14, 2024 21:15
Copy link
Contributor

@andynog andynog left a comment

Choose a reason for hiding this comment

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

Looks good to me. Great work @Halimao

@andynog andynog added this pull request to the merge queue Mar 15, 2024
Merged via the queue into cometbft:main with commit 67f5cca Mar 15, 2024
@Halimao Halimao deleted the refactor/export-errors-light branch March 15, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
light-client Light client-related P:tech-debt Priority: Technical debt that needs to be paid off to enable us to move faster, reliably
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants