mirror of
https://github.com/wassname/ray.git
synced 2026-07-16 11:21:10 +08:00
Factor out code for starting new processes and test plasma store in valgrind. (#3824)
* Factor out starting Ray processes. * Detect flags through environment variables. * Return ProcessInfo from start_ray_process. * Print valgrind errors at exit. * Test valgrind in travis. * Some valgrind fixes. * Undo raylet monitor change. * Only test plasma store in valgrind.
This commit is contained in:
committed by
Philipp Moritz
parent
f0e6523323
commit
0b1608a546
@@ -8,6 +8,7 @@ import pytest
|
||||
import time
|
||||
|
||||
import ray
|
||||
import ray.ray_constants as ray_constants
|
||||
from ray.test.cluster_utils import Cluster
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -116,5 +117,5 @@ def test_worker_plasma_store_failure(start_connected_cluster):
|
||||
# Log monitor doesn't die for some reason
|
||||
worker.kill_log_monitor()
|
||||
worker.kill_plasma_store()
|
||||
worker.all_processes[ray.node.PROCESS_TYPE_RAYLET][0].process.wait()
|
||||
worker.all_processes[ray_constants.PROCESS_TYPE_RAYLET][0].process.wait()
|
||||
assert not worker.any_processes_alive(), worker.live_processes()
|
||||
|
||||
Reference in New Issue
Block a user