listens to fedmsgs coming out of the atomic host CI pipeline,
- Python 100%
We want to report results of tests that run at update scope (e.g. rmdepcheck and possibly rpmdeplint) against the update, rather than separately against every build in the update. Extend this tool to handle fedora-update type messages. We are not publishing these yet - we need to make this change first - but this should be accurate based on the message schemas: https://forge.fedoraproject.org/ci/messages Signed-off-by: Adam Williamson <awilliam@redhat.com> |
||
|---|---|---|
| conf | ||
| resultsdb_listener | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| MANIFEST.in | ||
| python-ci-resultsdb-listener.spec | ||
| README.rst | ||
| requirements.txt | ||
| setup.py | ||
| tox.ini | ||
ci-resultsdb-listener
=====================
Listens to fedora-messaging messages sent by the Fedora CI pipeline running
in ci.centos.org and uploads them to a specified resultsdb.
Get it running
--------------
* In another terminal, setup and get running a resultsdb instance.
Instructions can be found at: https://pagure.io/taskotron/resultsdb/
* Install the dependencies:
::
sudo dnf install python3-fedora-messaging
* Adjust the fedora-messaging example configuration with your own uuid
::
sed -e "s/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/$(uuidgen)/g" conf/config.toml.dev-example > dev_config.toml
* Run the consumer:
::
PYTHONPATH=. fedora-messaging --conf dev_config.toml consume
Run the tests
-------------
* Install tox:
::
sudo dnf install python3-tox
* Run the tests:
::
tox .