diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-10 10:56:56 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-10 17:59:50 +0100 |
commit | e0833fcedfdb7233047615650900ef2f285a80eb (patch) | |
tree | 1b247ae35232354090448568544058f2980c8edf /test/utils/remote_execution/bazel_action_creator.hpp | |
parent | 191ae1e197ca5ba4e55875dd9d54e2171f232c32 (diff) | |
download | justbuild-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.hpp | 8 |
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>( |