Repository navigation
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
| } | ||
| getPrometheusBinaryLocation = { -> | ||
| def os = org.gradle.internal.os.OperatingSystem.current() | ||
| println "*** Building on ${os.familyName} / ${os.name} / ${os.version} / ${System.getProperty("os.arch")}." |
| 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.
I am deleting the downloaded artifacts after the integ tests.
There was a problem hiding this comment.
Will remove println statements.
| 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.
how about compose downlink using version, platform and arch. prometheus-{version}.{platform}-{arch}
There was a problem hiding this comment.
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
…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.