From e08865cee77d524efa45e038043c72ece8441157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 23 Jun 2016 13:40:57 +0200 Subject: [PATCH] Add TODOs to rida and ridad. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is hopefully the complete outline of what needs to be done. Signed-off-by: Petr Ĺ abata --- rida.py | 8 ++++++++ ridad.py | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/rida.py b/rida.py index 990af451..ad4dcc3c 100755 --- a/rida.py +++ b/rida.py @@ -27,3 +27,11 @@ This is the implementation of the orchestrator's public RESTful API. """ + +# TODO: Load configuration. +# TODO: Handle GET and POST requests. +# TODO; Validate the input modulemd & spec inputs. +# TODO: Update the PDC dependency graph. +# TODO: Emit messages about module submission. +# TODO: Set the build state to init once the module NVR is known. +# TODO: Set the build state to wait once we're done. diff --git a/ridad.py b/ridad.py index 929b94ab..b5fb94f3 100755 --- a/ridad.py +++ b/ridad.py @@ -28,3 +28,22 @@ This is the main component of the orchestrator and is responsible for proper scheduling component builds in the supported build systems. """ + +# TODO: Load configuration. +# TODO: Listen for bus messages from build systems about builds being done. +# TODO: Periodically check the state of the build systems' tasks, in case some +# messages got lost. +# TODO: Emit messages about the module build being done. +# TODO; Watch the database and process modules in the wait state. +# TODO: Construct the name of the tag/target according to the policy and record +# it in PDC. +# TODO: Create the relevant koji tags and targets. +# TODO: Query the PDC to find what modules satisfy the build dependencies and +# their tag names. +# TODO: Set tag inheritance for the created tag, using the build dependencies' +# tags. +# TODO: Ensure the RPM %dist tag is set according to the policy. +# TODO: Build the module components in the prepared tag. +# TODO: Set the build state to build once the module build is started. +# TODO: Set the build state to done once the module build is done. +# TODO: Set the build state to failed if the module build fails.