Skip to content

contrib/checkpoint: increase timeouts to 30s#13436

Merged
samuelkarp merged 1 commit into
containerd:mainfrom
samuelkarp:checkpoint-flake
May 21, 2026
Merged

contrib/checkpoint: increase timeouts to 30s#13436
samuelkarp merged 1 commit into
containerd:mainfrom
samuelkarp:checkpoint-flake

Conversation

@samuelkarp

Copy link
Copy Markdown
Member

Under slow network conditions (e.g., simulated 2 Mbps ingress bandwidth limits in CI), restoring a container from a checkpoint can fail if it requires pulling the base image again.

During restore, crictl create is called. In test_from_oci, it used a 10-second timeout (crictl -t 10s create). Over a 2 Mbps connection, pulling the 2.8MB Alpine layer takes ~12-13 seconds, causing the operation to exceed the timeout and fail with context canceled.

Increase the timeouts in both test_from_archive and test_from_oci to 30 seconds. This ensures the base image pull can complete successfully even in constrained CI environments.

Tested:
Ran the CRI integration tests on a GCE VM under a simulated 2 Mbps ingress bandwidth limit using traffic control (tc). Verified that both test_from_archive and test_from_oci passed successfully and container restore completed without timeout.

Assisted-by: Antigravity

Under slow network conditions (e.g., simulated 2 Mbps ingress bandwidth
limits in CI), restoring a container from a checkpoint can fail if it
requires pulling the base image again.

During restore, crictl create is called. In test_from_oci, it used a
10-second timeout (crictl -t 10s create). Over a 2 Mbps connection,
pulling the 2.8MB Alpine layer takes ~12-13 seconds, causing the
operation to exceed the timeout and fail with context canceled.

Increase the timeouts in both test_from_archive and test_from_oci to
30 seconds. This ensures the base image pull can complete successfully
even in constrained CI environments.

Tested:
Ran the CRI integration tests on a GCE VM under a simulated 2 Mbps
ingress bandwidth limit using traffic control (tc). Verified that
both test_from_archive and test_from_oci passed successfully and
container restore completed without timeout.

Assisted-by: Antigravity
Signed-off-by: Samuel Karp <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts CRI checkpoint/restore integration helper timeouts to better tolerate slow network pulls during restore, improving reliability of the contrib checkpoint restore tests in constrained CI environments.

Changes:

  • Increase crictl create timeout in test_from_archive from 20s to 30s.
  • Increase crictl create timeout in test_from_oci from 10s to 30s.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review May 20, 2026
@samuelkarp
samuelkarp added this pull request to the merge queue May 20, 2026
Merged via the queue into containerd:main with commit aa334cb May 21, 2026
54 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review May 21, 2026
@samuelkarp

Copy link
Copy Markdown
Member Author

/cherry-pick release/2.3

@samuelkarp

Copy link
Copy Markdown
Member Author

/cherry-pick release/2.2

@k8s-infra-cherrypick-robot

Copy link
Copy Markdown

@samuelkarp: new pull request created: #13459

Details

In response to this:

/cherry-pick release/2.3

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-sigs/prow repository.

@k8s-infra-cherrypick-robot

Copy link
Copy Markdown

@samuelkarp: new pull request created: #13460

Details

In response to this:

/cherry-pick release/2.2

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-sigs/prow repository.

@samuelkarp samuelkarp added cherry-pick/2.2.x Change to be cherry picked to release/2.2 branch cherry-picked/2.3.x PR commits are cherry picked into release/2.3 branch labels May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick/2.2.x Change to be cherry picked to release/2.2 branch cherry-picked/2.3.x PR commits are cherry picked into release/2.3 branch size/XS

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants