-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: bump mockery and switch to generate by config file #20742
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20742 +/- ##
===========================================
+ Coverage 45.36% 66.24% +20.87%
===========================================
Files 244 1045 +801
Lines 13333 113501 +100168
Branches 2719 2845 +126
===========================================
+ Hits 6049 75192 +69143
- Misses 6983 34202 +27219
- Partials 301 4107 +3806
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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
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
cc @reasonerjt |
The packages feature in mockery is the new way for managing mocks, and will be the only way to generate mocks in v3. see https://vektra.github.io/mockery/v2.43/migrating_to_packages/. 1. Bump mockery to v2.43.2. 2. Switch the generation from old way to configuration yaml. Signed-off-by: chlins <[email protected]>
82be4b7
to
6992f37
Compare
The packages feature in mockery is the new way for managing mocks, and will be the only way to generate mocks in v3. see
https://vektra.github.io/mockery/v2.43/migrating_to_packages/.
Significant improvement in performance after using the packaging feature.
Before:
time go generate ./... go generate ./... 25.96s user 40.71s system 177% cpu 37.586 total
After:
$ time mockery mockery 0.94s user 0.90s system 154% cpu 1.195 total
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Issue being fixed
Fixes #20125
Please indicate you've done the following: