Skip to content

fix: generate coordinator proto in hybrid mode#1970

Merged
yottahmd merged 1 commit intomainfrom
fix/coordinator-proto-hybrid
Apr 6, 2026
Merged

fix: generate coordinator proto in hybrid mode#1970
yottahmd merged 1 commit intomainfrom
fix/coordinator-proto-hybrid

Conversation

@yottahmd
Copy link
Copy Markdown
Collaborator

@yottahmd yottahmd commented Apr 6, 2026

Summary

  • generate proto/coordinator/v1/coordinator.pb.go in API_HYBRID mode instead of the default protobuf Go API level
  • regenerate the coordinator protobuf output so coordinator RPC messages use the hybrid code path
  • keep make protoc aligned with the checked-in coordinator output so future regenerations do not reintroduce the race failure

Root cause

The coordinator protobuf Go output generated with the default API level triggered checkptr panics under go test -race on the affected coordinator and distributed test paths. The generated coordinator types needed to be emitted in hybrid mode for this toolchain.

Impact

  • fixes the failing race test job in CI for coordinator and distributed worker coverage
  • makes the protobuf generation path reproducible so local regeneration matches the committed fix

Validation

  • make protoc
  • go test -race ./internal/service/coordinator -count=1
  • go test -race ./internal/service/worker -count=1
  • go test -race ./internal/intg/distr -run '^TestBaseConfig_EnvVarsExpandOnWorker$' -count=1 -timeout=5m

Summary by CodeRabbit

  • Chores
    • Updated build configuration for protocol buffer code generation to enhance compatibility handling during compilation.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 68300cfa-6399-4265-a413-db50901c42da

📥 Commits

Reviewing files that changed from the base of the PR and between 62ebc8b and 91d04e1.

⛔ Files ignored due to path filters (1)
  • proto/coordinator/v1/coordinator.pb.go is excluded by !**/*.pb.go
📒 Files selected for processing (1)
  • Makefile

📝 Walkthrough

Walkthrough

The Makefile's protoc target now includes an additional --go_opt flag specifying apilevelMproto/coordinator/v1/coordinator.proto=API_HYBRID for Go protocol buffer code generation of coordinator protocol buffer files.

Changes

Cohort / File(s) Summary
Build Configuration
Makefile
Added --go_opt=apilevelMproto/coordinator/v1/coordinator.proto=API_HYBRID option to the protoc invocation for proto/coordinator/v1/*.proto files in the protobuf code generation target.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: generate coordinator proto in hybrid mode' clearly and specifically summarizes the main change in the pull request, which is adding the API_HYBRID option to the protobuf code generation for coordinator protos.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/coordinator-proto-hybrid

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@yottahmd yottahmd merged commit 34cc3a3 into main Apr 6, 2026
4 checks passed
@yottahmd yottahmd deleted the fix/coordinator-proto-hybrid branch April 6, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant