CCO-837: Replace deprecated golang/mock with go.uber.org/mock#1069
CCO-837: Replace deprecated golang/mock with go.uber.org/mock#1069ericahinkleRH wants to merge 3 commits into
Conversation
The golang/mock repository is no longer maintained and recommends migrating to go.uber.org/mock as a maintained fork. Changes: - Updated go.mod dependency from golang/mock v1.7.0-rc.1 to go.uber.org/mock v0.6.0 - Replaced import paths in test files and generated mocks - Fixed gomock.InOrder API change (requires []any instead of []*gomock.Call) - Vendored new dependency Jira: https://redhat.atlassian.net/browse/CCO-837 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
@ericahinkleRH: This pull request references CCO-837 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe module switches from legacy GoMock to Uber GoMock, updates generated mocks and tests to the new import path, adjusts one test helper type, and refreshes Go, gRPC, Envoy, Google, and OpenTelemetry dependencies. ChangesGoMock migration and dependency refresh
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ericahinkleRH 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 |
Updates grpc from v1.79.3 to v1.82.1 to resolve CVEs: - SNYK-GOLANG-GOOGLEGOLANGORGGRPCINTERNALXDSRBAC-18172577 - SNYK-GOLANG-GOOGLEGOLANGORGGRPCINTERNALTRANSPORT-18172578 Also updates related dependencies for compatibility. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1069 +/- ##
=======================================
Coverage 47.30% 47.30%
=======================================
Files 97 97
Lines 12614 12614
=======================================
Hits 5967 5967
Misses 5987 5987
Partials 660 660
🚀 New features to boost your workflow:
|
Update Go toolchain from 1.26.4 to 1.26.5 to resolve security CVEs: - SNYK-GOLANG-STDOS-17905377 - SNYK-GOLANG-STDCRYPTOTLS-17905406 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
@ericahinkleRH: 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. |
Summary
Replace deprecated
golang/mockwithgo.uber.org/mockas the maintained fork.The golang/mock repository is no longer maintained and recommends migrating to go.uber.org/mock.
Changes
[]anyinstead of[]*gomock.Call)Testing
Jira
https://redhat.atlassian.net/browse/CCO-837
Notes
This PR is independent and does NOT depend on CCO-834 (K8s 1.36 upgrade).
Summary by CodeRabbit