chore: support full rendered diff for new version#1072
chore: support full rendered diff for new version#1072adityachoudhari26 merged 1 commit intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes modify the Argo planner to treat missing current manifests (gRPC Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 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.
Pull request overview
This PR fixes ArgoCD plan generation for deployments with no existing versions by treating “current manifests” as empty when the underlying ArgoCD application doesn’t exist yet, allowing the plan to return a full rendered diff (all proposed manifests).
Changes:
- Handle
grpc/codes.NotFoundfromGetManifestsfor the current app by continuing with an empty current manifest set. - Add a unit test covering the “first version / current app not found” behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
apps/workspace-engine/pkg/jobagents/argo/argocd_plan.go |
Treats NotFound when fetching current manifests as “no current manifests” so the diff returns all proposed output. |
apps/workspace-engine/pkg/jobagents/argo/argoapp_test.go |
Adds coverage ensuring plans succeed and return full proposed output when current manifests return NotFound. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fixes #1068
Summary by CodeRabbit
Bug Fixes
Tests