Skip to content

Commit

Permalink
Fix flaky ml test by increasing timeout (#9523)
Browse files Browse the repository at this point in the history
The ml tests sometimes fail on Travis or Jenkins but it seems when looking at the output of the files normally all entries are there. As they pass most of the time I assume it is an issue related to the timeout. Increasing the timeout to 60s.
  • Loading branch information
ruflin committed Dec 13, 2018
1 parent 9354aa0 commit 220cdee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion filebeat/tests/system/test_ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ def _run_ml_test(self, setup_flag, modules_flag):
for obj in ["Datafeed", "Job", "Dashboard", "Search", "Visualization"]:
self.wait_log_contains("{obj} already exists".format(obj=obj),
logfile=output_path,
max_timeout=30)
max_timeout=60)

beat.kill()
6 changes: 3 additions & 3 deletions x-pack/libbeat/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ services:
kibana: { condition: service_healthy }
healthcheck:
interval: 1s
retries: 1200
retries: 2400

elasticsearch:
extends:
file: ${ES_BEATS}/testing/environments/${TESTING_ENVIRONMENT}.yml
service: elasticsearch
healthcheck:
test: ["CMD", "curl", "-u", "elastic:changeme", "-f", "http://localhost:9200"]
retries: 600
retries: 1200
interval: 1s
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
Expand All @@ -47,6 +47,6 @@ services:
service: kibana
healthcheck:
test: ["CMD-SHELL", 'python -c ''import urllib, json; response = urllib.urlopen("http://elastic:changeme@localhost:5601/api/status"); data = json.loads(response.read()); exit(1) if data["status"]["overall"]["state"] != "green" else exit(0);''']
retries: 600
retries: 1200
interval: 1s
command: /usr/local/bin/kibana-docker --xpack.security.enabled=true --elasticsearch.username=elastic --elasticsearch.password=changeme

0 comments on commit 220cdee

Please sign in to comment.