forked from infra/ansible
greenwave: handle ELN product_version rename, enable RemoteRule
See https://github.com/fedora-infra/bodhi/pull/6110 . We want to be able to gate (only) Fedora ELN kernel updates via gating.yaml (RemoteRule). However, if we just turned on the RemoteRule policy for "fedora-eln", suddenly hundreds of existing gating.yamls which specify "fedora-*" would apply to ELN, which we don't want. To solve this, we will make Bodhi use "eln" not "fedora-eln" as the product_version for ELN. That requires us to add "eln" to the null policies. Let's also enable RemoteRule for "eln" at the same time. This should not cause any existing policies to apply (unless there are any which just specify '*', I guess) but will allow us to add a kernel policy that applies to 'eln'. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
102149236d
commit
9cd1b6f82d
1 changed files with 6 additions and 2 deletions
|
|
@ -1,10 +1,12 @@
|
|||
# rawhide and branched are controllable so we can flip them on and off
|
||||
# around branching manually if we need to, if we have issues with
|
||||
# failing tests
|
||||
{% macro product_versions(upgrade='false', rawhide='true', branched='true') -%}
|
||||
{% macro product_versions(upgrade='false', rawhide='true', branched='true', eln='false') -%}
|
||||
product_versions:
|
||||
{% if rawhide|bool %}
|
||||
- fedora-{{ FedoraRawhideNumber }}
|
||||
{% if eln|bool %}
|
||||
- eln
|
||||
{% endif %}
|
||||
{% if FedoraBranched and branched|bool %}
|
||||
- fedora-{{ FedoraBranchedNumber }}
|
||||
|
|
@ -58,6 +60,7 @@ product_versions:
|
|||
id: "kojibuild_bodhipush_no_requirements"
|
||||
product_versions:
|
||||
- fedora-*
|
||||
- eln
|
||||
decision_contexts:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_testing_critpath
|
||||
|
|
@ -102,6 +105,7 @@ rules: []
|
|||
id: "bodhiupdate_bodhipush_no_requirements"
|
||||
product_versions:
|
||||
- fedora-*
|
||||
- eln
|
||||
decision_contexts:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_testing_critpath
|
||||
|
|
@ -149,7 +153,7 @@ rules: []
|
|||
# because Greenwave doesn't consider it to support remote rules.
|
||||
--- !Policy
|
||||
id: "kojibuild_bodhipush_remoterule"
|
||||
{{ product_versions() }}
|
||||
{{ product_versions(eln='true') }}
|
||||
decision_contexts:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_testing_critpath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue