You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "HolyLow (via GitHub)" <gi...@apache.org> on 2024/12/04 11:50:42 UTC

[PR] [CELEBORN-1761][CIP-14] Add cppProto to cppClient [celeborn]

HolyLow opened a new pull request, #2976:
URL: https://github.com/apache/celeborn/pull/2976

   ### What changes were proposed in this pull request?
   Add cppProto (TransportMessages.proto, softlinked as TransportMessagesCpp.proto) to cppClient
   
   
   ### Why are the changes needed?
   To support proto in cppClient and align with java's definition.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Compilation.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1761][CIP-14] Add cppProto to cppClient [celeborn]

Posted by "HolyLow (via GitHub)" <gi...@apache.org>.
HolyLow commented on PR #2976:
URL: https://github.com/apache/celeborn/pull/2976#issuecomment-2517117069

   @FMX Could you kindly help review this PR? Thanks a lot.
   
   Note that the proto definition is simply a softlink to the Java end's proto file so that the definitions would always be aligned.
   
   Any suggestion is welcome.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1761][CIP-14] Add cppProto to cppClient [celeborn]

Posted by "HolyLow (via GitHub)" <gi...@apache.org>.
HolyLow commented on PR #2976:
URL: https://github.com/apache/celeborn/pull/2976#issuecomment-2526623915

   @FMX It suddenly occurs to me that you could check if your cpp/celeborn/proto/TransportMessagesCpp.proto is valid or not.
   As the file is a softlink to java end's TransportMessages.proto, it is possible that the softlink is not working on MacOS environment.
   If the softlink is not working, try reclone the project with option `--config core.symlinks=true` to enforce the softlink.
   The clone command would be 
   ```
   git clone git@github.com:apache/celeborn.git --config core.symlinks=true
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1761][CIP-14] Add cppProto to cppClient [celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on PR #2976:
URL: https://github.com/apache/celeborn/pull/2976#issuecomment-2530876896

   After some more tests, the build failure is related to the CLION remote development. Building the Celeborn native SDK in the docker container is fine.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1761][CIP-14] Add cppProto to cppClient [celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX commented on PR #2976:
URL: https://github.com/apache/celeborn/pull/2976#issuecomment-2519020737

   After some tests, I discovered that the Celeborn protobuf is not built as expected.  As you can see that 
   <img width="383" alt="截屏2024-12-05 11 37 09" src="https://github.com/user-attachments/assets/cff25bfc-e983-42ff-a389-5b3fd3acb508">
   
   
   https://cmake.org/cmake/help/latest/module/FindProtobuf.html
   CMake has a function that compiles the proto and gets the generated source and header. I used it in another project and got the expected result.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1761][CIP-14] Add cppProto to cppClient [celeborn]

Posted by "HolyLow (via GitHub)" <gi...@apache.org>.
HolyLow commented on PR #2976:
URL: https://github.com/apache/celeborn/pull/2976#issuecomment-2522739151

   @FMX FindProtobuf method has its problem, that the dependency of protobuf-generation cannot be declared explicitly.
   This wouldn't be a problem if the protobuf module is exported as a standalone library so the dependency could be solved by other moudle's target_link_library(), but celebornCpp would be exported as a compact library as a whole, and all the compilation target would be exported in a single libceleborn.a.
   In this case, the protobuf's .o file would be collected in a libceleborn.a library rather than a standalone libproto.a library, and the dependency between the proto generation and other proto-dependent files cannot be declared by the FindProtobuf method.
   This is why I explicitly use the add_custom_command() method which offers more accurate control over the dependency problem. 
   
   Besides, it seems you are using the clion IDE to import the project, and I guess maybe you trigger the compilation by running the utils/tests/ExceptionTest.cpp. 
   As the testcase has no dependency over the libproto.a, the proto generation would not be triggered.
   If you are running the compilation on command line, like 
   ```
   rm -rf build && mkdir build && cd build
   cmake ..
   make
   ```
   The libproto.a and the protofiles would be generated as expected, which I've tested several times.
   
   Also, maybe you could try to compile the whole project on Clion IDE to check if the protofile and libproto.a could be generated as expected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [CELEBORN-1761][CIP-14] Add cppProto to cppClient [celeborn]

Posted by "FMX (via GitHub)" <gi...@apache.org>.
FMX closed pull request #2976: [CELEBORN-1761][CIP-14] Add cppProto to cppClient
URL: https://github.com/apache/celeborn/pull/2976


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org