#380 Support Ansible Tasks
Closed: Fixed 6 years ago Opened 7 years ago by tflink.

Currently, libtaskotron is designed to either execute locally with an executor or to use a minion for executing remotely.

To support the new test invocation standard, we need to support calling ansible to run the actual tests instead of using the "old" formulas. This will require several changes and this is the tracking ticket for those changes.


Metadata Update from @tflink:
- Issue marked as depending on: #381
- Issue marked as depending on: #382

6 years ago

Here you go, @kparal, this is diff of buildbot.master.cfg from taskotron/taskotron-docker repo. These changes are needed to run ansiblized code:

diff --git a/buildbot-master/taskotron.master.cfg b/buildbot-master/taskotron.master.cfg
index 64b1921..833923d 100644
--- a/buildbot-master/taskotron.master.cfg
+++ b/buildbot-master/taskotron.master.cfg
@@ -146,7 +146,7 @@ factory.addStep(ShellCommand(command=["rm", "-f", "/var/log/taskotron/taskotron.

 # check out the source
 factory.addStep(Git(repourl=Property('repo', default=Interpolate('/var/lib/git/mirror/fedoraqa/%(prop:taskname)s/')), #TODO: use grokmirror?
-                    branch=Property('branch', default='master'),
+                    branch=Property('branch', default='feature/ansiblize'),
                     mode='full',
                     method='clobber',
                     shallow=True))
@@ -159,7 +159,7 @@ factory.addStep(ShellCommand(command=["runtask",
                                         '-j', Interpolate('%(prop:buildername)s/%(prop:buildnumber)s'),
                                         '--local', #TODO: make this better
                                         '--uuid', Interpolate('%(prop:uuid)s'),
-                                        'runtask.yml'],
+                                        '.'],
                              descriptionDone=[Interpolate('%(prop:taskname)s on %(prop:item)s')],
                              name='runtask',
                              timeout=2400,

Metadata Update from @kparal:
- Issue close_status updated to: Fixed

6 years ago

Login to comment on this ticket.

Metadata