Package maintainers often use remote rule file gating.yml instead of gating.yaml, which is defined in the Greenwave server configuration, to add required test to gate their packages.
gating.yml
gating.yaml
It would be a good idea to support the other file suffix if the URL template in configuration ends with one of them. I.e. if DIST_GIT_URL_TEMPLATE ends with .yaml and remote rule file is not found.
DIST_GIT_URL_TEMPLATE
.yaml
Alternatively, the fall back values could be explicitly specified in the configuration. E.g. with the new configuration option REMOTE_RULE_POLICIES:
REMOTE_RULE_POLICIES
REMOTE_RULE_POLICIES = { '*': [ 'https://src.fedoraproject.org/{pkg_namespace}{pkg_name}/raw/{rev}/f/gating.yaml', 'https://src.fedoraproject.org/{pkg_namespace}{pkg_name}/raw/{rev}/f/gating.yml', ] }
Commit 4b0836ec fixes this issue