sleighconfig: Add Signals config#124
Conversation
|
The latest Buf updates on your PR. Results from workflow .github/workflows/update.yml / generate (pull_request).
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a new CEL-based ChangesSignal Detection Schema and Integration
🎯 4 (Complex) | ⏱️ ~45 minutes 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
syncv2/v2.proto (1)
516-516:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winUpdate the "next ID" comment to reflect the newly allocated field.
Line 516 states
// next ID: 38, but field 38 (telemetry_signals) was just allocated on line 475. Update the comment to// next ID: 39to prevent future field number collisions.📝 Proposed fix
- // next ID: 38 + // next ID: 39🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@syncv2/v2.proto` at line 516, The trailing comment indicating the next available protobuf field number is stale — update the `// next ID: 38` comment to `// next ID: 39` to reflect that field 38 (`telemetry_signals`) was just allocated (referenced in the proto near `telemetry_signals`), preventing future field-number collisions.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@telemetry/sleighconfig.proto`:
- Around line 22-23: The import statements in telemetry/sleighconfig.proto are
not formatted in buf's expected order/style; run `buf format -w` in the repo
root to auto-fix the import ordering and formatting for the lines containing
`import "commands/v1.proto";` and `import "common/signals.proto";`, then commit
the updated file so it passes buf format validation.
---
Outside diff comments:
In `@syncv2/v2.proto`:
- Line 516: The trailing comment indicating the next available protobuf field
number is stale — update the `// next ID: 38` comment to `// next ID: 39` to
reflect that field 38 (`telemetry_signals`) was just allocated (referenced in
the proto near `telemetry_signals`), preventing future field-number collisions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 57ac965b-b7c7-40e7-aee0-26f98e53784c
📒 Files selected for processing (3)
common/signals.protosyncv2/v2.prototelemetry/sleighconfig.proto
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@common/signals.proto`:
- Around line 40-46: The Signal message is missing a description field required
by the downstream contract (SignalReport.description); update the Signal proto
by adding a string description field (e.g., add `string description = 4;`) to
the Signal message so Signal.description is echoed into
SignalReport.description; ensure the field number does not conflict with
existing fields (name=1, severity=2, expression=3) and include a brief comment
indicating it is echoed into SignalReport.description.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a5469b4e-dac6-4355-9d2f-f38404c91ffd
📒 Files selected for processing (1)
common/signals.proto
This reverts commit 9854186.
Note: the field on Preflight is likely to be temporary - I think this will end up moving to be a rule type synced during RuleDownload - but is enough to get started
Part of WS-787