Skip to main content

重新委托

¥Reclient

Reclient 与现有构建系统集成,以实现构建操作的远程执行和缓存。

¥Reclient integrates with an existing build system to enable remote execution and caching of build actions.

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 时,会自动包含重新客户端配置。

¥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 维护者访问 Electron 的 RBE 后端。如果你需要访问权限,请前往 Slack 中的 #access-requests 并 ping @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.