It is recently possible to enable the remote gating also for redhat-modules. Updating the docs to describe that now is mandatory to specify the subject_type and that most fields should have the same value as in the global policy.
Looks like in gating.yaml the subject_type is still optional but not set to koji_build by default. Looks like breaking change.
gating.yaml
subject_type
koji_build
Can we keep it that way and deduce the type from namespace in dist-git URL?
Oh no! Did I missing something in this PR? https://pagure.io/greenwave/pull-request/350#request_diff
I'd like to minimize the amount of guessing greenwave does. IMO it's much more straightforward to have such tings explicitly defined.
The default is still koji_build, it's a SafeYAMLChoice and the "default_value" of that is the first choice (the element with index 0 in the list of choices). I'm pretty sure about that, the last test I wrote for it fails if you don't specify the subject_type in the gating.yaml, because it always puts koji_build (the default) - it was failing because the matching policy was a redhat-module.
I would also avoid to guess it, it's not a big effort for the user to just put "koji_build" (or whatever it is) in the gating.yaml. And the change is not breaking anything because the default is still "koji_build", that was the only possible one until now.
Understood. Should the docs mention then that the default value is koji_build?
rebased onto 6cbafa7526b92bd6f756b4f2388ba032e4baf013
Rebased adding the default value.
+1
:+1:
Commit 36c19e60 fixes this pull-request
Pull-Request has been merged by gnaponie
It is recently possible to enable the remote gating also for
redhat-modules. Updating the docs to describe that now is mandatory
to specify the subject_type and that most fields should have the
same value as in the global policy.