Skip to content

Commit

Permalink
Add debugging instructions for test_gcs_ha_e2e.py (#35016)
Browse files Browse the repository at this point in the history
Add some debugging instructions for the `test_gcs_ha_e2e.py` tests.
  • Loading branch information
pcmoritz authored May 4, 2023
1 parent 74b691a commit bedecac
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions python/ray/tests/test_gcs_ha_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@
from http.client import HTTPConnection


# If you need to debug these tests, comment in the volume
# mounts in the head node and worker node containers below and use
# the repro-ci.py script to spin up an instance. The test
# setup is a little intricate, as it uses docker-in-docker.
# You need to ssh into the host machine, find the
# docker-in-docker container with
#
# docker ps
#
# Log into the container with
#
# docker exec -it <dind-daemon container id> sh
#
# And run
#
# mkdir -p /tmp/ray
# chmod 777 /tmp/ray
#
# Now you can re-run the test and the logs will show
# up in /tmp/ray in the docker-in-docker container.
# Good luck!


class Container(wrappers.Container):
def ready(self):
self._container.reload()
Expand Down Expand Up @@ -68,6 +91,9 @@ def client(self):
ports={
"8000/tcp": None,
},
# volumes={
# "/tmp/ray/": {"bind": "/tmp/ray/", "mode": "rw"}
# },
)

worker_node = container(
Expand All @@ -89,6 +115,9 @@ def client(self):
ports={
"8000/tcp": None,
},
# volumes={
# "/tmp/ray/": {"bind": "/tmp/ray/", "mode": "rw"}
# },
)


Expand Down

0 comments on commit bedecac

Please sign in to comment.