Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

rphillips
Copy link
Member

@rphillips rphillips commented Feb 10, 2021

What type of PR is this?
/kind flake
/kind cleanup

What this PR does / why we need it:
#98424 introduced a unit test called TestSyncPodsDeletesWhenSourcesAreReadyPerQOS. This unit test has a subtle flake in it since the podContainerManager calls Delete() with a go routine.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Verify:

go test -c ./pkg/kubelet
stress ./kubelet.test -test.run TestSyncPodsDeletesWhenSourcesAreReadyPerQOS -test.v

Does this PR introduce a user-facing change?:


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added kind/flake Categorizes issue or PR as related to a flaky test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/kubelet sig/node Categorizes an issue or PR as relevant to SIG Node. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 10, 2021
@rphillips rphillips force-pushed the fixes/race_TestSyncPodsDeletesWhenSourcesAreReadyPerQOS branch from 103b006 to 86f7ade Compare February 10, 2021 00:20
Comment on lines 456 to 457
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to defer these for just the block above? With this change, if something explodes in the code above these won't get called, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

The test doesn't return early... so these should always get called.

Copy link
Member

@ehashman ehashman left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 10, 2021
@ehashman
Copy link
Member

/release-note-none
/priority important-soon
/triage accepted

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 10, 2021
@ehashman
Copy link
Member

@rphillips
Copy link
Member Author

yeah, it did... let me see.

@rphillips rphillips force-pushed the fixes/race_TestSyncPodsDeletesWhenSourcesAreReadyPerQOS branch from 86f7ade to 219303f Compare February 10, 2021 01:32
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 10, 2021
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 10, 2021
@rphillips rphillips force-pushed the fixes/race_TestSyncPodsDeletesWhenSourcesAreReadyPerQOS branch from 219303f to bb29547 Compare February 10, 2021 01:39
@rphillips
Copy link
Member Author

rphillips commented Feb 10, 2021

956 runs so far, 0 failures
1322 runs so far, 0 failures
2008 runs so far, 0 failures

@rphillips
Copy link
Member Author

looks like an unrelated flake

/test pull-kubernetes-e2e-kind

@rphillips
Copy link
Member Author

/test pull-kubernetes-e2e-kind

@rphillips rphillips force-pushed the fixes/race_TestSyncPodsDeletesWhenSourcesAreReadyPerQOS branch from bb29547 to 29fdbb0 Compare February 10, 2021 15:21
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 10, 2021
@rphillips rphillips force-pushed the fixes/race_TestSyncPodsDeletesWhenSourcesAreReadyPerQOS branch from 29fdbb0 to c70ecc2 Compare February 10, 2021 15:34
@rphillips rphillips force-pushed the fixes/race_TestSyncPodsDeletesWhenSourcesAreReadyPerQOS branch from c70ecc2 to ee8ea1b Compare February 10, 2021 15:36
@sjenning
Copy link
Contributor

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 10, 2021
@rphillips
Copy link
Member Author

/retest

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rphillips, sjenning

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 10, 2021
@rphillips
Copy link
Member Author

/test pull-kubernetes-e2e-kind

@k8s-ci-robot k8s-ci-robot merged commit dcec526 into kubernetes:master Feb 10, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/kubelet cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/flake Categorizes issue or PR as related to a flaky test. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/node Categorizes an issue or PR as relevant to SIG Node. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants