README.rst
This project contains a script to monitor the health of gating in Fedora.

Here are the steps it does:

- Clones a particular git repo
- Adds a fork as a remote
- Switches to the F30 branch
- Bumps the release in that branch using rpmdev-bumpspec
- Commits the changes
- Pushes the commit
- Builds the new package in koji
- Creates an update for that new build
- Checks (via datagrepper) that CI has completed
- Checks that resultsdb in rdu has recorded the result of the CI pipeline
- Checks that resultsdb in phx2 has recorded the result of the CI pipeline
- Checks (via datagrepper) that resultsdb has announced the new result
- Checks (via datagrepper) that greenwave has announced a decision
- Waives all tests for that update (using bodhi's CLI)
- Checks (via datagrepper) that waiverdb has announced the new waiver
- Checks (via datagrepper) that greenwave has announced a decision

To run in openshift, you need a ssh-key and a keytab for the principal,
alongside the config.
Currently the deployment is hardcoded to run against services in staging.

```
oc create secret generic monitor-gating-config --from-file monitor_gating_stg.cfg
oc create secret generic ssh --from-file id_rsa
oc create secret generic keytab --from-file user.keytab  
oc create -f project.yaml 
```