-
Notifications
You must be signed in to change notification settings - Fork 195
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
Query all greenwave decision contexts together #4821
Query all greenwave decision contexts together #4821
Conversation
Note this ironically acts almost as a reversion of #4266 - we're almost back to the code before that change, except now we're passing a list of contexts instead of a single string. |
8704ba9
to
df96581
Compare
I think the integration tests will fail until a greenwave version with the change is marked as production. |
944b0a4
to
e3f6570
Compare
greenwave change is tagged for prod now. I've rebased this, let's see how it goes. |
The code looks good and tests are happy now, with the updated greenwave in prod and the fix for poetry installation in Rawhide. |
It's arguable whether it needs one, really, as it's barely a user-visible change (the only thing a user will notice is that gating status updates faster). But I can add one, sure... |
e3f6570
to
b470aa7
Compare
Since release-engineering/greenwave#95 , greenwave allows clients to query on multiple decision contexts at once. All relevant policies for all specified decision contexts are then applied to the decision. This means we no longer need to iterate over all relevant decision contexts and send a separate decision query for each one; we can just send one query (per `greenwave_batch_size` subjects, still) with all the decision contexts in it. This makes the code simpler and will make Bodhi more efficient. Signed-off-by: Adam Williamson <awilliam@redhat.com>
b470aa7
to
6f10399
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Since release-engineering/greenwave#95 , greenwave allows clients to query on multiple decision contexts at once. All relevant policies for all specified decision contexts are then applied to the decision. This means we no longer need to iterate over all relevant decision contexts and send a separate decision query for each one; we can just send one query (per
greenwave_batch_size
subjects, still) with all the decision contexts in it. This makes the code simpler and will make Bodhi more efficient.Signed-off-by: Adam Williamson awilliam@redhat.com