bazelbuild / bazel-buildfarm

Bazel remote caching and execution service
https://bazel.build
Apache License 2.0
635 stars 199 forks source link

Support Multiple Hashing Function #1787

Open amishra-u opened 3 days ago

amishra-u commented 3 days ago

Buildfarm supports multiple hash functions, but it requires the hashing function to be configured at service startup. This means that even though Buildfarm can support multiple hash functions, only one can be active at a time.

Since Bazel passes the hashing algorithm in the ByteStream:Write request and ExecuteService:Execute API, Buildfarm can select the hashing algorithm per API request instead of configuring it during service startup.