summaryrefslogtreecommitdiff
path: root/test/utils/remote_execution/bazel_action_creator.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-02-10 10:56:56 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-10 17:59:50 +0100
commite0833fcedfdb7233047615650900ef2f285a80eb (patch)
tree1b247ae35232354090448568544058f2980c8edf /test/utils/remote_execution/bazel_action_creator.hpp
parent191ae1e197ca5ba4e55875dd9d54e2171f232c32 (diff)
downloadjustbuild-e0833fcedfdb7233047615650900ef2f285a80eb.tar.gz
Store BazelCapabilitiesClient in BazelNetwork
...and pass it to BazelCasClient
Diffstat (limited to 'test/utils/remote_execution/bazel_action_creator.hpp')
-rw-r--r--test/utils/remote_execution/bazel_action_creator.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/utils/remote_execution/bazel_action_creator.hpp b/test/utils/remote_execution/bazel_action_creator.hpp
index 3ffcf827..49f29e9c 100644
--- a/test/utils/remote_execution/bazel_action_creator.hpp
+++ b/test/utils/remote_execution/bazel_action_creator.hpp
@@ -33,6 +33,7 @@
#include "src/buildtool/common/remote/retry_config.hpp"
#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/execution_api/common/artifact_blob.hpp"
+#include "src/buildtool/execution_api/remote/bazel/bazel_capabilities_client.hpp"
#include "src/buildtool/execution_api/remote/bazel/bazel_cas_client.hpp"
#include "src/buildtool/execution_api/remote/config.hpp"
#include "src/buildtool/file_system/object_type.hpp"
@@ -104,10 +105,15 @@
RetryConfig retry_config{}; // default retry config
+ BazelCapabilitiesClient capabilities(remote_config->remote_address->host,
+ remote_config->remote_address->port,
+ &*auth_config,
+ &retry_config);
BazelCasClient cas_client(remote_config->remote_address->host,
remote_config->remote_address->port,
&*auth_config,
- &retry_config);
+ &retry_config,
+ &capabilities);
if (cas_client.BatchUpdateBlobs(instance_name, blobs) == blobs.size()) {
return std::make_unique<bazel_re::Digest>(