Skip to content
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

[Dashboard] Dashboard basic modules #10303

Merged
merged 23 commits into from
Aug 30, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reduce test timeout to 10s
  • Loading branch information
刘宝 committed Aug 26, 2020
commit a3bf3e9d39176cca1934a8be4d4802a807032f4e
2 changes: 1 addition & 1 deletion dashboard/modules/log/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def write_log(s):
webui_url = ray_start_with_dashboard["webui_url"]
webui_url = webui_url.replace("localhost", "http:https://127.0.0.1")

timeout_seconds = 20
timeout_seconds = 10
start_time = time.time()
last_ex = None
while True:
Expand Down
4 changes: 2 additions & 2 deletions dashboard/modules/reporter/test_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def getpid(self):
launch_profiling = None
while True:
# Sometimes some startup time is required
if time.time() - start_time > 30:
if time.time() - start_time > 10:
raise RayTestTimeoutException(
"Timed out while collecting profiling stats, "
"launch_profiling: {}".format(launch_profiling))
Expand Down Expand Up @@ -92,4 +92,4 @@ def _check_workers():
logger.info(ex)
return False

wait_for_condition(_check_workers, timeout=30)
wait_for_condition(_check_workers, timeout=10)
2 changes: 1 addition & 1 deletion dashboard/modules/stats_collector/test_stats_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def getpid(self):
webui_url = ray_start_with_dashboard["webui_url"]
webui_url = webui_url.replace("localhost", "http:https://127.0.0.1")

timeout_seconds = 20
timeout_seconds = 10
start_time = time.time()
last_ex = None
while True:
Expand Down
4 changes: 2 additions & 2 deletions dashboard/tests/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_nodes_update(enable_test_module, ray_start_with_dashboard):
webui_url = ray_start_with_dashboard["webui_url"]
webui_url = webui_url.replace("localhost", "http:https://127.0.0.1")

timeout_seconds = 20
timeout_seconds = 10
start_time = time.time()
while True:
time.sleep(1)
Expand Down Expand Up @@ -199,7 +199,7 @@ def test_http_get(enable_test_module, ray_start_with_dashboard):

target_url = webui_url + "/test/dump"

timeout_seconds = 20
timeout_seconds = 10
start_time = time.time()
while True:
time.sleep(1)
Expand Down