-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Bump hiredis to v1.2.0 #40217
Bump hiredis to v1.2.0 #40217
Conversation
Hmm actually all the windows build seem to fail? |
b7e4c44
to
79c14fa
Compare
The windows error starts with
Does that version work with MSVC? |
This diff will fix the failure in
Anyhow, here is what I have so far diff --git a/thirdparty/patches/hiredis-windows-msvc.patch b/thirdparty/patches/hiredis-windows-msvc.patch
index 2d05b117c4..733cb75665 100644
--- a/thirdparty/patches/hiredis-windows-msvc.patch
+++ b/thirdparty/patches/hiredis-windows-msvc.patch
@@ -17,7 +17,7 @@ diff --git sds.h sds.h
diff --git fmacros.h fmacros.h
--- fmacros.h
+++ fmacros.h
-@@ -12,0 +12,3 @@
+@@ -13,0 +13,3 @@
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(strdup)
+#define strdup _strdup
+#endif |
e9885b6
to
ac1dc5c
Compare
Seems like this is still failing. @iycheng do you know the answer for questions ^? |
@rkooo567 @iycheng It would be nice to keep this from falling through the cracks. @iycheng do you have any information about the questions above? |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
|
Signed-off-by: Thomas Desrosiers <thomas@anyscale.com>
Signed-off-by: mattip <matti.picus@gmail.com>
ac1dc5c
to
0fb56f9
Compare
I rebased to see if by magic anything changed and boringssl now builds on windows. |
@mattip since we don't support ray ha in windows, the best way forward seems to just not include redis for windows build. Do you think it is possible to take this approach instead? |
I see |
Also see #42098 |
Is it possible to include redis-client but not redis server? |
I don't think that would solve the current problem. The dependency is redis_client depends on hiredis, and hiredis does not build on windows due to a failure to build boringssl:
|
@mattip everything will work without redis actually. It is only used when GCS HA is enabled (which is not supported in windows anyway). |
is it possible to just make it build mocked version if it is used for Windows? |
What is the name of GCS HA in bazel terms? In other words: where is this non-windows-only dependency expressed in the bazel build? |
If |
ray/src/ray/gcs/gcs_server/gcs_server.cc Line 76 in eb19da2
I don't think there's a way to express this in bazel build now, but redis is used only when this condition is met (and in Windows, you always go to IN_MEMORY). |
Not sure if there's a good way to just not include redis in this case. I wonder if we don't import any redis related dependency if the platform is windows within code? |
There should be a way to tell bazel "do not add redis_client to the dependencies" in
|
I think that could work, but we also need |
@mattip ^ Does it make sense? We can also discuss in person to quickly find a solution. |
Yes, makes perfect sense. I will try to push that into this PR. |
I am trying to untangle this. I have excluded redis_client, but that is not enough. I need to exclude the actual redis sources from
but then various parts of the gcs table storage do not work. Is there someone who understands the interactions between redis and the gcs table storage who can give me some guidance? |
cc @iycheng can you make some comments on ^? |
@mattip I think exclude hiredis building from windows actually needs more work. let me take a look at the building failure first. |
Sorry, I don't know the answer |
Getting closer. Now everything compiles, but there is a linking error:
stack overflow thinks the link is missing Windows' crypt32.lib library. This would be the link command for hiredis. |
Signed-off-by: mattip <matti.picus@gmail.com>
0550483
to
3a33abd
Compare
DCO run is failing with
|
Signed-off-by: mattip <matti.picus@gmail.com>
Ahh, |
all passed. merging it. |
* Bump hiredis to v1.2.0 --------- Signed-off-by: Thomas Desrosiers <thomas@anyscale.com> Signed-off-by: mattip <matti.picus@gmail.com> Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: Yi Cheng <74173148+iycheng@users.noreply.github.com> Co-authored-by: Yi Cheng <yic@anyscale.com> Signed-off-by: Ratnopam Chakrabarti <ratnopamc@yahoo.com>
Why are these changes needed?
Bump to latest to fix outstanding vulnerabilities
Related issue number
Closes #40279
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.