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/common/execution_response.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/common/execution_response.hpp') diff --git a/src/buildtool/execution_api/common/execution_response.hpp b/src/buildtool/execution_api/common/execution_response.hpp index a08134dd..3ad4e2ba 100644 --- a/src/buildtool/execution_api/common/execution_response.hpp +++ b/src/buildtool/execution_api/common/execution_response.hpp @@ -30,6 +30,8 @@ class IExecutionResponse { public: using Ptr = std::unique_ptr; using ArtifactInfos = std::unordered_map; + // set of paths found in output_directory_symlinks list of the action result + using DirSymlinks = std::unordered_set; enum class StatusCode { Failed, Success }; @@ -56,7 +58,11 @@ class IExecutionResponse { [[nodiscard]] virtual auto ActionDigest() const noexcept -> std::string = 0; - [[nodiscard]] virtual auto Artifacts() const noexcept -> ArtifactInfos = 0; + [[nodiscard]] virtual auto Artifacts() noexcept -> ArtifactInfos = 0; + + // Artifacts plus extra useful info + [[nodiscard]] virtual auto ArtifactsWithDirSymlinks() noexcept + -> std::pair = 0; }; #endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_REMOTE_EXECUTION_RESPONSE_HPP -- cgit v1.2.3