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

fix: Fix bug in deleting pods. Fixes #2571 #2572

Merged
merged 2 commits into from
Apr 2, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Apr 2, 2020

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
  • Optional. I've added My organization is added to the USERS.md.
  • I've signed the CLA and required builds are green.

@alexec
Copy link
Contributor Author

alexec commented Apr 2, 2020

This bug was introduced in July 2019.

@alexec alexec modified the milestones: v2.7, v2.8 Apr 2, 2020
@@ -17,7 +17,7 @@ export interface WorkflowListItemProps {
}

function wfDuration(workflow: models.WorkflowStatus, now: moment.Moment) {
const endTime = workflow.finishedAt ? moment(workflow.finishedAt) : now
Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like master needed linting :(

@@ -458,7 +458,7 @@ func DeletePod(c kubernetes.Interface, podName, namespace string) error {
for attempt := 0; attempt < deleteRetries; attempt++ {
err = c.CoreV1().Pods(namespace).Delete(podName, &metav1.DeleteOptions{})
if err == nil || apierr.IsNotFound(err) {
break
return nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is what you get when you do not write tests

@codecov
Copy link

codecov bot commented Apr 2, 2020

Codecov Report

Merging #2572 into master will decrease coverage by 0.04%.
The diff coverage is 18.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2572      +/-   ##
==========================================
- Coverage   11.21%   11.17%   -0.05%     
==========================================
  Files          75       83       +8     
  Lines       31838    32598     +760     
==========================================
+ Hits         3571     3642      +71     
- Misses      27783    28457     +674     
- Partials      484      499      +15     
Impacted Files Coverage Δ
cmd/argo/commands/clustertemplate/delete.go 0.00% <0.00%> (ø)
cmd/argo/commands/clustertemplate/get.go 0.00% <0.00%> (ø)
cmd/argo/commands/clustertemplate/lint.go 0.00% <0.00%> (ø)
cmd/argo/commands/clustertemplate/list.go 0.00% <0.00%> (ø)
cmd/argo/commands/clustertemplate/root.go 0.00% <0.00%> (ø)
cmd/argo/commands/root.go 0.00% <0.00%> (ø)
cmd/argo/commands/submit.go 0.00% <0.00%> (ø)
config/config.go 33.33% <ø> (ø)
...rkflow/v1alpha1/cluster_workflow_template_types.go 0.00% <0.00%> (ø)
pkg/apis/workflow/v1alpha1/generated.pb.go 0.46% <ø> (+<0.01%) ⬆️
... and 30 more

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 cb739a6...fb7943d. Read the comment docs.

@alexec alexec merged commit 3d14614 into argoproj:master Apr 2, 2020
@alexec alexec deleted the fix-2571 branch April 2, 2020 20:00
@alexec alexec mentioned this pull request Apr 6, 2020
24 tasks
alexec added a commit that referenced this pull request Apr 6, 2020
simster7 pushed a commit that referenced this pull request Apr 7, 2020
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.

When trying to delete a pod, and we do not find it, this should not be an error
2 participants