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.31% 50.31%
=======================================
Files 280 280
Lines 34314 34314
=======================================
Hits 17264 17264
Misses 15689 15689
Partials 1361 1361
🚀 New features to boost your workflow:
|
|
/retest |
|
Caution There are some errors in your PipelineRun template.
|
279c34a to
0ca8227
Compare
0745186 to
9df3aaa
Compare
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
9df3aaa to
8f07f69
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (74)
💤 Files with no reviewable changes (3)
📝 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)
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. |
|
@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.