HIVE-2998: mockgen deprecated: use uber-go/mock instead#2781
HIVE-2998: mockgen deprecated: use uber-go/mock instead#2781sebrandon1 wants to merge 1 commit intoopenshift:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sebrandon1 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@sebrandon1: This pull request references HIVE-2998 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
596419f to
5dd11aa
Compare
5dd11aa to
e3aff7f
Compare
e3aff7f to
279c34a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2781 +/- ##
=======================================
Coverage 50.42% 50.42%
=======================================
Files 281 281
Lines 34345 34345
=======================================
Hits 17320 17320
Misses 15673 15673
Partials 1352 1352
🚀 New features to boost your workflow:
|
|
/retest |
|
Caution There are some errors in your PipelineRun template.
|
279c34a to
0ca8227
Compare
0745186 to
9df3aaa
Compare
9df3aaa to
8f07f69
Compare
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (52)
📝 WalkthroughWalkthroughThis pull request migrates the codebase from the deprecated Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Review rate limit: 0/10 reviews remaining, refill in 1 minute and 18 seconds. Comment |
|
@sebrandon1: This pull request references HIVE-2998 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
https://github.com/golang/mock is marked as archived as of June 27, 2023. They recommend using go.uber.org/mock. This PR changes the dependency to one that is maintained. Changes: - Updated Makefile to install uber-go/mock mockgen - Updated go.mod/go.sum to use go.uber.org/mock v0.6.0 - Updated all test files to import go.uber.org/mock/gomock - Updated all generated mock files - Fixed gomock.InOrder calls to use []any instead of []*gomock.Call - Re-vendored dependencies Tracking issue: redhat-best-practices-for-k8s/telco-bot#45
8f07f69 to
d59edbe
Compare
|
@sebrandon1: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
https://github.com/golang/mock is marked as archived as of
June 27, 2023. They recommend using go.uber.org/mock.This PR attempts to change the dependency to one that is maintained.
Tracking issue: redhat-best-practices-for-k8s/telco-bot#45
Summary by CodeRabbit
golang/mocktogo.uber.org/mock, improving test infrastructure and compatibility with modern Go development practices.