From 5e3cc5a7a38e93159a81b940b19ced879a2d280c Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 19 Jun 2023 12:42:21 +0200 Subject: Execution response: Add output symlink paths --- src/buildtool/execution_api/remote/bazel/bazel_response.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.hpp') diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.hpp b/src/buildtool/execution_api/remote/bazel/bazel_response.hpp index 048c6291..358c98c8 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_response.hpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_response.hpp @@ -56,12 +56,18 @@ class BazelResponse final : public IExecutionResponse { return action_id_; } - auto Artifacts() const noexcept -> ArtifactInfos final; + auto Artifacts() noexcept -> ArtifactInfos final; + + auto ArtifactsWithDirSymlinks() noexcept + -> std::pair final; private: std::string action_id_{}; std::shared_ptr const network_{}; BazelExecutionClient::ExecutionOutput output_{}; + ArtifactInfos artifacts_{}; + DirSymlinks dir_symlinks_{}; + bool populated_{false}; BazelResponse(std::string action_id, std::shared_ptr network, @@ -78,6 +84,8 @@ class BazelResponse final : public IExecutionResponse { return id.size_bytes() != 0; } + [[nodiscard]] auto Populate() noexcept -> bool; + [[nodiscard]] auto UploadTreeMessageDirectories( bazel_re::Tree const& tree) const -> std::optional; }; -- cgit v1.2.3