| |
@@ -12,7 +12,7 @@
|
| |
--- !Policy
|
| |
product_versions:
|
| |
- fedora-*
|
| |
- decision_contexts: [bodhi_update_push_testing]
|
| |
+ decision_contexts: [bodhi_update_push_testing, bodhi_update_push_testing_critpath]
|
| |
subject_type: koji_build
|
| |
rules:
|
| |
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
| |
@@ -22,18 +22,22 @@
|
| |
--- !Policy
|
| |
product_versions:
|
| |
- fedora-*
|
| |
- decision_contexts: [bodhi_update_push_stable]
|
| |
+ decision_contexts: [bodhi_update_push_stable, bodhi_update_push_stable_critpath]
|
| |
subject_type: koji_build
|
| |
rules:
|
| |
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
| |
|
| |
+ WARNING: Both decision contexts must be specified for the `gating.yaml` to work in all cases.
|
| |
+
|
| |
TIP: In order to enable both gates, simply concatenate both examples above.
|
| |
|
| |
TIP: To add another test just extend the `rules` list with additional `!PassingTestCaseRule`.
|
| |
|
| |
This will enable gating for all Fedora releases based on the result of the CI xref:pipeline.adoc[Pipeline].
|
| |
- A decision context identifies set of policies used for a specific gating.
|
| |
- For example, `bodhi_update_push_stable` decision context is used for gating RPM builds in Bodhi updates before getting to the stable repository.
|
| |
+ A decision context identifies set of policies used for a specific gating. For example:
|
| |
+
|
| |
+ * `bodhi_update_push_stable` decision context is used for gating RPM builds in Bodhi updates before getting to the stable repository.
|
| |
+ * `bodhi_update_push_stable_critpath` decision context is used for gating https://fedoraproject.org/wiki/Critical_path_package?rd=Critical_path_packages[RPM builds in critical path] in Bodhi updates before getting to the stable repository.
|
| |
|
| |
The `decision_contexts` should match in both remote rules file and the policy in the Greenwave configuration (at least one decision context).
|
| |
Rules define resultsdb test cases that should be considered for the gating decision, in this case `fedora-ci.koji-build.tier0.functional`
|
| |
For more info see:
https://pagure.io/fedora-ci/general/issue/263#comment-749832
Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com