refactor: extract process wiring modules#2188
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughRefactors internal/cmd to extract server, scheduler, coordinator, DAG store, and agent store construction into internal/cmd/process; context.go and worker wiring now delegate to these new constructors, and tests/embedded integration updated accordingly. ChangesComponent wiring consolidation
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 `@internal/cmd/process/worker.go`:
- Around line 24-35: The static coordinator config created with
coordinator.DefaultConfig() populates TLS/insecure fields but omits the peer
retry settings; update coordCliCfg before calling coordCliCfg.Validate() to copy
cfg.Core.Peer.MaxRetries and cfg.Core.Peer.RetryInterval into coordCliCfg (e.g.,
set coordCliCfg.MaxRetries = cfg.Core.Peer.MaxRetries and
coordCliCfg.RetryInterval = cfg.Core.Peer.RetryInterval) so the static worker
path respects the configured retry behavior.
🪄 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
Run ID: e946be19-183f-4be9-b4fd-b76ef1395083
📒 Files selected for processing (9)
internal/cmd/context.gointernal/cmd/process/agent_stores.gointernal/cmd/process/coordinator.gointernal/cmd/process/dag_store.gointernal/cmd/process/scheduler.gointernal/cmd/process/server.gointernal/cmd/process/worker.gointernal/cmd/worker.gointernal/cmd/worker_test.go
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
29ef533 to
3d2c3f8
Compare
3d2c3f8 to
6a9e342
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary
internal/cmd/processmodules for server, scheduler, worker, DAG store, coordinator, and agent storescmd.Contextas a thin adapter around role-specific process wiringTesting
make lintmake test TEST_TARGET=./internal/cmd/...go test ./internal/cmd/... -count=1git diff --checkSummary by CodeRabbit
Refactor
Tests