Skip to content

Cri integration cleanup#5287

Merged
AkihiroSuda merged 2 commits intocontainerd:mainfrom
claudiubelu:cri-integration-cleanup
Jun 25, 2021
Merged

Cri integration cleanup#5287
AkihiroSuda merged 2 commits intocontainerd:mainfrom
claudiubelu:cri-integration-cleanup

Conversation

@claudiubelu
Copy link
Copy Markdown
Contributor

@claudiubelu claudiubelu commented Mar 30, 2021

Most of the tests creating and using Pod Sandboxes in the same way. We can create a common function that will do that for us, so we can have less duplicated code, and make it easier to add new tests in the future.

Most tests require pulling a test image, and most of them are doing it in the same way. A function PulImageWithCleanup was introduced in a previous commit. Using it will reduce the amount of duplicated code.

@k8s-ci-robot
Copy link
Copy Markdown

Hi @claudiubelu. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mikebrow
Copy link
Copy Markdown
Member

hello thanks for the PR work! Can we split this into a separate PR for the two refactoring commits and one for the windows integration work..

FYI on the commits we are limited to one 72 char line for the commit header description..

@claudiubelu
Copy link
Copy Markdown
Contributor Author

claudiubelu commented Mar 30, 2021

hello thanks for the PR work! Can we split this into a separate PR for the two refactoring commits and one for the windows integration work..

FYI on the commits we are limited to one 72 char line for the commit header description..

Hello. The Windows integration work PR can be seen here: #5163

I've included that commit here to make sure that nothing breaks with any other CI, and that commit was necessary for that.

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch 6 times, most recently from 97642ea to ce90f51 Compare April 6, 2021 14:29
@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch 2 times, most recently from e69fd0b to d0429a2 Compare April 12, 2021 19:34
@claudiubelu
Copy link
Copy Markdown
Contributor Author

/retest

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from d0429a2 to 570f963 Compare April 13, 2021 15:35
@claudiubelu claudiubelu changed the title WIP: Cri integration cleanup Cri integration cleanup Apr 13, 2021
@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from 570f963 to 7d09576 Compare April 19, 2021 11:45
@kzys
Copy link
Copy Markdown
Member

kzys commented Apr 21, 2021

I think we will merge #5403 before this change.

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch 3 times, most recently from 64c6014 to c55fb4c Compare April 30, 2021 10:10
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Apr 30, 2021

Build succeeded.

@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from k8s-ci-robot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
@containerd containerd deleted a comment from theopenlab-ci Bot Apr 30, 2021
Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@kzys
Copy link
Copy Markdown
Member

kzys commented May 3, 2021

/ok-to-test

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 13, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from 763b50c to 523c83b Compare May 13, 2021 15:20
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 13, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from 523c83b to 294a521 Compare May 17, 2021 10:48
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 17, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from 294a521 to 3ac9a0e Compare May 17, 2021 13:36
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 17, 2021

Build succeeded.

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

see scope comment

Comment thread integration/container_stats_test.go Outdated
Comment thread integration/container_stats_test.go Outdated
Comment thread integration/container_stats_test.go Outdated
Comment thread integration/container_stats_test.go Outdated
@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from 3ac9a0e to 0a46545 Compare May 18, 2021 09:29
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 18, 2021

Build succeeded.

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM on green

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from 0a46545 to 2c2710c Compare May 19, 2021 10:25
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 19, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from 2c2710c to f937885 Compare May 19, 2021 10:51
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 19, 2021

Build succeeded.

Most of the tests creating and using Pod Sandboxes in the same way. We can create
a common function that will do that for us, so we can have less duplicated code,
and make it easier to add new tests in the future.

Signed-off-by: Claudiu Belu <[email protected]>
A previous commit introduced EnsureImageExists, which ensures that a particular image
already exists. It also deduplicates the image pulling code. Some tests missed this
update.

Signed-off-by: Claudiu Belu <[email protected]>
@claudiubelu claudiubelu force-pushed the cri-integration-cleanup branch from f937885 to cabe677 Compare June 3, 2021 16:02
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jun 3, 2021

Build succeeded.

@claudiubelu claudiubelu requested a review from mikebrow June 22, 2021 12:07
@AkihiroSuda AkihiroSuda merged commit e1f2865 into containerd:main Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants