argo-cd icon indicating copy to clipboard operation
argo-cd copied to clipboard

fix(appset): progressive sync loop when applciation has sync errors

Open agaudreault opened this issue 6 months ago • 2 comments

agaudreault avatar May 28 '25 16:05 agaudreault

:x: Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • :rocket: /bns:deploy to deploy the environment

bunnyshell[bot] avatar May 28 '25 16:05 bunnyshell[bot]

Codecov Report

:x: Patch coverage is 84.43114% with 26 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 61.11%. Comparing base (6f6c39d) to head (fb51ed7). :warning: Report is 45 commits behind head on master.

Files with missing lines Patch % Lines
...cationset/controllers/applicationset_controller.go 84.43% 26 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #23187      +/-   ##
==========================================
+ Coverage   60.29%   61.11%   +0.81%     
==========================================
  Files         350      350              
  Lines       59959    60798     +839     
==========================================
+ Hits        36155    37155    +1000     
+ Misses      20909    20748     -161     
  Partials     2895     2895              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jun 02 '25 21:06 codecov[bot]

Need to re-run tests due to flakiness

andrii-korotkov avatar Jun 13 '25 01:06 andrii-korotkov

Sort ApplicationStatus by application name so it is consistent Sort the conditions by type so it is consistent

I only see code to sort conditions, and that already existed.

Do we need tests for these?

Sort ApplicationStatus by application name so it is consistent Sort the conditions by type so it is consistent

I only see code to sort conditions, and that already existed.

Do we need tests for these?

There is a call to sort.Slice(applicationSet.Status.ApplicationStatus and sort.Strings(errorApps). The previous code to update conditions was not always calling SetConditions().

agaudreault avatar Jun 13 '25 19:06 agaudreault

:x: Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • :rocket: /bns:deploy to deploy the environment

bunnyshell[bot] avatar Jun 13 '25 20:06 bunnyshell[bot]

@ranakan19 Sorting of the UI is not impacted by changes in this PR. Do you see visual changes with the current version?

agaudreault avatar Jun 16 '25 13:06 agaudreault

@ranakan19 Sorting of the UI is not impacted by changes in this PR. Do you see visual changes with the current version?

You're right, this is not impacted by your changes. I was testing with app names containing numericals in my previous setup, so when I switched to different naming conventions for this test, the UI ordering changed and I incorrectly attributed it to the PR. Thanks for the clarification!

ranakan19 avatar Jun 18 '25 03:06 ranakan19

@ranakan19 Thanks for the review and testing this out :) I just pushed updates to adress 3) 4) and 5). For 2) I don't want to introduce additional refactor to this PR, so I agree that another PR would be better.

agaudreault avatar Sep 02 '25 14:09 agaudreault

This was accidentally auto-merged while I was working on some branch protection changes. I've reverted the change on the master branch. Please reopen the PR.

crenshaw-dev avatar Sep 04 '25 13:09 crenshaw-dev