Start integrating new GCS APIs (#1379)

* Start integrating new GCS calls

* fixes

* tests

* cleanup

* cleanup and valgrind fix

* update tests

* fix valgrind

* fix more valgrind

* fixes

* add separate tests for GCS

* fix linting

* update tests

* cleanup

* fix python linting

* more fixes

* fix linting

* add plasma manager callback

* add some documentation

* fix linting

* fix linting

* fixes

* update

* fix linting

* fix

* add spillback count

* fixes

* linting

* fixes

* fix linting

* fix

* fix

* fix
This commit is contained in:
Philipp Moritz
2018-01-31 11:01:12 -08:00
committed by Zongheng Yang
parent 35b1d6189b
commit a3f8fa426b
30 changed files with 587 additions and 79 deletions
+9
View File
@@ -188,6 +188,9 @@ class TestGlobalScheduler(unittest.TestCase):
db_client_id = self.get_plasma_manager_id()
assert(db_client_id is not None)
@unittest.skipIf(
os.environ.get('RAY_USE_NEW_GCS', False),
"New GCS API doesn't have a Python API yet.")
def test_integration_single_task(self):
# There should be three db clients, the global scheduler, the local
# scheduler, and the plasma manager.
@@ -301,9 +304,15 @@ class TestGlobalScheduler(unittest.TestCase):
self.assertEqual(num_tasks_done, num_tasks)
@unittest.skipIf(
os.environ.get('RAY_USE_NEW_GCS', False),
"New GCS API doesn't have a Python API yet.")
def test_integration_many_tasks_handler_sync(self):
self.integration_many_tasks_helper(timesync=True)
@unittest.skipIf(
os.environ.get('RAY_USE_NEW_GCS', False),
"New GCS API doesn't have a Python API yet.")
def test_integration_many_tasks(self):
# More realistic case: should handle out of order object and task
# notifications.