Fix migrateFieldManagersToSSA on update path#496
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 (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe apply call path was refactored: callers now pass both desired and actual objects to Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 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 unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/objects_test.go`:
- Around line 406-407: The cleanup call currently swallows all errors from
Client.Delete(ctx, configMap.DeepCopy()); change it to capture the returned
error (err := Client.Delete(...)) and only ignore apierrors.IsNotFound(err); for
any other non-nil error fail the test (e.g., t.Fatalf or require.NoError) so
setup failures surface before Reconcile runs; reference the Client.Delete call
and ensure you import/use apierrors.IsNotFound for the check.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ac12445a-0d54-4994-8f50-b52bd1234c7d
📒 Files selected for processing (2)
machinery/objects.gotest/objects_test.go
69daf0c to
4810290
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #496 +/- ##
=======================================
Coverage 71.90% 71.90%
=======================================
Files 35 35
Lines 2983 2983
=======================================
Hits 2145 2145
Misses 710 710
Partials 128 128 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Fixes migrateFieldManagersToSSA when called in the update path.
resolves #495
Change Type
Bug Fix
Check List Before Merging
Additional Information