Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Deflakey gcs fault tolerance test in mac os #36471

Merged

Conversation

fishbone
Copy link
Contributor

@fishbone fishbone commented Jun 15, 2023

Why are these changes needed?

The root cause is because the port already in use error. This PR fixed it by doing two things:

  • Cleanup and delete the old redis-server. Mac doesn't run code in container, so it might be the leak from last run.
  • Make sure ping success before progress.

Related issue number

Closes #31871

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

fishbone added 2 commits June 15, 2023 13:34
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
@fishbone fishbone marked this pull request as ready for review June 16, 2023 19:12
@jjyao
Copy link
Collaborator

jjyao commented Jun 16, 2023

Mac doesn't run code in container

@can-anyscale @aslonnie Do we have plan to run mac tests inside container for better isolation?

@fishbone
Copy link
Contributor Author

fishbone commented Jun 16, 2023

@jjyao I think mac os doesn't have container support.

@aslonnie
Copy link
Collaborator

Do we have plan to run mac tests inside container for better isolation?

mac does not really have containers. container is mostly a linux thing. when you run containers on macs, it is mostly running on a linux virtual machine on that mac.

there are experiments and research on porting container / linux namespace tech to osx or windows, but even that is stable, most players in the ecosystem do not use/build containers for them right now.

fishbone added 6 commits June 16, 2023 23:45
…ault-tolerance-test

Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Copy link
Contributor

@rkooo567 rkooo567 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One minor comment.

@contextmanager
def _setup_redis(request):
with tempfile.TemporaryDirectory() as tmpdirname:
kill_all_redis_server()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor, but may be it could be after yield? (so we kill it as a part of current conftest, not killing redis from the previous conftest)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe we should do both? The reason I added it here is because maybe the program crashed and the kill has never been reached

Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
## Why are these changes needed?
The root cause is because the port already in use error. This PR fixed it by doing two things:

- Cleanup and delete the old redis-server. Mac doesn't run code in container, so it might be the leak from last run.
- Make sure ping success before progress.

## Related issue number
Closes ray-project#31871

Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
…ct#36471)" (ray-project#36835)

This reverts commit e0655ff.

Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] osx://python/ray/tests:test_gcs_fault_tolerance is failing/flaky on master.
4 participants