-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make RemoteRule more consistent #184
Conversation
I'm not entirely sure if this does not break anything. |
e80f958
to
cee7e44
Compare
So...looking at the history here, I think an effect of this will be that we check for decision changes much more often. It seems like the original intent of this I guess for updates that are gated on anything else - i.e. critpath updates - we will have to check the decision for any new waiver or result anyhow. But I'm wondering if perhaps for updates which aren't gated on anything else and whose package(s) don't have any |
To be clear I'm talking about an update like https://bodhi.fedoraproject.org/updates/FEDORA-2023-10d819be90 , for instance. Nothing gates that update, but we do run a CI test on it (for some updates I think we run multiple CI tests but none are gating). Right now I don't think we'd ever actually check for a decision change for that update, but with this change, I think we'd check for a decision change when we got the CI test result... |
Previously, a Greenwave policy with just a RemoteRule would cause "Cannot find any applicable policies" 404 error if the remote policy file does not contain a policy with the requested decision context. But that was not the case if the Greenwave policy would contain at least one PassingTestCaseRule. New behavior is to pass the decision with "no tests are required" instead of the 404 error. **Decision responses** will always include policies (in `applicable_policies`) that contain RemoteRule without checking if the remote gating file contains any matching policy. **Decision change messages** will still only be published if there are any required tests. Fixes https://pagure.io/greenwave/issue/668 JIRA: RHELWF-9620
cee7e44
to
f6adf1b
Compare
I've changed the behavior so that decision change message are published as before. Only the decision API response changes (always includes the matching policies containing RemoteRule). |
@mvalik Please review. |
+1 |
Previously, a Greenwave policy with just a RemoteRule would cause "Cannot find any applicable policies" 404 error if the remote policy file does not contain a policy with the requested decision context. But that was not the case if the Greenwave policy would contain at least one PassingTestCaseRule.
New behavior is to pass the decision with "no tests are required" instead of the 404 error.
Decision responses will always include policies (in
applicable_policies
) that contain RemoteRule without checking if the remote gating file contains any matching policy.Decision change messages will still only be published if there are any required tests.
Fixes https://pagure.io/greenwave/issue/668
JIRA: RHELWF-9620