Skip to content

Comments

E2E: Add test case to check Infrastructure pods affinity#1470

Open
mrniranjan wants to merge 1 commit intoopenshift:mainfrom
mrniranjan:add_affinity_test
Open

E2E: Add test case to check Infrastructure pods affinity#1470
mrniranjan wants to merge 1 commit intoopenshift:mainfrom
mrniranjan:add_affinity_test

Conversation

@mrniranjan
Copy link
Contributor

Add test case to check affinity of Infrastructure pods. we use tuned as an example to check if the infrastructure pods have the affinity of reserved plus available isolated cpus

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 11, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

The full list of commands accepted by this bot can be found here.

Details 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

Expect(reservedCPUSet.IsSubsetOf(maskSet)).To(Equal(true), fmt.Sprintf("The init process (pid 1) should have cpu affinity: %s", reservedCPU))
})

It("[test_id:87722][crit:high][level:acceptance] verify Infrastructure pods have cpu affinity of reserved plus isolated cpuset", func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is only valid when workload partitioning is not enabled. And it is only valid when strict cpu isolation is false in cpu manager.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added a condition to check affinity when workload partitioning is enabled.

Add test case to check affinity of Infrastructure pods.
we use tuned as an example to check if the infrastructure pods
have the affinity of reserved plus available isolated cpus

Signed-off-by: Niranjan M.R <mniranja@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 13, 2026

@mrniranjan: The following tests 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/e2e-hypershift-pao 6a87f37 link true /test e2e-hypershift-pao
ci/prow/e2e-hypershift 6a87f37 link true /test e2e-hypershift
ci/prow/e2e-aws-ovn 6a87f37 link true /test e2e-aws-ovn

Full PR test history. Your PR dashboard.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants