summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-15 17:53:55 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-03-19 10:31:33 +0100
commitf3039bc31d32b27ba92fdc534c191acf889db302 (patch)
tree828d7c0cbf2b9b24e488dada2da8ae65d9e6e7f5 /src/buildtool/serve_api/remote/serve_api.hpp
parentde99281c278153290f89c23b20f8afb2b57d97ee (diff)
downloadjustbuild-f3039bc31d32b27ba92fdc534c191acf889db302.tar.gz
serve target: Differentiate between fatal and non-fatal orchestrated builds
...by increasing granularity in client-side reporting. This allows to correctly continue with builds of local targets if the serve endpoint does not have the requested target, as well as improve the reporting for users on failure.
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp
index 219fe7ab..055cf78b 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -111,7 +111,7 @@ class ServeApi final {
[[nodiscard]] static auto ServeTarget(const TargetCacheKey& key,
const std::string& repo_key) noexcept
- -> std::optional<std::pair<TargetCacheEntry, Artifact::ObjectInfo>> {
+ -> std::optional<serve_target_result_t> {
return Instance().tc_->ServeTarget(key, repo_key);
}