-
Notifications
You must be signed in to change notification settings - Fork 143
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: implement custom mockes and drop go-metrics #5654
Conversation
This pull request does not have a backport label. Could you fix it @kruskall? 🙏
|
|
This pull request is now in conflicts. Could you fix it? 🙏
|
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.
If the fact that go-metrics
hasn't been updated in 4 years is really the "problem", can you please just propose a fix in the mock-es repo?
mocking elasticsearch is complicated enough (magic headers, license format, UUID requirements, etc) that I really don't want to see this duplicated all over the place in our testing code.
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
I agree with @leehinman on this one. This is drastically increasing the test logic, when it was much simpler. Another question is it not being updated an issue? Does it have a CVE or something in it that requires it to be updated? |
Thank you for the feedback! 🙇 I've opened another PR to replace go-metrics with otel: elastic/mock-es#9 |
This pull request is now in conflicts. Could you fix it? 🙏
|
@kruskall I finally got your changes merged to mock-es, do you want to close this PR or re-work it to pull in new mock-es? |
bc81fad
to
35fe4da
Compare
PR updated, unfortunately now that beats is a dependency the mod graph is a mess 🥲 |
Quality Gate passedIssues Measures |
(cherry picked from commit e511550) # Conflicts: # go.mod # go.sum
What does this PR do?
implement a custom mockes and get rid of go-metrics and related deps
Why is it important?
go-metrics hasn't been updated in 4 years
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
How to test this PR locally
Related issues
Blocked by elastic/mock-es#9
Questions to ask yourself