From f944ddb64d98b7f4504c08589e75373263ed7fda Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Sep 13 2021 17:59:15 +0000 Subject: Add *_critpath decision context to docs For more info see: https://pagure.io/fedora-ci/general/issue/263#comment-749832 Signed-off-by: Miroslav Vadkerti --- diff --git a/modules/ROOT/pages/gating.adoc b/modules/ROOT/pages/gating.adoc index 5705b33..ce57850 100644 --- a/modules/ROOT/pages/gating.adoc +++ b/modules/ROOT/pages/gating.adoc @@ -12,7 +12,7 @@ Enable gate to the testing repository: --- !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 @@ Enable gate to the stable repository (use this one for gating rawhide): --- !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`