listens to fedmsgs coming out of the atomic host CI pipeline,
Find a file
Adam Williamson 326c9b0f16 Add support for fedora-update type messages
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>
2026-06-08 13:54:01 -07:00
conf Add support for fedora-update type messages 2026-06-08 13:54:01 -07:00
resultsdb_listener Add support for fedora-update type messages 2026-06-08 13:54:01 -07:00
tests Drop support for pipeline messages 2026-05-21 16:24:38 -07:00
.gitignore Expend on the files ignored in .gitignore 2019-07-25 12:19:48 +02:00
LICENSE Add the GPLv2 license file 2017-10-02 09:55:30 +02:00
MANIFEST.in Add a MANIFEST.in file to specify which files to include in the release 2017-10-04 10:30:54 +02:00
python-ci-resultsdb-listener.spec bump to version 1.2.1 2022-06-16 08:50:11 -03:00
README.rst Move the configuration files into the conf folder 2019-07-25 12:19:48 +02:00
requirements.txt resultsdb_api min version 2021-07-01 11:03:03 -03:00
setup.py bump to version 1.2.1 2022-06-16 08:50:11 -03:00
tox.ini move to supported python versions 2024-02-28 17:42:23 -03:00

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 .