-
Notifications
You must be signed in to change notification settings - Fork 278
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 new jenkins job for benchmarking pull request #4831
Conversation
Signed-off-by: Rishabh Singh <[email protected]>
Signed-off-by: Rishabh Singh <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4831 +/- ##
==========================================
+ Coverage 92.05% 92.07% +0.02%
==========================================
Files 193 193
Lines 6416 6445 +29
==========================================
+ Hits 5906 5934 +28
- Misses 510 511 +1 ☔ View full report in Codecov by Sentry. |
[key: 'CAPTURE_NODE_STAT', value: '$.CAPTURE_NODE_STAT'], | ||
[key: 'TELEMETRY_PARAMS', value: '$.TELEMETRY_PARAMS'] | ||
], | ||
tokenCredentialId: 'jenkins-pr-benchmark-generic-webhook-token', |
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.
Token is already created for this job?
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.
No, will create a PR in opensearch-ci repo for this.
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.
👍
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 questions:
- Can we repurpose or make the current benchmark test generic enough to handle PR as well instead of maintaining an identical version?
- Little confused with overall workflow. I understand the PR is the trigger but it is on every commit or synchronize or something else?
- If not PR what is the other trigger
- From security point of view, can you please list how to avoid multi-runs for same PR?
if (currentBuild.rawBuild.getCauses().toString().contains("GenericCause")) { | ||
currentBuild.description = "Benchmark initiated by PR:${pull_request} on ${repository}" | ||
} | ||
else { |
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 not pull request what is the other cause? Ad-hoc run?
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.
ad-hoc.
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.
Should the cause string be differed accordingly then?
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, it will be set by Jenkins I believe.
something like Started by user <user-id>
.
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.
Okay got it. The cause string only applies if we use generic trigger plugin
|
Signed-off-by: Rishabh Singh <[email protected]>
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!
Description
This PR:
--results-file
flag to opensearch-benchmark command to write the final markdown format output to a file. This file content will be read and published to PR comment in jenkinsfile.benchmark-test.jenkinsfile
Issues Resolved
#4804
opensearch-project/OpenSearch#14553
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.