Skip to content

[Core]Fixing flakey test for redis error 'Address already in use' in macos - #35253

Merged
rkooo567 merged 1 commit into
ray-project:masterfrom
larrylian:fix_macos_redis_port_conflict
May 25, 2023
Merged

rkooo567 merged 1 commit into
ray-project:masterfrom
larrylian:fix_macos_redis_port_conflict

Conversation

@larrylian

Copy link
Copy Markdown
Contributor

Why are these changes needed?

After the merge of PR #35127, I noticed that there were still some flakey cases.
Upon comparing the logs, I found that whenever the "bind: Address already in use" error occurred in a macOS environment, it was always when the port was below 49159.
Therefore, I have now restricted the Redis port to the range of 49159 ~ 55535.

Macos:
image

linux:
image

image

image

Related issue number

#35127

Checks

@larrylian
larrylian requested review from rkooo567 and scv119 May 11, 2023 06:39
@larrylian
larrylian force-pushed the fix_macos_redis_port_conflict branch 2 times, most recently from 14ab9dd to 72a2dc7 Compare May 11, 2023 06:43
@rkooo567 rkooo567 self-assigned this May 16, 2023
@ollie-iterators

Copy link
Copy Markdown

I believe the bootstrap test would be fixed by merging in recent changes from the main branch.

@larrylian

Copy link
Copy Markdown
Contributor Author

I believe the bootstrap test would be fixed by merging in recent changes from the main branch.

Do you mean that another PR has already fixed this issue?

@ollie-iterators

Copy link
Copy Markdown

I think the issue with the bootstrap may have been fixed already, yes.

@larrylian

Copy link
Copy Markdown
Contributor Author

@ollie-iterators
Okay, then I'll continue to monitor the success rate of this test case for a few more days. If you could provide the fix PR, that would be great. If it's not convenient, that's okay too.
image

@ollie-iterators

Copy link
Copy Markdown

@ollie-iterators Okay, then I'll continue to monitor the success rate of this test case for a few more days. If you could provide the fix PR, that would be great. If it's not convenient, that's okay too. image

You could just rebase the PR with changes from the main branch

@larrylian

Copy link
Copy Markdown
Contributor Author

@rkooo567
I see that the flakey issue is still present. Can you help merge this PR first and see if it improves the situation?
image

Comment thread python/ray/tests/conftest.py Resolved
@larrylian
larrylian force-pushed the fix_macos_redis_port_conflict branch from 72a2dc7 to d39710a Compare May 24, 2023 08:26
@larrylian
larrylian requested a review from rkooo567 May 24, 2023 08:29
@rkooo567

Copy link
Copy Markdown
Contributor

awesome! thanks for quick iteration!

@rkooo567

Copy link
Copy Markdown
Contributor

Hmm failures seem related?

@larrylian
larrylian force-pushed the fix_macos_redis_port_conflict branch from d39710a to 12cb51e Compare May 25, 2023 02:54
@larrylian

Copy link
Copy Markdown
Contributor Author

Hmm failures seem related?

yes, I have already fixed it. I will monitor the ci.

@rkooo567
rkooo567 merged commit 7831126 into ray-project:master May 25, 2023
@rkooo567

Copy link
Copy Markdown
Contributor

Thanks for the contribution again!

scv119 pushed a commit to scv119/ray that referenced this pull request Jun 16, 2023
…macos (ray-project#35253)

After the merge of PR ray-project#35127, I noticed that there were still some flakey cases.
Upon comparing the logs, I found that whenever the "bind: Address already in use" error occurred in a macOS environment, it was always when the port was below 49159.
Therefore, I have now restricted the Redis port to the range of 49159 ~ 55535.
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
…macos (ray-project#35253)

After the merge of PR ray-project#35127, I noticed that there were still some flakey cases.
Upon comparing the logs, I found that whenever the "bind: Address already in use" error occurred in a macOS environment, it was always when the port was below 49159.
Therefore, I have now restricted the Redis port to the range of 49159 ~ 55535.

Signed-off-by: e428265 <[email protected]>
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.

3 participants