Repository navigation
feat(api): add status v3 proto - #5317
Conversation
|
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:
📝 WalkthroughWalkthroughThis PR adds a new ChangesAlertmanager StatusService
Estimated code review effort: 2 (Simple) | ~15 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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.
Actionable comments posted: 2
🤖 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 `@buf.yaml`:
- Around line 12-13: The module root path is set too deeply at
proto/public/alertmanager/v3. When Buf encounters the package alertmanager.v3,
it expects the proto files to be located under alertmanager/v3 relative to the
module root. Adjust the path value in the buf.yaml configuration from
proto/public/alertmanager/v3 to proto/public/alertmanager so that the module
root is positioned at the correct level and satisfies the
PACKAGE_DIRECTORY_MATCH lint requirement.
In `@proto/public/alertmanager/v3/status.proto`:
- Around line 60-64: The enum values in the State enum violate Buf's
ENUM_VALUE_PREFIX lint rule. The values (CLUSTER_STATE_UNSPECIFIED,
CLUSTER_STATE_DISABLED, CLUSTER_STATE_SETTLING, CLUSTER_STATE_READY) are
prefixed with CLUSTER_STATE_ instead of the required STATE_ prefix. Replace the
CLUSTER_STATE_ prefix with STATE_ for each enum value in the State enum to
comply with the Buf lint rules.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 1e140cdf-2d1e-4b5b-bda9-81d224465bc9
⛔ Files ignored due to path filters (4)
api/alertmanagerv3/status.pb.gois excluded by!**/*.pb.gogo.sumis excluded by!**/*.suminternal/tools/go.sumis excluded by!**/*.sumsilence/silencepb/silence.pb.gois excluded by!**/*.pb.go
📒 Files selected for processing (6)
api/alertmanagerv3/alertmanagerv3connect/status.connect.gobuf.gen.yamlbuf.yamlgo.modinternal/tools/go.modproto/public/alertmanager/v3/status.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 `@proto/public/alertmanager/v3/status.proto`:
- Line 16: The package declaration in status.proto is `alertmanager.v3` but the
buf.yaml module configuration has the module root set to
`proto/public/alertmanager/v3`, causing a PACKAGE_DIRECTORY_MATCH linter error.
To fix this, change the package declaration from `alertmanager.v3` to `v3` in
the package statement at the top of the status.proto file to align with the
module root directory structure, or alternatively update the buf.yaml module
root configuration from `proto/public/alertmanager/v3` to `proto/public/` to
match the package naming scheme.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 6e326468-216b-44dd-bd40-8e539b274a57
⛔ Files ignored due to path filters (4)
api/alertmanagerv3/status.pb.gois excluded by!**/*.pb.gogo.sumis excluded by!**/*.suminternal/tools/go.sumis excluded by!**/*.sumsilence/silencepb/silence.pb.gois excluded by!**/*.pb.go
📒 Files selected for processing (6)
api/alertmanagerv3/alertmanagerv3connect/status.connect.gobuf.gen.yamlbuf.yamlgo.modinternal/tools/go.modproto/public/alertmanager/v3/status.proto
✅ Files skipped from review due to trivial changes (3)
- buf.gen.yaml
- buf.yaml
- api/alertmanagerv3/alertmanagerv3connect/status.connect.go
🚧 Files skipped from review as they are similar to previous changes (2)
- internal/tools/go.mod
- go.mod
9bbd96e to
5683529
Compare
- add proto file - run `buf generate` Signed-off-by: Siavash Safi <siavash@cloudflare.com>
buf generatePull Request Checklist
Please check all the applicable boxes.
benchstatto compare benchmarksWhich user-facing changes does this PR introduce?