fix(protoc-gen-elixir): emit one file per service under one_file_per_module - #63
Conversation
…module The escript groups a service's Service and Stub defmodules into a single foo_service.pb.ex; matching it removes the last known output divergence so the escript parity suite can assert byte identity unconditionally. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit e62d5bc. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning Review limit reached
Next review available in: 54 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe generator now combines each gRPC service’s ChangesgRPC service output
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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: 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 `@cmd/protoc-gen-elixir/one_file_per_module_test.go`:
- Around line 100-108: Extend the assertions in the test around
findGeneratedFile and the generated response to verify that no legacy separate
.Service or .Stub files are emitted. Assert the exact generated file set or
explicitly confirm the old service and stub paths are absent, while preserving
the existing content assertion for test/test_service.pb.ex.
🪄 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 Plus
Run ID: 26a54eba-56bd-4b84-860a-2c9ef07e6036
📒 Files selected for processing (2)
cmd/protoc-gen-elixir/generator.gocmd/protoc-gen-elixir/one_file_per_module_test.go
Content-only assertions would still pass if the legacy split .Service/.Stub files were emitted alongside the merged file. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
foo_service.pb.ex; the Go plugin split them into two files, which was the last known output divergence between the two implementations.one_file_per_module+plugins=grpcand the full all-flags combination.