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

raystack / compass / 23675662761

28 Mar 2026 02:39AM UTC coverage: 15.982% (-2.5%) from 18.531%
23675662761

Pull #246

github

ravisuhag
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
Pull Request #246: feat: migrate from gRPC + grpc-gateway to Connect RPC

413 of 9835 new or added lines in 34 files covered. (4.2%)

58 existing lines in 12 files now uncovered.

5479 of 34283 relevant lines covered (15.98%)

3.26 hits per line

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

0.0
/proto/google/api/annotations.pb.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