-
Notifications
You must be signed in to change notification settings - Fork 528
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
Add gencorpora cmd to generate ES corpora for rally #8878
Conversation
This pull request does not have a backport label. Could you fix it @lahsivjar? 🙏
NOTE: |
1 similar comment
This pull request does not have a backport label. Could you fix it @lahsivjar? 🙏
NOTE: |
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.
couple of small comments.
a93aba6
to
6b0cdf6
Compare
📚 Go benchmark reportDiff with the
report generated with https://pkg.go.dev/golang.org/x/perf/cmd/benchstat |
/test |
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.
Only scanned over so far, but what I've seen looks good - I will be happy to see cat_bulk.py replaced. Main question so far is whether we can use apmservertest.Server.
// APMServer represents a wrapped exec CMD for APMServer process | ||
type APMServer struct { | ||
apmHost string | ||
cmd *apmservertest.ServerCmd |
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.
Is there a reason why you're not using apmservertest.Server?
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.
I read a little further and probably answered my own question: apmservertest.Server requires a testing.TB
. Maybe we can get rid of that requirement?
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.
That was my first approach but I decided to abandon it because the apmservertest.Server
is tightly coupled with testing.TB
utilizing Cleanup
function to prevent unnecessary handling to leak into the test cases. I was thinking to extend the APMServer
command to meet the requirements of test cases in a generic way and then replace apmservertest#Server
to use it with testing.TB
. But, this proved to be a lot more work than I anticipated and I thought we can address it at a later point. Let me know if you think it should be addressed now.
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.
Yes, that's fair enough.
I spiked on making the testing.TB
part optional - I might create a followup on your PR if you don't mind.
@axw Yup, I am working on this in my next PR. |
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, just a couple of nitpicks
Motivation/summary
Add command for generating ES corpus based on APM agent data sent to a test APM-Server.
Checklist
- [ ] Update CHANGELOG.asciidoc- [ ] Update package changelog.yml (only if changes toapmpackage
have been made)- [ ] Documentation has been updatedHow to test these changes
Examine stdout for ES corpus.
Related issues
Part of #8754