• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

raystack / compass / 23676598061

28 Mar 2026 03:34AM UTC coverage: 20.988% (+2.5%) from 18.531%
23676598061

push

github

web-flow
feat: migrate to Connect RPC (#246)

* feat: migrate from gRPC + grpc-gateway to Connect RPC

This migration replaces the gRPC + grpc-gateway setup with Connect RPC,
following the patterns established by raystack/frontier.

Key changes:
- Single port (8080) instead of dual ports (HTTP + gRPC)
- Native HTTP support via Connect instead of grpc-gateway reverse proxy
- New interceptors in pkg/server/interceptor/ replacing pkg/grpc_interceptor/
- Buf v2 proto generation with connectrpc/go plugin

Server changes:
- Use h2c.NewHandler for HTTP/2 cleartext support
- Single http.ServeMux with Connect service handlers
- gRPC reflection support via connectrpc/grpcreflect

Handler changes:
- Signatures use connect.Request[T] and connect.Response[T] wrappers
- Access request fields via req.Msg.GetXxx()
- Return responses via connect.NewResponse(&pb.Response{})
- Errors via connect.NewError(connect.CodeXxx, err)

Client changes:
- Connect client with HTTP transport
- Requests wrapped with connect.NewRequest()
- Responses accessed via resp.Msg

Test changes:
- Updated to use connect.NewRequest() for handler calls
- Fixed error checking: err == nil for success (not connect.CodeOf)
- connect.CodeOf(nil) returns CodeUnknown, not 0

* chore: regenerate protos from updated proton

Update PROTON_COMMIT to 7121b18 which removes grpc-gateway
annotations from the compass proto definitions.

This results in cleaner generated code with 1770 fewer lines
as the OpenAPI and HTTP annotations are no longer included.

Related: https://github.com/raystack/proton/pull/459

* chore: clean up proto gen and simplify import paths

Remove stale generated dependency stubs (google/api, validate,
openapiv2, swagger) that are no longer needed. Flatten proto output
from proto/raystack/compass/v1beta1/ to proto/compassv1beta1/ by
switching buf.gen.yaml from paths=source_relative to module mode
with an explicit go_package override.

* chore: remove remaining gRPC artifacts after Connect RPC migra... (continued)

417 of 1659 new or added lines in 29 files covered. (25.14%)

56 existing lines in 12 files now uncovered.

5473 of 26077 relevant lines covered (20.99%)

4.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cli/server.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc