summaryrefslogtreecommitdiff
path: root/test/utils/remote_execution/bazel_action_creator.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-06-13 13:30:13 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-06-13 15:55:41 +0200
commite4bbf59415e610fc090572aff29cd20cdb9c41f8 (patch)
tree41f8f3e3fae12c6ea21e4ac18d124dad08e6748c /test/utils/remote_execution/bazel_action_creator.hpp
parent47bb77c39199ae4842f79347de076a4534f7d310 (diff)
downloadjustbuild-e4bbf59415e610fc090572aff29cd20cdb9c41f8.tar.gz
RemoteExecutionConfig: Keep global platform properties
... and cache endpoint address for rebuilding.
Diffstat (limited to 'test/utils/remote_execution/bazel_action_creator.hpp')
-rw-r--r--test/utils/remote_execution/bazel_action_creator.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils/remote_execution/bazel_action_creator.hpp b/test/utils/remote_execution/bazel_action_creator.hpp
index 27864408..5589a1e1 100644
--- a/test/utils/remote_execution/bazel_action_creator.hpp
+++ b/test/utils/remote_execution/bazel_action_creator.hpp
@@ -16,7 +16,7 @@
std::map<std::string, std::string> const& env_vars,
std::map<std::string, std::string> const& properties) noexcept
-> std::unique_ptr<bazel_re::Digest> {
- auto const& info = RemoteExecutionConfig::Instance();
+ auto const& info = RemoteExecutionConfig::RemoteAddress();
auto platform = std::make_unique<bazel_re::Platform>();
for (auto const& [name, value] : properties) {
@@ -63,7 +63,7 @@
auto action_id = ArtifactDigest::Create(action_data);
blobs.emplace_back(action_id, action_data);
- BazelCasClient cas_client(info.Host(), info.Port());
+ BazelCasClient cas_client(info->host, info->port);
if (cas_client.BatchUpdateBlobs(instance_name, blobs.begin(), blobs.end())
.size() == blobs.size()) {