重新委托
🌐 Reclient
Reclient 与现有的构建系统集成,以支持构建操作的远程执行和缓存。
Electron 部署了一个与 reclient 兼容的 RBE 后端,可供所有 Electron 维护者使用。有关身份验证的详细信息,请参阅下面的 访问 部分。非维护者无法访问该集群,但可以登录以获取一个 Cache Only 令牌,从而访问仅缓存的 CAS 后端。使用该方式应显著加快构建时间。
🌐 Electron has a deployment of a reclient
compatible RBE Backend that is available to all Electron Maintainers.
See the Access section below for details on authentication. Non-maintainers
will not have access to the cluster, but can sign in to receive a Cache Only token
that gives access to the cache-only CAS backend. Using this should result in
significantly faster build times .
启用 Reclient
🌐 Enabling Reclient
目前使用 Reclient 的唯一支持方式是使用我们的 构建工具。在设置 build-tools 时,Reclient 配置会自动包含其中。
🌐 Currently the only supported way to use Reclient is to use our Build Tools.
Reclient configuration is automatically included when you set up build-tools.
如果你已有现有配置,你可以直接在配置文件中设置 "reclient": "remote_exec"。
🌐 If you have an existing config, you can just set "reclient": "remote_exec"
in your config file.
使用 Reclient 进行构建
🌐 Building with Reclient
当你使用 Reclient 时,你可以以远高于你的机器通常支持的 j 值运行 autoninja。
🌐 When you are using Reclient, you can run autoninja with a substantially higher j
value than would normally be supported by your machine.
请不要设置超过 200 的值。RBE 系统受监控。发现有用户滥用系统进行不合理的并发操作,将会被停用。
🌐 Please do not set a value higher than 200. The RBE system is monitored. Users found to be abusing it with unreasonable concurrency will be deactivated.
autoninja -C out/Testing electron -j 200
如果你使用 build-tools,适当的 -j 值将会自动为你使用。
🌐 If you're using build-tools, appropriate -j values will automatically be used for you.
使用权
🌐 Access
出于安全和成本考虑,Electron 的 RBE 后端目前仅限 Electron 维护者访问。如果你想获取访问权限,请前往 Slack 中的 #access-requests 并 @ @infra-wg 请求访问。请注意,成为维护者并不意味着会自动获得访问权限。访问权限是根据具体情况逐案决定的。
🌐 For security and cost reasons, access to Electron's RBE backend is currently restricted
to Electron Maintainers. If you want access, please head to #access-requests in
Slack and ping @infra-wg to ask for it. Please be aware that being a
maintainer does not automatically grant access. Access is determined on a
case-by-case basis.
支持
🌐 Support
我们不提供 Reclient 使用方面的支持。提出求助或遇到问题的请求很可能会在没有太多理由的情况下被关闭。我们没有能力处理此类支持。
🌐 We do not provide support for usage of Reclient. Issues raised asking for help / having issues will probably be closed without much reason. We do not have the capacity to handle that kind of support.