Skip to content
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

Issue #1665 - Stuck processor on App Controller after deleting application with incomplete operation #1666

Merged
merged 1 commit into from
May 30, 2019

Conversation

alexmt
Copy link
Collaborator

@alexmt alexmt commented May 30, 2019

No description provided.

@alexmt alexmt requested review from alexec and jessesuen May 30, 2019 19:21
@@ -551,6 +551,10 @@ func (ctrl *ApplicationController) setOperationState(app *appv1.Application, sta
appClient := ctrl.applicationClientset.ArgoprojV1alpha1().Applications(ctrl.namespace)
_, err = appClient.Patch(app.Name, types.MergePatchType, patchJSON)
if err != nil {
// Stop retrying updating deleted application
if apierr.IsNotFound(err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

No test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right. Added the test

@codecov
Copy link

codecov bot commented May 30, 2019

Codecov Report

Merging #1666 into master will decrease coverage by 0.24%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1666      +/-   ##
==========================================
- Coverage   32.62%   32.38%   -0.25%     
==========================================
  Files          71       71              
  Lines       11319    11247      -72     
==========================================
- Hits         3693     3642      -51     
+ Misses       7084     7076       -8     
+ Partials      542      529      -13
Impacted Files Coverage Δ
controller/appcontroller.go 40.03% <100%> (+2.53%) ⬆️
util/kube/ctl.go 0% <0%> (-8.29%) ⬇️
server/account/account.go 62.5% <0%> (-5.69%) ⬇️
server/project/project.go 60.71% <0%> (-1.79%) ⬇️
server/server.go 46.04% <0%> (-0.94%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2b6e0f...456fecb. Read the comment docs.

…g application with incomplete operation
@alexmt alexmt force-pushed the 1665-stuck-operation branch from 375aa1d to 456fecb Compare May 30, 2019 19:39
@alexmt alexmt merged commit ecdf942 into argoproj:master May 30, 2019
@alexmt alexmt deleted the 1665-stuck-operation branch July 15, 2019 19:54
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.

2 participants