bazel-buildfarm icon indicating copy to clipboard operation
bazel-buildfarm copied to clipboard

Can't start worker on current master via ./examples/bf-run start

Open shirchen opened this issue 4 years ago • 1 comments

user@shirchen:~/java$ git clone [email protected]:bazelbuild/bazel-buildfarm.git
...
user@shirchen:~/java/bazel-buildfarm$ ./examples/bf-run start
...
user@shirchen:~/java/bazel-buildfarm$ docker logs buildfarm-worker
Apr 05, 2021 4:39:32 PM build.buildfarm.worker.shard.Worker main
SEVERE: exception caught
com.google.protobuf.TextFormat$ParseException: 10:1: Input contains unknown fields and/or extensions:
10:1:   build.buildfarm.v1test.ShardWorkerConfig.omit_from_cas
32:1:   build.buildfarm.v1test.ShardWorkerConfig.dequeue_match_settings
71:5:   build.buildfarm.v1test.FilesystemCASConfig.file_directories_index_in_memory
87:3:   build.buildfarm.v1test.ContentAddressableStorageConfig.skip_load

shirchen avatar Apr 05 '21 16:04 shirchen

The bf-run tool uses a pinned version of buildfarm, but references the latest config files in the repo. So they are not compatible when the configs change over time. @80degreeswest, Do you want to bundle the correct config files in the docker container for this tool?

@shirchen I would suggest starting buildfarm by either following these developer steps:
https://github.com/bazelbuild/bazel-buildfarm#developer-information

Or doing what the CI does:
https://github.com/bazelbuild/bazel-buildfarm/blob/0462d2acec6b2e434f172eb32419470486be778f/.bazelci/integration_test.sh#L1

We'll either fix bf-run or remove it to avoid confusion.

luxe avatar Apr 05 '21 17:04 luxe