Conversation
README.md
Outdated
| For clients to be able to use buildbarn, clients need to send actions with platform properties that | ||
| match the platform properties that buildbarn workers register themselves with. | ||
|
|
||
| For Bazel clients, platform properties can be set in the `.bazelrc` or as command line parameters: |
There was a problem hiding this comment.
Though I guess you normally never set those, because bazel-toolchains sets those for you, right?
There was a problem hiding this comment.
Mm that's fair. Related to the comment about the `try a build section' being a bit lost, maybe this needs to be its own section, distinct from the remote-execution section?
There was a problem hiding this comment.
Moved it, let me know if that works for you.
There was a problem hiding this comment.
That place seems better. Thanks! Do make sure to explicitly mention that this isn’t needed for bazel-toolchain users.
There was a problem hiding this comment.
Yeh. I think that it would be helpful for bazel-toolchain users to document how the bazel platform referenced in rbe_autoconfig relates to the platform defined in the runner configuration, so I've just expanded that out a bit.
e1e64dd to
6dae722
Compare
README.md
Outdated
| For clients to be able to use buildbarn, clients need to send actions with platform properties that | ||
| match the platform properties that buildbarn workers register themselves with. | ||
|
|
||
| For Bazel clients, platform properties can be set in the `.bazelrc` or as command line parameters: |
There was a problem hiding this comment.
That place seems better. Thanks! Do make sure to explicitly mention that this isn’t needed for bazel-toolchain users.
Add this to the README, to identify how platform properties in bazel are expressed and how buildbarn workers are configured.
6dae722 to
037ca42
Compare
| --remote_default_exec_properties=container-image=docker://marketplace.gcr.io/google/rbe-ubuntu16-04@sha256:b516a2d69537cb40a7c6a7d92d0008abb29fba8725243772bdaf2c83f1be2272 | ||
| ``` | ||
|
|
||
| Note this is only necessary when the [bazel-toolchains](https://github.com/bazelbuild/bazel-toolchains) repository is not being used. Otherwise, platform properties are set via the [bazel platform](https://github.com/bazelbuild/bazel-toolchains/blob/master/configs/ubuntu16_04_clang/11.0.0/bazel_3.1.0/config/BUILD#L43) selected in [`rbe_autoconfig`](https://github.com/buildbarn/bb-deployments/blob/master/WORKSPACE#L93), and referenced using the [`--extra_execution_platforms`](https://github.com/buildbarn/bb-deployments/blob/master/bazelrc#L4) parameter. |
There was a problem hiding this comment.
Maybe good to mention also that rbe_autoconfig is only available on Linux? (see also #19)
| --remote_default_exec_properties=container-image=docker://marketplace.gcr.io/google/rbe-ubuntu16-04@sha256:b516a2d69537cb40a7c6a7d92d0008abb29fba8725243772bdaf2c83f1be2272 | ||
| ``` | ||
|
|
||
| Note this is only necessary when the [bazel-toolchains](https://github.com/bazelbuild/bazel-toolchains) repository is not being used. Otherwise, platform properties are set via the [bazel platform](https://github.com/bazelbuild/bazel-toolchains/blob/master/configs/ubuntu16_04_clang/11.0.0/bazel_3.1.0/config/BUILD#L43) selected in [`rbe_autoconfig`](https://github.com/buildbarn/bb-deployments/blob/master/WORKSPACE#L93), and referenced using the [`--extra_execution_platforms`](https://github.com/buildbarn/bb-deployments/blob/master/bazelrc#L4) parameter. |
There was a problem hiding this comment.
When I see links to files in Git repositories, I'm always worried that the links become broken over time. Especially when line number anchors are used. Could you please replace the word master in all these URLs with the commit hash or a tag? Thanks!
Add this to the README, to identify how platform properties
in bazel are expressed and how buildbarn workers are configured.
Closes #20