Skip to content

integration: Adds resource limit tests#5485

Closed
claudiubelu wants to merge 2 commits intocontainerd:mainfrom
claudiubelu:integration/resource-limits
Closed

integration: Adds resource limit tests#5485
claudiubelu wants to merge 2 commits intocontainerd:mainfrom
claudiubelu:integration/resource-limits

Conversation

@claudiubelu
Copy link
Copy Markdown
Contributor

@claudiubelu claudiubelu commented May 11, 2021

Moves TestUpdateContainerResources_MemorySwap and associated functions to container_update_resources_linux_test.go. They are Linux-specific, requiring cgroups. We're doing this in order to allow the other tests to have Windows support afterwards.

Adds Windows support to the TestUpdateContainerResources_MemoryLimit test.

Adds test that ensure the CPU limits on the containers can be updated and are enforced.

Signed-off-by: Claudiu Belu [email protected]

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 11, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@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.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch 2 times, most recently from d0be410 to 7c54c16 Compare May 11, 2021 15:38
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 11, 2021

Build succeeded.

Comment thread integration/container_limits_test.go Outdated
@claudiubelu claudiubelu force-pushed the integration/resource-limits branch 2 times, most recently from a945b53 to 84d6d4a Compare May 17, 2021 15:50
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 17, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 84d6d4a to d533558 Compare May 17, 2021 17:39
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 17, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from d533558 to d529779 Compare May 17, 2021 18:50
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 17, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from d529779 to c177fa2 Compare May 18, 2021 10:54
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 18, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from c177fa2 to 8f62430 Compare May 18, 2021 13:42
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 18, 2021

Build succeeded.

@claudiubelu claudiubelu changed the title WIP: integration: Adds resource limit tests integration: Adds resource limit tests May 18, 2021
@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 8f62430 to a837007 Compare May 18, 2021 14:13
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 18, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch 2 times, most recently from 2c489e5 to 675ca50 Compare May 19, 2021 10:36
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 19, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 675ca50 to 1af9ce7 Compare May 19, 2021 13:04
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 19, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 1af9ce7 to 6feb1de Compare May 19, 2021 13:53
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 19, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 6feb1de to 3fd77b4 Compare May 19, 2021 14:32
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented May 19, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 292ebc1 to 1ce837f Compare August 1, 2021 12:10
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 1, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 1ce837f to 7ecbc6e Compare August 4, 2021 14:08
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 4, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 7ecbc6e to 130e8b7 Compare August 4, 2021 20:14
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 4, 2021

Build succeeded.

@claudiubelu claudiubelu changed the title WIP: integration: Adds resource limit tests integration: Adds resource limit tests Aug 11, 2021
@claudiubelu
Copy link
Copy Markdown
Contributor Author

To a certain degree your test contribution combines some elements of existing integration tests into a new integration bucket (see container_stats_test, container_update_resources_test, ...). Was there an issue we are tracking/resolving that we can review this against?

Updated a few things and based everything else on the container_update_resources_test.go. This now enables those tests to run for Windows as well, and adds tests for CPU limits.

The plan was to add Windows support for this from the start (#5163), but we couldn't at that time as we were waiting for a few things to get resolved first. Now, we need this to merge too: #5778

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 13, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 7037aa3 to 39c9b17 Compare September 14, 2021 13:05
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 14, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 39c9b17 to 80ae954 Compare September 15, 2021 08:11
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 15, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 80ae954 to 1219cb4 Compare September 15, 2021 12:43
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 15, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 1219cb4 to ba38010 Compare September 16, 2021 07:25
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 16, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from ba38010 to 2221239 Compare October 4, 2021 10:53
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 4, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 2221239 to 18f0373 Compare October 18, 2021 14:31
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 18, 2021

Build succeeded.

@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 18f0373 to 3f5d965 Compare January 3, 2022 08:53
Moves TestUpdateContainerResources_MemorySwap and associated functions
to container_update_resources_linux_test.go. They are Linux-specific,
requiring cgroups. We're doing this in order to allow the other tests
to have Windows support afterwards.

Signed-off-by: Claudiu Belu <[email protected]>
Adds Windows support to the TestUpdateContainerResources_MemoryLimit test.

Adds test that ensure the CPU limits on the containers can be updated and are
enforced.

Signed-off-by: Claudiu Belu <[email protected]>
@claudiubelu claudiubelu force-pushed the integration/resource-limits branch from 3f5d965 to 92da520 Compare January 3, 2022 09:20
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jan 3, 2022

Build succeeded.

@dmcgowan
Copy link
Copy Markdown
Member

Closing due to inactivity, feel free to re-open the pull request anytime if you continue working on this.

@dmcgowan dmcgowan closed this Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants