summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2022-10-13 11:19:17 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2022-10-14 12:46:16 +0200
commit4d53961509015534fa10a59f4b86a20ae8a66017 (patch)
tree3db1b825e58c07ad316efd3c8a32a26be5fe51b1 /test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp
parentadb8205158d036a47ed364ba4ce9deff82e7d3b6 (diff)
downloadjustbuild-4d53961509015534fa10a59f4b86a20ae8a66017.tar.gz
Fix missing tree handling in BazelCasClient::ReadSingleBlob function
The initial assumption before introducing the native remote execution protocol was that only blobs were transmitted over the wire and put in a blob store. With the native remote execution protocol, also trees can be transmitted over the wire and they are put in a different store than blobs. Different hashing functions are used for blobs and trees and need to be calculated accordingly for data to be put in the correct store. This distinction of blobs and trees is now implemented. Additionally, a warning is added that checks equality between the requested digest and the digest computed by the received content. This check makes sense to detect, e.g., corrupted messages, unexpected transmission termination, or remote server failure.
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp')
0 files changed, 0 insertions, 0 deletions