-
Notifications
You must be signed in to change notification settings - Fork 141
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
Integ tests fix for arm64.[Failure in starting up prometheus server] #1069
Integ tests fix for arm64.[Failure in starting up prometheus server] #1069
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.x #1069 +/- ##
============================================
- Coverage 98.27% 95.71% -2.57%
Complexity 3351 3351
============================================
Files 327 337 +10
Lines 8457 9115 +658
Branches 553 672 +119
============================================
+ Hits 8311 8724 +413
- Misses 142 334 +192
- Partials 4 57 +53
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
aa2ad60
to
141296c
Compare
build.gradle
Outdated
@@ -21,6 +21,29 @@ buildscript { | |||
// 2.0.0-rc1-SNAPSHOT -> 2.0.0.0-rc1-SNAPSHOT (opensearch_build) | |||
opensearch_build += "-SNAPSHOT" | |||
} | |||
getPrometheusBinaryLocation = { -> | |||
def os = org.gradle.internal.os.OperatingSystem.current() | |||
println "*** Building on ${os.familyName} / ${os.name} / ${os.version} / ${System.getProperty("os.arch")}." |
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.
remove it?
integ-test/build.gradle
Outdated
doLast { | ||
println "Deleting prometheus folder" | ||
println file("$projectDir/bin/prometheus").deleteDir() | ||
println file("$projectDir/bin/prometheus.tar.gz").delete() | ||
} |
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.
for debug?
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 am deleting the downloaded artifacts after the integ tests.
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.
Will remove println statements.
build.gradle
Outdated
if (os.isMacOsX()) { | ||
//x64, x86-64, amd64 | ||
if (System.getProperty("os.arch").startsWith("x") || System.getProperty("os.arch").startsWith("amd")) { | ||
return "https://github.com/prometheus/prometheus/releases/download/v2.37.2/prometheus-2.37.2.darwin-amd64.tar.gz" |
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.
how about compose downlink using version, platform and arch. prometheus-{version}.{platform}-{arch}
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 have done that...I couldn't push the latest commit last night.
There are too many names for the same arch type and OS family. So slightly simplified the logic.
141296c
to
985e2f2
Compare
Signed-off-by: vamsi-amazon <[email protected]>
985e2f2
to
f099136
Compare
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
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
…1069) Signed-off-by: vamsi-amazon <[email protected]> (cherry picked from commit 662a938)
…1069) (#1073) Signed-off-by: vamsi-amazon <[email protected]> (cherry picked from commit 662a938) Co-authored-by: vamsi-amazon <[email protected]>
Signed-off-by: vamsi-amazon [email protected]
Description
This is to fix integration test errors for arm64 archetype.
RCA: using wrong binary to start prometheus server for integ tests.
https://build.ci.opensearch.org/blue/organizations/jenkins/integ-test/detail/integ-test/3242/pipeline/131
Issues Resolved
[List any issues this PR will resolve]
Check List
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.