New in version 0.4.
Send check output to ResultsDB.
If reporting to ResultsDB is disabled in the config (report_to_resultsdb option, disabled by default for the development profile), the directive at least checks whether the check output is in valid Task result format and logs the details that would have been reported. For this reason, it’s useful to use resultsdb directive always, even when you don’t have any ResultsDB server configured.
parameter | required | description | type | default | choices |
---|---|---|---|---|---|
results |
yes | The output of the check in the ResultYAML format |
str |
YAML formatted output as taken from input, enhanced with result-id’s for each successfully stored result. The result-id information then can be used by other directives. If reporting to ResultsDB is disabled, the returned YAML does not contain this extra field.
These two actions first run run_rpmlint.py and export its YAML output to ${rpmlint_output}, and then feed this YAML output to resultsdb directive:
- name: run rpmlint on downloaded rpms
python:
file: run_rpmlint.py
callable: run
workdir: ${workdir}
export: rpmlint_output
- name: report results to resultsdb
resultsdb:
results: ${rpmlint_output}
export: resultsdb_output
If ResultsDB reporting is configured in the config file, it will get saved on the ResultsDB server, otherwise only YAML compliance will get checked and some summary will be printed out into the log, like this:
[libtaskotron:resultsdb_directive.py:143] 2014-06-24 13:55:27 INFO YAML is OK.
[libtaskotron:resultsdb_directive.py:144] 2014-06-24 13:55:27 INFO Reporting to ResultsDB is disabled.
[libtaskotron:resultsdb_directive.py:145] 2014-06-24 13:55:27 INFO Once enabled, the following would be reported:
[libtaskotron:resultsdb_directive.py:146] 2014-06-24 13:55:27 INFO <CheckDetail: {'_outcome': 'PASSED',
'item': 'xchat-2.8.8-21.fc20.x86_64.rpm',
'keyvals': {},
'output': '<stripped out>',
'report_type': 'koji_build',
'summary': 'RPMLINT PASSED for xchat-2.8.8-21.fc20.x86_64.rpm'}>
<CheckDetail: {'_outcome': 'PASSED',
'item': 'xchat-tcl-2.8.8-21.fc20.x86_64.rpm',
'keyvals': {},
'output': '<stripped out>',
'report_type': 'koji_build',
'summary': 'RPMLINT PASSED for xchat-tcl-2.8.8-21.fc20.x86_64.rpm'}>