HMS-10223: mark bootc system advisories as applicable - #2277
Merged
Conversation
Reviewer's GuideThis PR changes the evaluator and aggregator to consume raw Kafka messages instead of pre-parsed platform/advisory events, adds bootc-specific handling so all updates are marked applicable for image-mode systems, and updates tests accordingly to reflect the new message handling and bootc advisory behavior. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Kafka message deserialization is now duplicated in
evaluateHandlerandadvisoryUpdateHandler; consider a shared helper to keep the parsing/logging behavior consistent and easier to adjust in one place. - In
getUpdatesData, the bootc-specific logic forces all updates toAPPLICABLE; verify whether any pre-existingStatusIDdistinctions (e.g., already installed/ignored) should be preserved instead of blindly overriding everything. - The tests now repeatedly marshal
PlatformEventintoKafkaMessagebefore callingevaluateHandler; a small test helper for this conversion would reduce duplication and make future handler changes easier to propagate.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Kafka message deserialization is now duplicated in `evaluateHandler` and `advisoryUpdateHandler`; consider a shared helper to keep the parsing/logging behavior consistent and easier to adjust in one place.
- In `getUpdatesData`, the bootc-specific logic forces all updates to `APPLICABLE`; verify whether any pre-existing `StatusID` distinctions (e.g., already installed/ignored) should be preserved instead of blindly overriding everything.
- The tests now repeatedly marshal `PlatformEvent` into `KafkaMessage` before calling `evaluateHandler`; a small test helper for this conversion would reduce duplication and make future handler changes easier to propagate.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2277 +/- ##
==========================================
- Coverage 59.02% 59.00% -0.02%
==========================================
Files 147 147
Lines 9327 9324 -3
==========================================
- Hits 5505 5502 -3
Misses 3248 3248
Partials 574 574
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
image-mode systems are not patchable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist
Summary by Sourcery
Handle evaluation and advisory update processing directly from Kafka messages while ensuring bootc systems have all updates marked applicable.
New Features:
Enhancements:
Tests: