Skip to content

Commit

Permalink
Fix downstream CI (#519)
Browse files Browse the repository at this point in the history
* Trigger CI

* Trigger CI

* Update ray installation to use the 3.0.0.dev0 nightly wheel to install the dev dependencies

* Skip test_decide_worker_coschedule_order_neighbors for distributed downstream CI

* Update Ray CI config

* Typo in distributed CI config
  • Loading branch information
ogrisel authored Oct 12, 2023
1 parent 604122c commit 45dcb75
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ jobs:
# FIXME ipv6-related failures on Ubuntu github actions CI
# https://github.com/dask/distributed/issues/4514
export DISABLE_IPV6=1
export PYTEST_ADDOPTS=("-m" "not avoid_ci")
# test_decide_worker_coschedule_order_neighbors is skipped because of:
# https://github.com/dask/distributed/issues/8255
export PYTEST_ADDOPTS=("-m" "not avoid_ci" "-k" "not test_decide_worker_coschedule_order_neighbors")
source ./.github/scripts/test_downstream_project.sh
joblib-downstream-build:
Expand Down Expand Up @@ -184,36 +186,36 @@ jobs:
PROJECT: ray
strategy:
matrix:
python_version: ["3.10"]
python_version: ["3.11"]
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
- name: Install project and dependencies
- name: Install project and tests dependencies
run: |
python -m pip install --upgrade -r dev-requirements.txt setproctitle psutil catboost \
https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp311-cp311-manylinux2014_x86_64.whl
- name: Test cloudpickle itself
run: |
COVERAGE_PROCESS_START="$TRAVIS_BUILD_DIR/.coveragerc" PYTHONPATH='.:tests' pytest -r s
- name: Patch Ray with the development version of cloudpickle
run: |
RAY_PACKAGE_DIR=$(python -c "import os, ray; print(os.path.dirname(ray.__file__), flush=True)")
cp cloudpickle/cloudpickle.py $RAY_PACKAGE_DIR/cloudpickle/cloudpickle.py
cp cloudpickle/compat.py $RAY_PACKAGE_DIR/cloudpickle/compat.py
cp cloudpickle/cloudpickle_fast.py $RAY_PACKAGE_DIR/cloudpickle/cloudpickle_fast.py
- name: Fetch the Ray test suite from github
run: |
python -m pip install --upgrade -r dev-requirements.txt
python -m pip install setproctitle psutil
# from https://docs.ray.io/en/master/development.html#building-ray
pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp310-cp310-manylinux2014_x86_64.whl
pushd ..
git clone https://github.com/ray-project/ray.git
pushd ray
python python/ray/setup-dev.py --yes
popd
popd
PROJECT_DIR=$(python -c "import os, ray; print(os.path.dirname(ray.__file__), flush=True)")
rm $PROJECT_DIR/cloudpickle/cloudpickle.py
cp cloudpickle/cloudpickle.py $PROJECT_DIR/cloudpickle/cloudpickle.py
cp cloudpickle/compat.py $PROJECT_DIR/cloudpickle/compat.py
cp cloudpickle/cloudpickle_fast.py $PROJECT_DIR/cloudpickle/cloudpickle_fast.py
- name: Test the downstream project
run: |
PROJECT_DIR="$(python -c "import os, ray; print(os.path.dirname(ray.__file__), flush=True)")"
COVERAGE_PROCESS_START="$TRAVIS_BUILD_DIR/.coveragerc" PYTHONPATH='.:tests' pytest -r s
pytest -vl $PROJECT_DIR/tests/test_serialization.py::test_simple_serialization
pytest -vl $PROJECT_DIR/tests/test_serialization.py::test_complex_serialization
pytest -vl $PROJECT_DIR/tests/test_basic.py::test_ray_recursive_objects
pytest -vl $PROJECT_DIR/tests/test_serialization.py::test_serialization_final_fallback
pytest -vl $PROJECT_DIR/tests/test_basic.py::test_nested_functions
- name: Run some tests from Ray's test suite
run: |
pushd ../ray/python/ray/tests
pytest -vl test_serialization.py::test_simple_serialization
pytest -vl test_serialization.py::test_complex_serialization
pytest -vl test_basic.py::test_ray_recursive_objects
pytest -vl test_serialization.py::test_serialization_final_fallback
pytest -vl test_basic.py::test_nested_functions

0 comments on commit 45dcb75

Please sign in to comment.