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:
Robert Nishihara
2019-01-22 14:59:11 -08:00
committed by Philipp Moritz
parent f0e6523323
commit 0b1608a546
11 changed files with 352 additions and 238 deletions
+2 -1
View File
@@ -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()