MGMT-21993: First pass on cleaning up the log analyzer a bit#145
Conversation
Since this only works against the live assisted-service we don't need to care about the old log path
|
@carbonin: This pull request references MGMT-21993 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe PR consolidates dual log bundle path constants (NEW_LOG_BUNDLE_PATH, OLD_LOG_BUNDLE_PATH) into a single LOG_BUNDLE_PATH, removing fallback logic throughout the log analyzer module. Additionally removes the get_events_by_host() and get_must_gather() methods, eliminates unused helper functions, and simplifies path resolution across signature files. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
💤 Files with no reviewable changes (3)
🧰 Additional context used🧬 Code graph analysis (4)assisted_service_mcp/src/utils/log_analyzer/log_analyzer.py (2)
assisted_service_mcp/src/utils/log_analyzer/signatures/error_detection.py (3)
assisted_service_mcp/src/utils/log_analyzer/signatures/advanced_analysis.py (3)
assisted_service_mcp/src/utils/log_analyzer/signatures/networking.py (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (16)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@carbonin: This pull request references MGMT-21993 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@carbonin: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carbonin, CrystalChun The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2f0b618
into
openshift-assisted:master
This PR removes some unused functions and gets rid of the old log bundle path which will never be used since we're running against the live service.
More to follow.
Summary by CodeRabbit
Refactor
Tests