You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/11/26 10:38:09 UTC

[GitHub] [skywalking] toffentoffen opened a new pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

toffentoffen opened a new pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186


   Upgrade to the latest grpc-java 1.42.1 which is only compatible and [tested against](https://github.com/grpc/grpc-java/pull/8551#discussion_r714182190) 3.17.2, but we can assume that 3.17.3 (which has osx-aarch_64 compatible maven artifacts) is save to use.
   
   We could have also upgrade to the latest grpc-java 1.42.1 and latest protoc 3.19.1, but it can not be directly done, it needs to tweak the grpcs-java internal dependencies. So we choose the safest option and discarded this option because of the following reasons:
    - Protoc 3.19.1 generates code that relies on methods not available in protobuf-java 3.17.2 ([β€œissue”](https://github.com/protocolbuffers/protobuf/issues/9236#issue-1059594027)) (which java-grpc relies on). So we need to tell grpc-java via dependency management to use 3.19.1 instead of 3.17.2.
   
   <!--
       ⚠️ Please make sure to read this template first, pull requests that don't accord with this template
       maybe closed without notice.
       Texts surrounded by `<` and `>` are meant to be replaced by you, e.g. <framework name>, <issue number>.
       Put an `x` in the `[ ]` to mark the item as CHECKED. `[x]`
   -->
   
   <!-- ==== πŸ› Remove this line WHEN AND ONLY WHEN you're fixing a bug, follow the checklist πŸ‘‡ ====
   ### Fix <bug description or the bug issue number or bug issue link>
   - [ ] Add a unit test to verify that the fix works.
   - [ ] Explain briefly why the bug exists and how to fix it.
        ==== πŸ› Remove this line WHEN AND ONLY WHEN you're fixing a bug, follow the checklist πŸ‘† ==== -->
   
   <!-- ==== πŸ“ˆ Remove this line WHEN AND ONLY WHEN you're improving the performance, follow the checklist πŸ‘‡ ====
   ### Improve the performance of <class or module or ...>
   - [ ] Add a benchmark for the improvement, refer to [the existing ones](https://github.com/apache/skywalking/blob/master/apm-commons/apm-datacarrier/src/test/java/org/apache/skywalking/apm/commons/datacarrier/LinkedArrayBenchmark.java)
   - [ ] The benchmark result.
   ```text
   <Paste the benchmark results here>
   ```
   - [ ] Links/URLs to the theory proof or discussion articles/blogs. <links/URLs here>
        ==== πŸ“ˆ Remove this line WHEN AND ONLY WHEN you're improving the performance, follow the checklist πŸ‘† ==== -->
   
   <!-- ==== πŸ†• Remove this line WHEN AND ONLY WHEN you're adding a new feature, follow the checklist πŸ‘‡ ====
   ### <Feature description>
   - [ ] If this is non-trivial feature, paste the links/URLs to the design doc.
   - [ ] Update the documentation to include this new feature.
   - [ ] Tests(including UT, IT, E2E) are added to verify the new feature.
   - [ ] If it's UI related, attach the screenshots below.
        ==== πŸ†• Remove this line WHEN AND ONLY WHEN you're adding a new feature, follow the checklist πŸ‘† ==== -->
   
   - [x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #8184.
   - [x] Update the [`CHANGES` log](https://github.com/apache/skywalking/blob/master/CHANGES.md).
   


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] wu-sheng commented on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-979881551


   We should keep as agent side and old releases still have this issue.


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] toffentoffen commented on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
toffentoffen commented on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-981408030


   @kezhenxu94 should we then delete the [FAQ section for MAC M1](https://github.com/apache/skywalking/blob/master/docs/en/FAQ/How-to-build-with-mac-m1.md)? 
   Or should I update it, pointing a comment to the merge commit mentioning that it is not needed for newer releases but still leave the document for older versions?
   
   FOR gRPC java agent I will create another PR.


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] kezhenxu94 commented on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-981411312


   > @kezhenxu94 should we then delete the [FAQ section for MAC M1](https://github.com/apache/skywalking/blob/master/docs/en/FAQ/How-to-build-with-mac-m1.md)? 
   > 
   
   I suggested to remove but it's @wu-sheng 's call. 


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] kezhenxu94 commented on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-979878203


   Can you also remove the FAQ regarding the M1 compiling question?


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] kezhenxu94 edited a comment on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
kezhenxu94 edited a comment on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-979882579


   > We should keep as agent side and old releases still have this issue.
   
   People using old releases should read the docs in their corresponding tag and agent should have their own doc and FAQ in their repo. BTW can we also update the gRPC in Java agent?


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] kezhenxu94 commented on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-979882579


   > We should keep as agent side and old releases still have this issue.
   
   People using old releases should read the docs in their corresponding tag and agent should have their own doc and FAQ. 


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] wu-sheng merged pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
wu-sheng merged pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186


   


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] wu-sheng commented on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-981415938


   After Java agent is done,  I think it is time to remove.


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] kezhenxu94 edited a comment on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
kezhenxu94 edited a comment on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-979878203


   Can you also remove the FAQ regarding the M1 compiling question? I think we don't need them anymore 


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] wu-sheng commented on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-979912689


   Make sense for old release. The current cases is that, docs of old releases are unsearchable.
   Agent should be updated too.


-- 
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: notifications-unsubscribe@skywalking.apache.org

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



[GitHub] [skywalking] toffentoffen edited a comment on pull request #8186: [Enhancement] Bump grpc and protobuff version to allow building on Mac M1

Posted by GitBox <gi...@apache.org>.
toffentoffen edited a comment on pull request #8186:
URL: https://github.com/apache/skywalking/pull/8186#issuecomment-981408030


   @kezhenxu94 should we then delete the [FAQ section for MAC M1](https://github.com/apache/skywalking/blob/master/docs/en/FAQ/How-to-build-with-mac-m1.md)? 
   Or should I update it, pointing a comment to the merge commit mentioning that it is not needed for newer releases but still leave the document for older versions?
   
   ~For gRPC java agent I will create another PR.~ It has been already done at https://github.com/apache/skywalking-java/pull/74


-- 
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: notifications-unsubscribe@skywalking.apache.org

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