-
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
[BUG] Tests can't start Prometheus #1083
Comments
Was able to reliably re-produce when doctests build failed due to port already being in use (e.g. port was used by opensearch instance being run somewhere else) then running build again. Manually running Possible fix is running |
@MitchellGale-BitQuill But @Yury-Fridlyand is only running integTests?[ Prior run for integ tests might have failed and didn't kill the prometheus server.] I will try to come up with a more robust solution. [Either by separating out the tests or robust solution for starting and killing the process] |
I checked that there is no process running or lock file left. Currently, I deactivated Prometheus tasks locally, because I don't have related tests nor tasks. diff --git a/integ-test/build.gradle b/integ-test/build.gradle
index 454d67eca..957f26aa0 100644
--- a/integ-test/build.gradle
+++ b/integ-test/build.gradle
@@ -153,8 +154,9 @@ stopPrometheus.mustRunAfter startPrometheus
// Run PPL ITs and new, legacy and comparison SQL ITs with new SQL engine enabled
integTest {
dependsOn ':opensearch-sql-plugin:bundlePlugin'
- dependsOn startPrometheus
- finalizedBy stopPrometheus
+
+ //dependsOn startPrometheus
+ //finalizedBy stopPrometheus
systemProperty 'tests.security.manager', 'false'
systemProperty('project.root', project.projectDir.absolutePath) |
What is the bug?
Integration and doc tests often can't start Prometheus
How can one reproduce the bug?
What is the expected behavior?
Prometheus shouldn't be involved in main test processes. Tests flow should try running it only if Prometheus tests started.
:integ-test:
module should have another task for these tests.At least, test flow should continue if start failed.
What is your host/environment?
662a938 @
2.x
Do you have any additional context?
Tests also can't stop it properly if interrupted.
N/A
The text was updated successfully, but these errors were encountered: