FrostyX / fedora-review-service

Fedora package reviews CI
7 stars 1 forks source link

fedora-review-service

Fedora package reviews CI

Motivation

For years, there has been a queue of hundreds of packages waiting to be reviewed and added to Fedora. Clearly, we don't have enough manpower to process the queue.

This project aims to provide a CI for automatically building and reviewing the packages, and helping contributors with fixing the most obvious issues. Therefore reducing the time that a reviewer needs to spend on each package as much as possible.

Goals

Recognized messages

Configuration

Doesn't matter if you are running this service on your host system, in a docker-compose or in OpenShift, a manual step is required. Please configure your API tokens first

Just for the record, we are using fedora-messaging configuration files from here https://github.com/fedora-infra/fedora-messaging/blob/stable/configs/

Running

Run from git repository

Run the fedora-review-service consumer

PYTHONPATH=. fedora-messaging --conf conf/fedora.toml consume --callback="fedora_review_service.consumer:consume"

Or process just a single message, e.g.

PYTHONPATH="." run/fedora-review-service-process-message 4bfcdd3c-591e-4287-8966-0c485aa1ccfc

Docker compose

You can also run the service inside a Docker container

docker-compose up -d

OpenShift

See more about OpenShift deployment

Misc

You can see the fedora-messaging feed in your browser https://apps.fedoraproject.org/datagrepper/v2/search

Tests

CONFIG=conf/fedora-review-service-tests.yaml python -m pytest -vv -s

I have also these RHBZ tickets for manual testing