feat(messaging): add workflow planner#4076
Conversation
Signed-off-by: San Dang <sdang@nvidia.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
PR Review AdvisorRecommendation: blocked This is an automated advisory review. A human maintainer must make the final merge decision. Limitations: Review is based on the provided trusted context plus read-only inspection of changed files; no tests or scripts were executed.; Required E2E job results for channels-stop-start-e2e, channels-add-remove-e2e, and messaging-providers-e2e were not available in the provided status rollup.; Review thread state was reported as unavailable by the deterministic gate context.; This PR is stacked on open manifest compiler work (#4069), so final drift depends on the landing state of the base branch. Full advisor summaryPR Review AdvisorBase: The workflow planner implementation and unit coverage look aligned with #3995, but the E2E Advisor marked three messaging lifecycle/provider E2Es as required and no evidence shows they passed for head SHA 4a910ed. Gate status
🔴 Blockers
🟡 Warnings
🔵 Suggestions
Acceptance coverage
Security review
Test / E2E status
✅ What looks good
Review completeness
|
Summary
Adds the phase-1 messaging workflow planner for onboard, channel add/remove/start/stop, and rebuild flows. The planner computes configured, active, and disabled channel state before delegating to the manifest compiler, keeping #3995 architecture-only and out of production CLI paths.
Related Issue
Fixes #3995
Changes
MessagingWorkflowPlannerwith pureplanOnboard,planAddChannel,planRemoveChannel,planStartChannel,planStopChannel, andplanRebuildmethods.MessagingCompilerWorkflowto the planner workflows and restrict enrollment hooks to selected onboard/add-channel plans.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesmake docsbuilds without warnings (doc changes only)Additional verification performed:
npm test -- --project cli src/lib/messagingpasses.npm run typecheck:clipasses.npm run lint -- src/lib/messagingpasses with the existing unrelated warning insrc/lib/onboard/child-exit-tracker.test.ts.npm run source-shape:checkpasses.git diff --checkpasses.Signed-off-by: San Dang sdang@nvidia.com