Don't log warning for missing proc enrichment in SyscallEventType DatasourceEvent methods#734
Don't log warning for missing proc enrichment in SyscallEventType DatasourceEvent methods#734
Conversation
…asourceEvent methods Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
📝 WalkthroughWalkthroughModified getter methods in the datasource event utility to conditionally return default values when EventType is SyscallEventType, bypassing proc-enrichment field reads for those cases while preserving existing behavior for other event types. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pkg/utils/datasource_event.go (1)
586-589: Consider tracking this workaround with an issue.All the FIXME comments reference the same temporary workaround for missing proc enrichment in the syscall gadget. Consider creating a GitHub issue to track this technical debt, making it easier to find and clean up all affected methods once the gadget supports proc enrichment.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@pkg/utils/datasource_event.go` around lines 586 - 589, Create a GitHub issue to track the temporary workaround for missing proc enrichment in the syscall gadget, then update the FIXME in pkg/utils/datasource_event.go (the switch on e.EventType / SyscallEventType case) to reference that issue ID or URL (e.g., "FIXME: temporary workaround until gadget has proc enrichment; see ISSUE-1234") and apply the same referenced FIXME to other occurrences of this workaround so all instances are discoverable and can be cleaned up once proc enrichment is available.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@pkg/utils/datasource_event.go`:
- Around line 586-589: Create a GitHub issue to track the temporary workaround
for missing proc enrichment in the syscall gadget, then update the FIXME in
pkg/utils/datasource_event.go (the switch on e.EventType / SyscallEventType
case) to reference that issue ID or URL (e.g., "FIXME: temporary workaround
until gadget has proc enrichment; see ISSUE-1234") and apply the same referenced
FIXME to other occurrences of this workaround so all instances are discoverable
and can be cleaned up once proc enrichment is available.
Summary by CodeRabbit
Bug Fixes
Chores