test-worker-in-container.sh 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. cleanup() { if [ "${BUILDKITE_PULL_REQUEST}" = "false" ]; then ./ci/build/upload_build_info.sh; fi }; trap cleanup EXIT
  3. set -exo pipefail
  4. # option metacopy doesn't work on xfs
  5. #sed -i 's/nodev,metacopy=on/nodev/' /etc/containers/storage.conf
  6. podman load --input /var/lib/containers/images.tar
  7. cat > /ray/docker/ray-worker-container/test-Dockerfile << EOF
  8. FROM rayproject/ray-worker-container:nightly-py36-cpu
  9. RUN $HOME/anaconda3/bin/pip --no-cache-dir install pandas
  10. EOF
  11. podman build --cgroup-manager=cgroupfs -f /ray/docker/ray-worker-container/test-Dockerfile -t rayproject/ray-worker-container:nightly-py36-cpu-pandas .
  12. export RAY_BACKEND_LOG_LEVEL=debug
  13. "$HOME/anaconda3/bin/pip" install --no-cache-dir pytest
  14. pushd /ray || true
  15. bash ./ci/env/install-bazel.sh --system
  16. # shellcheck disable=SC2046
  17. bazel test --test_timeout 60 --config=ci $(./ci/run/bazel_export_options) \
  18. --test_tag_filters=-kubernetes,worker-container \
  19. python/ray/tests/... --test_output=all
  20. #pytest python/ray/tests/test_actor_in_container.py -s
  21. popd || true