Question on pants remote execution setup with Buil...
# general
f
Question on pants remote execution setup with BuildBarn. We have a working BB setup on K8 cluster, which works with Bazel. I am trying to get it to work with pants. In `pnats.toml`:
Copy code
remote_cache_read = true
remote_cache_write = true
remote_store_address = "grpc://<an IP address>:8980"
remote_execution_address = "<grpc://an> IP address:8980"
remote_execution = true
remote_instance_name = "fuse"
remote_execution_extra_platform_properties = [
  "OSFamily=linux",
  "container-image=<docker://ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448>",
]
The build returns:
Copy code
IntrinsicError: For action Digest { hash: Fingerprint<5906949aad5aadf90f4abaf085563563b18037233bab5287de902e0909cccfbc>, size_bytes: 139 }: No workers exist for instance name prefix "fuse" platform {}
Both OSFamily and container-image are matching. Anything else I should specify? It looks like
platform
is empty. Any idea??
h
f
yes, I did experiment with that:
Copy code
remote_environment(
  name="my_remote_env",
  #platform="ubuntu-act-22-04-platform",
  platform="linux_x86_64",
  extra_platform_properties = [
    "docker-container=<docker://ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448>",
    "OSFamily=linux",
    "container-image=<docker://ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448>",
  ],
)
The weird thing the response indicated the platform specification in the request was empty but when I specify it to something invalid (like the comment out value) then it complains:
Copy code
InvalidTargetException: BUILD:24: Values for the 'platform' field in target //:remote must be one of ['linux_arm64', 'linux_x86_64', 'macos_arm64', 'macos_x86_64'], but 'ubuntu-act-22-04-platform' was provided
h
Well, that's just validation of the target field, which happens long before any requests are actually made
I know some folks have made BB work, have you searched this Slack for any prior art?
cc @fast-nail-55400 who knows buildbarn far far better than I do