forked from jaegertracing/jaeger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor scripts/es-integration-test.sh (jaegertracing#4161)
## Which problem is this PR solving? - OpenSearch integration tests very frequently fail - This change adds retries, but does not fundamentally fix anything else, except for making sure that we can get the container logs in case of a future failure ## Short description of the changes - Setup storage once before executing tests (even though token test does not require a real ES, it could be just a unit test) - Remove `-rm` from storage Docker commands so that the container is still available to do `docker logs` after the timeout - Change polling from 5s to 10s, for a total of 600sec - If storage is not reachable in 600sec then kill the container and retry two more times - Use trap to tear down storage (useful for local tests as otherwise container may remain if the tests fail) Signed-off-by: Yuri Shkuro <[email protected]>
- Loading branch information
1 parent
b04c38e
commit 868fbe8
Showing
3 changed files
with
81 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters