8000 Extend checkpoint/restore test for container logs by adrianreber · Pull Request #9202 · cri-o/cri-o · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Extend checkpoint/restore test for container logs #9202

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adrianreber
Copy link
Member

What type of PR is this?

/kind ci

What this PR does / why we need it:

Which issue(s) this PR fixes:

This extends the checkpoint/restore test to ensure that the container log file (crictl logs) is restored correctly.

Special notes for your reviewer:

Trying to reproduce https://issues.redhat.com/browse/OCPBUGS-55963

Does 8000 this PR introduce a user-facing change?

No

None

This extends the checkpoint/restore test to ensure that the container
log file (crictl logs) is restored correctly.

Signed-off-by: Adrian Reber <areber@redhat.com>
@adrianreber adrianreber requested a review from mrunalp as a code owner May 15, 2025 08:34
@openshift-ci openshift-ci bot added the release-note-none Denotes a PR that doesn't merit a release note. label May 15, 2025
@openshift-ci openshift-ci bot requested review from hasan4791 and littlejawa May 15, 2025 08:34
@openshift-ci openshift-ci bot added kind/ci Categorizes issue or PR as related to CI dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels May 15, 2025
Copy link
Contributor
openshift-ci bot commented May 15, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: adrianreber
Once this PR has been reviewed and has the lgtm label, please assign sohankunkerkar for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@saschagrunert
Copy link
Member

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label May 15, 2025
Copy link
codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.34%. Comparing base (5dd0877) to head (4840945).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9202      +/-   ##
==========================================
- Coverage   47.34%   47.34%   -0.01%     
==========================================
  Files         162      162              
  Lines       23978    23978              
==========================================
- Hits        11353    11352       -1     
- Misses      11510    11511       +1     
  Partials     1115     1115              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adrianreber
Copy link
Member Author

Lot's of CI errors. The ones I looked seem to be unrelated to my change.

@adrianreber
Copy link
Member Author

@rst0git mentioned that the functionality was introduced with #8290 and this is now providing tests for #8290.

@bitoku
Copy link
Contributor
bitoku commented May 16, 2025

/skip
/retest

@adrianreber
Copy link
Member Author

/retest

Copy link
Contributor
openshift-ci bot commented May 16, 2025

@adrianreber: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ci-e2e-evented-pleg 4840945 link false /test ci-e2e-evented-pleg

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

< 8000 /tr>
@@ -49,6 +57,15 @@ function teardown() {
crictl start "$ctr_id"
restored=$(crictl inspect --output go-template --template "{{(index .info.restored)}}" "$ctr_id")
[[ "$restored" == "true" ]]
sleep 1
Copy link
Member

Choose a reason for hiding this comment

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

if the container is successfully restored, why do we need the sleep?

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 sleep is needed for the log file test. The container prints something every 0.5 seconds and to make sure there are more lines in the log file then before I am waiting for 1 second.

Copy link
Member

Choose a reason for hiding this comment

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

totally, that makes sense. can you add a comment saying the point?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/ci Categorizes issue or PR as related to CI ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0