Repository navigation
feat(notifications): add Svix provider - #5352
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Provider setup and namespaces openmeter/notification/v4/providers/svix/provider.go, errors.go, namespace.go, errors_test.go, openmeter/notification/v4/providers/svix/README.md |
Adds provider configuration and error classification, plus namespace retrieval, creation, update, and deletion. |
Channel lifecycle openmeter/notification/v4/providers/svix/channel.go, openmeter/notification/v4/providers/svix/cancellation_test.go, openmeter/notification/v4/providers/svix/README.md |
Adds endpoint retrieval, creation, update, and deletion. Creation handles UID conflicts, while updates apply supplied fields, headers, and signing secrets. |
Event delivery and observation openmeter/notification/v4/providers/svix/event.go, eventattempt.go, eventmapping.go, event_test.go, eventmapping_test.go, event_cancellation_test.go, openmeter/notification/v4/providers/svix/README.md |
Adds event sending, per-destination resending, paginated attempt retrieval, and delivery-state mapping. Tests cover resend baselines, response-size limits, and interruptions. |
Local Svix test setup .github/docker-compose.depot-registry.yaml, docker-compose.yaml, openmeter/notification/v4/providers/svix/testutils/* |
Updates the Svix image and local network configuration. Adds test authentication, environment setup, and an HTTP webhook test server with request and concurrency tests. |
Priority:
Estimated code review effort: 4 (Complex) | ~60 minutes
Change: Feature
Sequence Diagram(s)
sequenceDiagram
participant Caller
participant SvixProvider
participant SvixAPI
participant WebhookEndpoint
Caller->>SvixProvider: SendEvent
SvixProvider->>SvixAPI: Create or retrieve message
SvixAPI-->>SvixProvider: Message response
SvixAPI->>WebhookEndpoint: Deliver webhook
Caller->>SvixProvider: GetEvent or ResendEvent
SvixProvider->>SvixAPI: Retrieve message and attempt data
SvixAPI-->>SvixProvider: Message and attempt responses
SvixProvider-->>Caller: Destination results
Possibly related PRs
- openmeterio/openmeter#5351: Defines the Notification V4 provider contracts implemented by this Svix provider.
Suggested reviewers: gergely-kurucz-konghq, turip
Merge Risk: 
Minimal · up to 9a0dc
-
This adds a Svix provider and local test setup without wiring it into the existing notification path. No concrete merge-blocking defect was found, so the change looks safe to merge.
Pre-merge checks: 
4
Finishing Touches: 💡 1
-
🛠️ Fix failing CI checks: 💡
-
- Commit to this branch
- Create a new PR
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 @coderabbitai help to get the list of available commands.
9415bae to
f980455
Compare
48b50bc to
5d3b49a
Compare
9a0dc40 to
6289d71
Compare
Overview
Implement the Svix provider for the Notification V4 contracts introduced in #5351.
tracex/v2.Notes for reviewer
Depends on #5351. This is PR2 in the Notification V4 stack and targets
feat/notification-v4-provider-types, notmain, so the diff contains only the Svix implementation commit.Review and merge #5351 first. After it merges, this branch should be updated onto
mainand the PR retargeted, accounting for a possible squash merge.The existing Notification implementation is not replaced or wired to V4 by this PR. Provider behavior and persistence responsibilities are documented in
openmeter/notification/v4/providers/svix/README.md. Untracked design documents and local files are excluded.Validation
go test -tags=dynamic -race -count=1 -timeout=5m -v ./openmeter/notification/v4/...Passed locally across the V4 package, no-op provider, Svix provider (including the live integration suite), and test utilities, with no race reports.
git diff --checkalso passed.Summary by CodeRabbit


Confidence Score: 5/5
The PR appears safe to merge; no actionable defects were found.Summary
Adds a Svix provider for Notification V4 without replacing the existing notification implementation.
No new actionable issues were found. The previous-review checks did not pass, so this assessment covers the full PR diff. Tests were not run during this review;
git diff --checkpassed.Diagram
Reviews (7) · Last reviewed commit: "test(notifications): cover Svix response..." · Reviewed by Greptile