Skip to content

Conversation

@oblau
Copy link

@oblau oblau commented Dec 2, 2025

this pr adds testcases related to granular irq affinity control feature test cases are related to testing new pod annotation: irq-load-balancing.crio.io: "housekeeping"

@oblau oblau marked this pull request as draft December 2, 2025 16:50
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 2, 2025
@openshift-ci openshift-ci bot requested review from swatisehgal and yanirq December 2, 2025 16:53
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 2, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

@oblau oblau marked this pull request as ready for review December 3, 2025 11:34
@oblau oblau changed the title WIP: E2E: Granular IRQ functional test cases E2E: Granular IRQ functional test cases Dec 3, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 3, 2025
})

It("checks that houskeeping takes first cpu from cpu's asigned to container", func() {
getHousekeepingCpus := []string{"printenv", "OPENSHIFT_HOUSEKEEPING_CPUS"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the duplication of the env var check necessary?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would remove the simpler test above and keep just this one.

this pr adds testcases related to granular irq affinity control feature
test cases are related to testing new pod annotation:
irq-load-balancing.crio.io: "housekeeping"

added another test case related to multiple containers

Signed-off-by: oblau <oblau@redhat.com>
})

It("verifies each container has OPENSHIFT_HOUSEKEEPING_CPUS aligned with its first CPU siblings", func() {
// Get core sibling topology once
Copy link
Contributor

Choose a reason for hiding this comment

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

The code duplication will make this hard to maintain. Why not make this code a function and call it for both single and two container per pod cases?

@MarSik
Copy link
Contributor

MarSik commented Dec 3, 2025

Testing the env var is fine, but what I am missing the most is the check of the IRQ affinity. Because that is the real effect of the feature. The irq affinity / irqbalance configuration must contain the housekeeping cpus and NOT contain the rest of the cpus the container has.

Using describe table insted of It blocks
Utilizing funcitons for better redability

Signed-off-by: oblau <oblau@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 4, 2025

@oblau: 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 e5e2a2f link true /test e2e-hypershift-pao
ci/prow/e2e-gcp-pao e5e2a2f link true /test e2e-gcp-pao

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.

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