mirror of
https://github.com/wassname/ray.git
synced 2026-09-12 12:51:15 +08:00
This reverts commit 3e492a79ec.
This commit is contained in:
@@ -112,16 +112,20 @@ def test_memory_table(disable_aiohttp_cache, ray_start_with_dashboard):
|
||||
def check_mem_table():
|
||||
resp = requests.get(f"{webui_url}/memory/memory_table")
|
||||
resp_data = resp.json()
|
||||
assert resp_data["result"]
|
||||
if not resp_data["result"]:
|
||||
return False
|
||||
latest_memory_table = resp_data["data"]["memoryTable"]
|
||||
summary = latest_memory_table["summary"]
|
||||
# 1 ref per handle and per object the actor has a ref to
|
||||
assert summary["totalActorHandles"] == len(actors) * 2
|
||||
# 1 ref for my_obj
|
||||
assert summary["totalLocalRefCount"] == 1
|
||||
try:
|
||||
# 1 ref per handle and per object the actor has a ref to
|
||||
assert summary["totalActorHandles"] == len(actors) * 2
|
||||
# 1 ref for my_obj
|
||||
assert summary["totalLocalRefCount"] == 1
|
||||
return True
|
||||
except AssertionError:
|
||||
return False
|
||||
|
||||
wait_until_succeeded_without_exception(
|
||||
check_mem_table, (AssertionError, ), timeout_ms=1000)
|
||||
wait_for_condition(check_mem_table, 10)
|
||||
|
||||
|
||||
def test_get_all_node_details(disable_aiohttp_cache, ray_start_with_dashboard):
|
||||
|
||||
@@ -7,9 +7,8 @@ from ray.new_dashboard.memory_utils import (
|
||||
NODE_ADDRESS = "127.0.0.1"
|
||||
IS_DRIVER = True
|
||||
PID = 1
|
||||
|
||||
OBJECT_ID = "ZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZg=="
|
||||
ACTOR_ID = "fffffffffffffffffffffffffffffffff66d17ba010000c801000000"
|
||||
OBJECT_ID = "7wpsIhgZiBz/////AQAAyAEAAAA="
|
||||
ACTOR_ID = "fffffffffffffffff66d17ba010000c801000000"
|
||||
DECODED_ID = decode_object_ref_if_needed(OBJECT_ID)
|
||||
OBJECT_SIZE = 100
|
||||
|
||||
|
||||
Reference in New Issue
Block a user