-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix: improves the ui message when an operation is terminated due to controller sync timeout #23657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: improves the ui message when an operation is terminated due to controller sync timeout #23657
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
…ller sync timeout with pending retries Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
790333c
to
89ed50c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
/cherry-pick release-3.0 |
…ontroller sync timeout (#23657) Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
/cherry-pick release-3.1 |
…ontroller sync timeout (#23657) Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
/cherry-pick release-2.14 |
…ontroller sync timeout (#23657) Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
…ontroller sync timeout (argoproj#23657) Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
…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)) |
There was a problem hiding this comment.
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.
…ontroller sync timeout (argoproj#23657) Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com> Signed-off-by: enneitex <etienne.divet@gmail.com>
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
Eventually, the UI will be like this when all retries have been completed
Checklist:
Closes #23523