| |
@@ -12,7 +12,7 @@
|
| |
--- !Policy
|
| |
product_versions:
|
| |
- fedora-*
|
| |
- decision_context: bodhi_update_push_testing
|
| |
+ decision_contexts: [bodhi_update_push_testing]
|
| |
subject_type: koji_build
|
| |
rules:
|
| |
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
| |
@@ -22,7 +22,7 @@
|
| |
--- !Policy
|
| |
product_versions:
|
| |
- fedora-*
|
| |
- decision_context: bodhi_update_push_stable
|
| |
+ decision_contexts: [bodhi_update_push_stable]
|
| |
subject_type: koji_build
|
| |
rules:
|
| |
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
| |
@@ -32,10 +32,14 @@
|
| |
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].
|
| |
- The `decision_context` is to be https://pagure.io/greenwave/issue/282[clarified].
|
| |
- Rules define test cases that should be considered for the gating decision, in this case
|
| |
- `fedora-ci.koji-build.tier0.functional` which are tests that were run
|
| |
- in the CI based on the configuration in `tests/tests.yml` in package's dist-git.
|
| |
+ 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.
|
| |
+
|
| |
+ The `decision_contexts` should match in both remote rules file and the policy in the Greenwave configuration (at least one decision context).
|
| |
+ Rules define test cases that should be considered for the gating decision, in this case `fedora-ci.koji-build.tier0.functional`
|
| |
+ which are tests that were run in the CI based on the configuration in `tests/tests.yml` in package's dist-git.
|
| |
+ If no tests are required for the particular decision context(s) rules should be set to an empty list, i. e. `rules: []`,
|
| |
+ otherwise Greenwave will return, that it could not find any applicable policies.
|
| |
|
| |
Other tests which can be enabled for gating:
|
| |
|
| |
This fixes greenwave#282 (https://pagure.io/greenwave/issue/282)