Skip to content

Conversation

ppapapetrou76
Copy link
Contributor

@ppapapetrou76 ppapapetrou76 commented Jul 4, 2025

The UI message was misleading when an operation was terminated due to a controller sync timeout, and there were pending retries.

I'm improving the message to explain to the user why the operation was terminated, as we do in other cases - Attaching also images after the change

image

Eventually, the UI will be like this when all retries have been completed

image

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

Closes #23523

@ppapapetrou76 ppapapetrou76 requested a review from a team as a code owner July 4, 2025 08:41
Copy link

bunnyshell bot commented Jul 4, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

…ller sync timeout with pending retries

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
@ppapapetrou76 ppapapetrou76 force-pushed the sync-timeout-better-ui-msg branch from 790333c to 89ed50c Compare July 4, 2025 08:43
Copy link

codecov bot commented Jul 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.25%. Comparing base (3b1ac4b) to head (de4b3c1).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #23657      +/-   ##
==========================================
- Coverage   60.29%   60.25%   -0.04%     
==========================================
  Files         346      346              
  Lines       59192    59192              
==========================================
- Hits        35691    35668      -23     
- Misses      20631    20654      +23     
  Partials     2870     2870              

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

@agaudreault agaudreault merged commit a90c545 into argoproj:master Jul 4, 2025
32 checks passed
@reggie-k
Copy link
Member

reggie-k commented Jul 7, 2025

/cherry-pick release-3.0

gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Jul 7, 2025
…ontroller sync timeout (#23657)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
@reggie-k
Copy link
Member

reggie-k commented Jul 7, 2025

/cherry-pick release-3.1

gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Jul 7, 2025
…ontroller sync timeout (#23657)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
@reggie-k
Copy link
Member

reggie-k commented Jul 7, 2025

/cherry-pick release-2.14

gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Jul 7, 2025
…ontroller sync timeout (#23657)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
reggie-k pushed a commit that referenced this pull request Jul 7, 2025
…ontroller sync timeout (cherry-pick #23657) (#23671)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
Co-authored-by: Papapetrou Patroklos <1743100+ppapapetrou76@users.noreply.github.com>
reggie-k pushed a commit that referenced this pull request Jul 7, 2025
…ontroller sync timeout (cherry-pick #23657) (#23673)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
Co-authored-by: Papapetrou Patroklos <1743100+ppapapetrou76@users.noreply.github.com>
reggie-k pushed a commit that referenced this pull request Jul 9, 2025
…ontroller sync timeout (cherry-pick #23657) (#23672)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
Co-authored-by: Papapetrou Patroklos <1743100+ppapapetrou76@users.noreply.github.com>
dsuhinin pushed a commit to dsuhinin/argo-cd that referenced this pull request Jul 9, 2025
…ontroller sync timeout (argoproj#23657)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
ManishTechie pushed a commit to ManishTechie/argo-cd that referenced this pull request Jul 9, 2025
…ontroller sync timeout (argoproj#23657)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
Signed-off-by: Manish Kumar <mnskumar07@gmail.com>
@@ -1471,7 +1471,7 @@ func (ctrl *ApplicationController) processRequestedAppOperation(app *appv1.Appli
} else {
state.Phase = synccommon.OperationRunning
state.RetryCount++
state.Message = fmt.Sprintf("%s. Retrying attempt #%d at %s.", state.Message, state.RetryCount, retryAt.Format(time.Kitchen))
state.Message = fmt.Sprintf("%s due to application controller sync timeout. Retrying attempt #%d at %s.", state.Message, state.RetryCount, retryAt.Format(time.Kitchen))
Copy link
Member

Choose a reason for hiding this comment

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

Revisiting this after the refactor to this method on master. It seems like it is adding "due to application controller sync timeout." to every failures, even the ones unrelated to the timeout.

enneitex pushed a commit to enneitex/argo-cd that referenced this pull request Aug 24, 2025
…ontroller sync timeout (argoproj#23657)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
Signed-off-by: enneitex <etienne.divet@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync timeout does not work.
4 participants