summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/root_utils.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-01-21 16:48:38 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-01-23 16:50:37 +0100
commitb1374350605a76a0dd772ebfdb0cd801873887dc (patch)
tree6a663fbb5df53b2daec2d0bae15f8c6cdc77fe4e /src/other_tools/root_maps/root_utils.hpp
parent6d69b1297a92810dc9224b35a1f1ec098a159e84 (diff)
downloadjustbuild-b1374350605a76a0dd772ebfdb0cd801873887dc.tar.gz
Remove function EnsureAbsentRootOnServe
...since it is superseded by ServeApi's method.
Diffstat (limited to 'src/other_tools/root_maps/root_utils.hpp')
-rw-r--r--src/other_tools/root_maps/root_utils.hpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/other_tools/root_maps/root_utils.hpp b/src/other_tools/root_maps/root_utils.hpp
index 2ba8b5ef..bee3db29 100644
--- a/src/other_tools/root_maps/root_utils.hpp
+++ b/src/other_tools/root_maps/root_utils.hpp
@@ -15,15 +15,11 @@
#ifndef INCLUDED_SRC_OTHER_TOOLS_ROOT_MAPS_ROOT_UTILS_HPP
#define INCLUDED_SRC_OTHER_TOOLS_ROOT_MAPS_ROOT_UTILS_HPP
-#include <filesystem>
#include <optional>
#include <string>
-#include "gsl/gsl"
-#include "src/buildtool/execution_api/common/execution_api.hpp"
#include "src/buildtool/multithreading/async_map_consumer.hpp"
#include "src/buildtool/serve_api/remote/serve_api.hpp"
-#include "src/buildtool/storage/config.hpp"
/// \brief Calls the ServeApi to check whether the serve endpoint has the given
/// tree available to build against.
@@ -37,41 +33,4 @@
std::string const& tree_id,
AsyncMapConsumerLoggerPtr const& logger) -> std::optional<bool>;
-/// \brief Calls the ServeApi to instruct the serve endpoint to set up a root
-/// defined by a given tree by retrieving it from the remote CAS. This method
-/// ensures the respective tree is in the remote CAS prior to the ServeApi call
-/// by uploading it to the remote CAS if it is missing.
-/// IMPORTANT: No check is performed for the compatibility mode of the protocol
-/// used by given remote execution endpoint!
-/// \param tree_id The Git-tree identifier.
-/// \param repo_path Local witnessing Git repository for the tree.
-/// \param native_storage_config Configuration of the native local storage.
-/// \param compat_storage_config Optional configuration of the compatible local
-/// storage, if it was set up.
-/// \param compat_storage Optional compatible local storage, if it was set up.
-/// \param local_api Optional API that knows how to communicate with the
-/// remote-execution endpoint specified by parameter remote_api, if given. In
-/// particular, it is expected to be provided if the remote is compatible.
-/// \param remote_api Optional API of the remote-execution endpoint.
-/// If nullopt, skip the upload to the remote CAS; this assumes prior knowledge
-/// which guarantees the tree given by tree_id exists in the remote CAS for the
-/// duration of the subsequent serve API call; this option should be used
-/// carefully, but does result in less remote communication.
-/// \param logger An AsyncMapConsumer logger instance.
-/// \param no_sync_is_fatal If true, report only as a warning the failure of the
-/// serve endpoint to set up the root for this tree; otherwise, this is reported
-/// as fatal.
-/// \returns Status flag, with false if state is deemed fatal, and true
-/// otherwise. Logger is only called with fatal if returning false.
-[[nodiscard]] auto EnsureAbsentRootOnServe(
- ServeApi const& serve,
- std::string const& tree_id,
- std::filesystem::path const& repo_path,
- gsl::not_null<StorageConfig const*> const& native_storage_config,
- StorageConfig const* compat_storage_config,
- IExecutionApi const* local_api,
- IExecutionApi const* remote_api,
- AsyncMapConsumerLoggerPtr const& logger,
- bool no_sync_is_fatal) -> bool;
-
#endif // INCLUDED_SRC_OTHER_TOOLS_ROOT_MAPS_ROOT_UTILS_HPP