fix: add SyncError condition to Argo CD application health checks#5414
fix: add SyncError condition to Argo CD application health checks#5414bmbferreira wants to merge 1 commit intoakuity:mainfrom
Conversation
✅ Deploy Preview for docs-kargo-io canceled.
|
- Introduced ApplicationConditionSyncError to represent synchronization errors. - Updated health checker tests to account for the new SyncError condition, increasing the issue count in assertions. - Modified health assessment logic to include SyncError in the evaluation of application health. Signed-off-by: Bruno Ferreira <bmibferreira@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5414 +/- ##
=======================================
Coverage 56.12% 56.12%
=======================================
Files 411 411
Lines 30055 30055
=======================================
Hits 16868 16868
Misses 12213 12213
Partials 974 974 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Perhaps looking at |
Probably, but that might require more changes. This seems to be a reasonable change to fix this problem. I would say that |
hiddeco
left a comment
There was a problem hiding this comment.
Thanks for looking into this, and proposing a fix.
I believe adding this condition could indeed improve things, but I would need a second sign-off on this from either @jessesuen or @krancour.
Shouldn't #5490 have fixed #5166? It seems the root cause of #5166 was because of the use of I'm not sure adding the check for |
@jessesuen expressed some skepticism about this, so I'm dismissing this approval until I've dug into it more.
This should fix #5166. Also noticed this comment saying that we were not sure about all the error states that should be considered here and I think it's important to have SyncError because that's the status we will get if we are using sync waves on argo and one of the "waves" fail (for example running database migrations in the first step, as I reference here).