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

e2e_node: fix ImageGCNoEviction test for kubetest2 #130391

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bart0sh
Copy link
Contributor

@bart0sh bart0sh commented Feb 24, 2025

What type of PR is this?

/kind failing-test
/kind flake

What this PR does / why we need it:

It fixes ImageGCNoEviction test, which fails when run by kubetest2. The test depends on the pre-pulled test images (framework.TestContext.PrepullImages), but kubetest2 has it disabled by default, i.e. its --prepull-images command line option is set to false. As a result image GC is not able to reclaim enough inodes to get the test passing.

The PR adds explicit image pre-pull for the ImageGCNoEviction test, which should fix the issue.

Which issue(s) this PR fixes:

Fixes: #130370
Ref: kubernetes/test-infra#32567

Does this PR introduce a user-facing change?

NONE

/sig-node

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. kind/flake Categorizes issue or PR as related to a flaky test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 24, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bart0sh
Once this PR has been reviewed and has the lgtm label, please assign mrunalp 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

@k8s-ci-robot k8s-ci-robot added area/test sig/node Categorizes an issue or PR as relevant to SIG Node. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 24, 2025
@bart0sh
Copy link
Contributor Author

bart0sh commented Feb 24, 2025

/test pull-crio-cgroupv1-node-e2e-eviction
/test pull-crio-cgroupv1-node-e2e-eviction-kubetest2
/test pull-crio-cgroupv2-node-e2e-eviction
/test pull-crio-cgroupv2-node-e2e-eviction-kubetest2

@bart0sh
Copy link
Contributor Author

bart0sh commented Feb 24, 2025

/retest

@bart0sh
Copy link
Contributor Author

bart0sh commented Feb 24, 2025

/cc @kannon92 @elieser1101

@kannon92
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 24, 2025
@kannon92
Copy link
Contributor

/priority backlog
/triage accepted

@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: b91022a442c840dc853c6ea39de5847667be37fc

@k8s-ci-robot k8s-ci-robot added priority/backlog Higher priority than priority/awaiting-more-evidence. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Feb 24, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Feb 24, 2025
ImageGCNoEviction fails when tests run by kubetest2 as the test depends
on the prepulled test images (framework.TestContext.PrepullImages), but
kubetest2 --prepull-images command line option is set to false by
default.

Prepulling images explicitly for the only test that uses them
should fix the issue.
@bart0sh bart0sh force-pushed the PR174-e2e_node-fix-eviction-kubetest2 branch from 2e2813c to 4c0b24b Compare February 24, 2025 16:27
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 24, 2025
@bart0sh
Copy link
Contributor Author

bart0sh commented Feb 24, 2025

/assign @SergeyKanzhelev @mrunalp
for approval

@bart0sh
Copy link
Contributor Author

bart0sh commented Feb 24, 2025

@kannon92 Can you lgtm again? I've added image pre-pulling at the end of test.

Copy link
Contributor

@kannon92 kannon92 left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 25, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 8c67b810ae7e0e591a7dc79d575acfefae7329dc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. kind/flake Categorizes issue or PR as related to a flaky test. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: PRs - Needs Approver
Development

Successfully merging this pull request may close these issues.

ImageGCNoEviction test fails when run by kubetest2
5 participants