From bbcc5977f49646941ac35060bb74a27eda5fbd76 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 23 Jun 2025 14:56:04 +0200 Subject: ExecutionAPI: Support output_paths in requests ... and prepare local execution for clients using only RBEv2.1 (setting only output_paths). --- src/buildtool/execution_api/common/execution_api.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/buildtool/execution_api/common/execution_api.hpp') diff --git a/src/buildtool/execution_api/common/execution_api.hpp b/src/buildtool/execution_api/common/execution_api.hpp index 001c9189..d61a664e 100644 --- a/src/buildtool/execution_api/common/execution_api.hpp +++ b/src/buildtool/execution_api/common/execution_api.hpp @@ -45,15 +45,18 @@ class IExecutionApi { auto operator=(IExecutionApi&&) -> IExecutionApi& = default; virtual ~IExecutionApi() = default; - /// \brief Create a new action. + /// \brief Create a new action (>=RBEv2.0). /// \param[in] root_digest Digest of the build root. /// \param[in] command Command as argv vector - /// \param[in] cwd Working direcotry, relative to execution root + /// \param[in] cwd Working directory, relative to execution root /// \param[in] output_files List of paths to output files, relative to cwd /// \param[in] output_dirs List of paths to output directories. /// \param[in] env_vars The environment variables to set. /// \param[in] properties Platform properties to set. + /// \param[in] force_legacy Force use of legacy API RBEv2.0 /// \returns The new action. + /// Note that types of output files and directories are not verified. + /// NOLINTNEXTLINE(google-default-arguments) [[nodiscard]] virtual auto CreateAction( ArtifactDigest const& root_digest, std::vector const& command, @@ -61,8 +64,8 @@ class IExecutionApi { std::vector const& output_files, std::vector const& output_dirs, std::map const& env_vars, - std::map const& properties) const noexcept - -> IExecutionAction::Ptr = 0; + std::map const& properties, + bool force_legacy = false) const noexcept -> IExecutionAction::Ptr = 0; /// \brief Retrieve artifacts from CAS and store to specified paths. /// Tree artifacts are resolved its containing file artifacts are -- cgit v1.2.3