-
Notifications
You must be signed in to change notification settings - Fork 15
Implement MDIO Dataset builder to create in-memory instance of schemas.v1.dataset.Dataset #568
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Dimitry! I left some notes that are mostly modifying due to some design choices. Let me know what you think.
Also I haven't reviewed the unit tests yet in case things need to be changes. I will do that once we finalize the implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmitriyrepin i think it looks good except a few minor comments. However, may I ask for 1 thing.
Can we please simplify the unit tests, some of them are too low level and can be encapsulated to a higher level test and be removed from tests entirely. We should reduce the lines of code in tests and remove very low level ones that are already tested with higher level functions unless its absolutely necessary.
I have extracted the common test functionality into the following functions:
I think now they are much more readable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the pre-commit
fails which checks for formatting/linting and best practices. Ready to merge once those are resolved.
Done:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v1 #568 +/- ##
==========================================
+ Coverage 84.32% 90.40% +6.08%
==========================================
Files 46 70 +24
Lines 2194 3587 +1393
Branches 305 237 -68
==========================================
+ Hits 1850 3243 +1393
+ Misses 301 291 -10
- Partials 43 53 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Implement MDIO Dataset builder API
Example of usage: