trigger dockerautotest task
ClosedPublic

Authored by garretraziel on Mar 24 2016, 1:33 PM.

Details

Summary

Adds dockerautotest task running on new Docker build in Koji.

This simply hardcodes running additional tasks when name from nvr matches "docker".
Better solution would be to have mapping packagename: task list in configuration.
Question is how to represent it in ini file and whether we want that functionality at all.

Test Plan

Replay Koji build message with docker and observe that dockerautotest
task gets scheduled. Also run py.test testing/.

Diff Detail

Repository
rTRGR taskotron-trigger
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
garretraziel retitled this revision from to trigger dockerautotest task.Mar 24 2016, 1:33 PM
garretraziel updated this object.
garretraziel edited the test plan for this revision. (Show Details)
garretraziel added reviewers: tflink, mkrizek.
garretraziel edited the test plan for this revision. (Show Details)Mar 24 2016, 1:34 PM

Note that I wasn't able to test this properly - and I would like someone to help me with that. Running fedmsg-hub from virtualenv gives me this:

(env_trigger)[jsedlak@dhcp-28-124 taskotron-trigger]$ fedmsg-hub
Traceback (most recent call last):
  File "/home/jsedlak/Projects/taskotron-trigger/env_trigger/bin/fedmsg-hub", line 9, in <module>
    load_entry_point('fedmsg==0.17.0', 'console_scripts', 'fedmsg-hub')()
  File "/home/jsedlak/Projects/taskotron-trigger/env_trigger/lib/python2.7/site-packages/pkg_resources/__init__.py", line 549, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/jsedlak/Projects/taskotron-trigger/env_trigger/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2542, in load_entry_point
    return ep.load()
  File "/home/jsedlak/Projects/taskotron-trigger/env_trigger/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2201, in load
    self.require(*args, **kwargs)
  File "/home/jsedlak/Projects/taskotron-trigger/env_trigger/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2218, in require
    items = working_set.resolve(reqs, env, installer)
  File "/home/jsedlak/Projects/taskotron-trigger/env_trigger/lib/python2.7/site-packages/pkg_resources/__init__.py", line 830, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'daemon' distribution was not found and is required by the application
mkrizek accepted this revision.Mar 29 2016, 8:05 AM

Tested locally with @garretraziel, worked according to our testing. Unit tests pass as well.

This revision is now accepted and ready to land.Mar 29 2016, 8:05 AM
This revision was automatically updated to reflect the committed changes.