lizhimins commented on code in PR #1261:
URL: https://github.com/apache/rocketmq-clients/pull/1261#discussion_r3372704231


##########
cpp/.bazelrc:
##########
@@ -131,22 +133,4 @@ build:coverage 
--instrumentation_filter="//source[/:],//include[/:],-//source/ba
 
 test --test_output=errors
 

Review Comment:
   原来 WORKSPACE 和 .bazelrc 中的 RBE 配置是用于 远程构建执行(Remote Build Execution)的:
   
   WORKSPACE 中的部分:
   
   引入 buildbuddy-toolchain,这是 [BuildBuddy](https://www.buildbuddy.io/) 
平台提供的远程构建工具链
   BuildBuddy 是一个 Bazel 远程执行/缓存服务(类似 Google 内部的 RBE)
   .bazelrc 中的 build:remote 配置:
   
   --remote_executor=grpcs://remote.buildbuddy.io — 编译任务发送到 BuildBuddy 
云端执行,而非本地编译
   --remote_cache=grpcs://remote.buildbuddy.io — 远程构建缓存,避免重复编译
   --bes_backend / --bes_results_url — Build Event Service,构建结果上传到 BuildBuddy 
网页面板查看
   --jobs=250 — 远程可以并行 250 个任务(本地不可能这么多)
   --host_platform / --crosstool_top — 使用 BuildBuddy 提供的远程工具链(编译器等)
   用法是 bazel build --config=remote //...,开发者可以把编译任务丢到云端,加速大型构建。
   
   为什么删除:
   
   CI 没有使用这个配置(没有配置 BuildBuddy API key)
   BuildBuddy 需要付费账号或自建服务才能用
   buildbuddy-toolchain 不在 Bazel Central Registry,阻碍后续 Bzlmod 迁移
   想用的开发者可以通过 user.bazelrc(已有 try-import %workspace%/user.bazelrc)自行配置



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to