-
Notifications
You must be signed in to change notification settings - Fork 690
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
use mockery to generate mocks in data pkg #6244
use mockery to generate mocks in data pkg #6244
Conversation
Signed-off-by: Alex Wu <[email protected]>
Code Review Agent Run #cbfc73Actionable Suggestions - 5
Review Details
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6244 +/- ##
===========================================
- Coverage 50.51% 36.87% -13.64%
===========================================
Files 1162 1318 +156
Lines 91811 134739 +42928
===========================================
+ Hits 46375 49683 +3308
- Misses 41340 80728 +39388
- Partials 4096 4328 +232
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Changelist by BitoThis pull request implements the following key changes.
|
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.
Thank you!
Tracking issue
Related to #149
Why are the changes needed?
FlyteAdmin currently relies on manually crafted mocks, which are cumbersome to maintain and extend for new interfaces. Switching to Mockery v2 generated mocks is a more efficient approach, eliminating repetitive boilerplate code and streamlining the development process.
What changes were proposed in this pull request?
This PR updates the mocks in flyteadmin/pkg/data to use Mockery v2 generated mocks and includes modifications to the related test cases to ensure compatibility.
Check all the applicable boxes
Summary by Bito
Migration from manual mocks to auto-generated mocks using Mockery v2 in the flyteadmin/pkg/data package. The PR removes old manual mock implementations, adds mockery generation directives, and updates test files to use the new mock interface. This change enhances maintainability and testing consistency by leveraging generated mocks.Unit tests added: True
Estimated effort to review (1-5, lower is better): 3