This is a WIP proof of concept implementation undergoing frequent breaking changes and should not be used in production.
The directory ray_beam_runner/portability
contains a prototype for an implementation of a Beam
runner for Ray that relies on Beam's portability framework.
To install the existing Ray Beam runner from a clone of this repository, you can follow the next steps:
# First create a virtual environment to install and run Python dependencies
virtualenv venv
. venv/bin/activate
# Install development dependencies for the project
pip install -r requirements_dev.txt
# Create a local installation to include test dependencies
pip install -e .[test]
# Or if saw error messages like "zsh: no matches found: .[test]", try:
pip install -e '.[test]'
The project has extensive unit tests that can run on a local environment. Tests that verify the basic runner
functionality exist in the file ray_beam_runner/portability/ray_runner_test.py
.
To run the runner functionality test suite for the Ray Beam Runner, you can run the following command:
pytest ray_beam_runner/portability/ray_runner_test.py
To run all local unit tests, you can simply run pytest
from the root directory.
Please file any problems with the runner in this repository's issue section. If you would like to help, please look at the issues as well. You can pick up one of them and try to implement it.
# TODO: Write these tests and document how to run them.