-
Notifications
You must be signed in to change notification settings - Fork 0
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
Resolve Prometheus dependency for IT on non-Linux OS. #152
Resolve Prometheus dependency for IT on non-Linux OS. #152
Conversation
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
This comment was marked as spam.
This comment was marked as spam.
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
@@ -85,9 +88,11 @@ task stopPrometheus() { | |||
} | |||
|
|||
stopPrometheus.mustRunAfter startPrometheus | |||
doctest.dependsOn startOpenSearch | |||
if (DefaultNativePlatform.currentOperatingSystem.isLinux()) { |
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.
Thank you!
Can you include a comment saying why we don't run prometheus on non-Linux systems.
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'll be happy to know why...
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.
Fixed in 82942fa.
dependsOn startPrometheus | ||
finalizedBy stopPrometheus | ||
|
||
if (DefaultNativePlatform.currentOperatingSystem.isLinux()) { |
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.
Same here. Maybe a comment why we don't run this for non-Linux.
Someone might ask why don't we support promethius for all OSes
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.
Fixed in 82942fa.
@@ -66,6 +66,9 @@ protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOE | |||
} | |||
|
|||
protected static void wipeAllOpenSearchIndices() throws IOException { | |||
if (client() == null) { |
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.
feels like this check should be moved to RestIntegTestCase::cleanUpIndices
and SQLIntegTestCase::cleanUpIndices
(those classes already check for client() on setup)
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.
integ-test/src/test/java/org/opensearch/sql/legacy/OpenSearchSQLRestTestCase.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury-Fridlyand <yuryf@bitquilltech.com>
Not relevant since opensearch-project#1069 |
Signed-off-by: Yury-Fridlyand yuryf@bitquilltech.com
Description
Unblock tests from Prometheus dependency - it is available on Linux only:
Issues Resolved
Proposed as a temporary solution while opensearch-project#982 isn't fixed.
Introduced by opensearch-project#977.
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.