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

Add idempotence tests #1536

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

saschagrunert
Copy link
Member

@saschagrunert saschagrunert commented Jul 30, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

Adding tests for RPC idempotence. Right now all runtimes fail them in various cases.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Needs:

Does this PR introduce a user-facing change?

Added idempotence critest cases for `StopPodSandbox`, `RemovePodSandbox`, `StopContainer`, `RemoveContainer` and `RemoveImage` RPCs.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 30, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert

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 Jul 30, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 30, 2024
saschagrunert added a commit to saschagrunert/containerd that referenced this pull request Jul 30, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
saschagrunert added a commit to saschagrunert/containerd that referenced this pull request Jul 31, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
k8s-infra-cherrypick-robot pushed a commit to k8s-infra-cherrypick-robot/containerd that referenced this pull request Jul 31, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
k8s-infra-cherrypick-robot pushed a commit to k8s-infra-cherrypick-robot/containerd that referenced this pull request Jul 31, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
saschagrunert added a commit to saschagrunert/containerd that referenced this pull request Jul 31, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
(cherry picked from commit a97b118)
saschagrunert added a commit to saschagrunert/containerd that referenced this pull request Jul 31, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
(cherry picked from commit a97b118)
Signed-off-by: Sascha Grunert <[email protected]>
saschagrunert added a commit to saschagrunert/containerd that referenced this pull request Jul 31, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
(cherry picked from commit a97b118)
@saschagrunert saschagrunert force-pushed the idempotence branch 2 times, most recently from 6cf605b to 8ab77e2 Compare July 31, 2024 07:35
saschagrunert added a commit to saschagrunert/containerd that referenced this pull request Jul 31, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
(cherry picked from commit a97b118)
Signed-off-by: Sascha Grunert <[email protected]>
Signed-off-by: Sascha Grunert <[email protected]>
@saschagrunert saschagrunert changed the title WIP: Add idempotence tests Add idempotence tests Aug 1, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 1, 2024
@saschagrunert
Copy link
Member Author

Green CI. PTAL @kubernetes-sigs/cri-tools-maintainers

@haircommander
Copy link
Contributor

great addition!
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 1, 2024
@k8s-ci-robot k8s-ci-robot merged commit 6d3e24e into kubernetes-sigs:master Aug 1, 2024
23 checks passed
@saschagrunert saschagrunert deleted the idempotence branch August 1, 2024 16:39
dbro86 pushed a commit to dbro86/containerd that referenced this pull request Aug 16, 2024
Similar to container removal, the stop of a container should be a noop if
the container has not been found.

Found during: kubernetes-sigs/cri-tools#1536

Signed-off-by: Sascha Grunert <[email protected]>
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants