-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Ensure generated CI mocks are up to date #5839
Ensure generated CI mocks are up to date #5839
Conversation
|
✅ Deploy Preview for opstack-docs canceled.
|
The two checks I just added are currently failing because Alternatively I can install |
Ok just waiting on a build/publish of the ci-builder image! Will keep you updated. |
@Lemma199 can you rebase this on the latest develop? Mockery should now be included in the image. |
56c7514
to
1bd4faa
Compare
Thanks @smartcontracts, done! |
Failing due to some diffs (basically comments): -// Code generated by mockery v2.23.1. DO NOT EDIT.
+// Code generated by mockery v2.28.1. DO NOT EDIT. There's also some code being removed (presumably stale): diff --git a/op-node/p2p/mocks/GossipMetricer.go b/op-node/p2p/mocks/GossipMetricer.go
index 38ebf8d50..d5da64382 100644
--- a/op-node/p2p/mocks/GossipMetricer.go
+++ b/op-node/p2p/mocks/GossipMetricer.go
@@ -1,4 +1,4 @@
-// Code generated by mockery v2.22.1. DO NOT EDIT.
+// Code generated by mockery v2.28.1. DO NOT EDIT.
package mocks
@@ -14,11 +14,6 @@ func (_m *GossipMetricer) RecordGossipEvent(evType int32) {
_m.Called(evType)
}
-// SetPeerScores provides a mock function with given fields: _a0
-func (_m *GossipMetricer) SetPeerScores(_a0 map[string]float64) {
- _m.Called(_a0)
-}
- I can apply these changes and push up a new commit that includes them — I couldn't find what version (if any) documentation for this repository suggests to use for Alternatively I can modify the CI task to run with the |
We don't have one. It was pretty recently added & hasn't been standardized. Individual devs have been responsible for keeping everything up to date. It's probably fine to requires a specific version if we let people know. |
The Good sign we need this check - thanks for picking it up. :) |
Hey @Lemma199! This PR has merge conflicts. Please fix them before continuing review. |
That merge conflict is because #5870 just merged which should resolve the |
87ea7df
to
a0fe574
Compare
Fixed the conflicts and updated the mocks using |
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. Thanks for this.
This PR has been added to the merge queue, and will be merged soon. |
This PR is next in line to be merged, and will be merged as soon as checks pass. |
1 similar comment
This PR is next in line to be merged, and will be merged as soon as checks pass. |
Description
Adds make targets to generate mocks, and adds configuration to run checks in CI to make sure generated mocks are included in a pull request.
Tests
No tests for make and CI stuff 🤷
Invariants
N/A
Additional context
N/A
Metadata
TODOs