Skip to content

Conversation

agaudreault
Copy link
Member

@agaudreault agaudreault commented Jun 11, 2025

This PR refactor how the sources and revisions are handled during the sync. Multi-source feature and individual bugfixes added complexity to the code that makes it hard to understand and can be simplified.

Multiple refractors and previous bugfixes are linked to this PR and were prerequisites for this refactor.
This PR relates to some of recent code changes made to self heal and sync logic.

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Copy link

bunnyshell bot commented Jun 11, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
@agaudreault agaudreault changed the title fix sync operation with no status fix(sync): operations in errors without status cause infinite auto-sync loop Jun 11, 2025
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
@agaudreault agaudreault added this to the v3.1 milestone Jun 11, 2025
@agaudreault agaudreault marked this pull request as ready for review June 11, 2025 22:59
@agaudreault agaudreault requested a review from a team as a code owner June 11, 2025 22:59
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

Attention: Patch coverage is 97.67442% with 2 lines in your changes missing coverage. Please review.

Project coverage is 60.09%. Comparing base (733350c) to head (3b5ee22).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
controller/appcontroller.go 90.00% 1 Missing ⚠️
controller/sync.go 97.72% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #23356      +/-   ##
==========================================
- Coverage   60.17%   60.09%   -0.08%     
==========================================
  Files         346      346              
  Lines       59295    59248      -47     
==========================================
- Hits        35680    35608      -72     
- Misses      20748    20770      +22     
- Partials     2867     2870       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@andrii-korotkov andrii-korotkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly lgtm

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
…ared-resource-master

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
@github-project-automation github-project-automation bot moved this from Ready for final review to Changes Requested in Argo CD Review Jun 27, 2025
…ared-resource-master

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Copy link
Member

@crenshaw-dev crenshaw-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small thing, otherwise lgtm

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
@agaudreault agaudreault requested a review from crenshaw-dev July 15, 2025 16:03
@agaudreault agaudreault changed the title fix(sync): operations in errors without status cause infinite auto-sync loop chore(refactor): sync operations state and multi-source handling Jul 15, 2025
@agaudreault agaudreault merged commit 9dfa9db into argoproj:master Jul 16, 2025
30 checks passed
@github-project-automation github-project-automation bot moved this from Changes Requested to Done in Argo CD Review Jul 16, 2025
enneitex pushed a commit to enneitex/argo-cd that referenced this pull request Aug 24, 2025
…nc loop (argoproj#23356)

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: enneitex <etienne.divet@gmail.com>
downfa11 pushed a commit to downfa11/argo-cd that referenced this pull request Aug 25, 2025
…nc loop (argoproj#23356)

Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants