Skip to content

Conversation

@SargunNarula
Copy link
Contributor

Added e2e tests for IRQ load balancing with housekeeping pods:

  • [86346] Verify single hyperthread allocation with full-pcpus-only=false
  • [86348] Verify IRQ config preserved after TuneD restart
  • [86347] Verify housekeeping with nosmt kernel argument

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 15, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: SargunNarula
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.

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

@openshift-ci openshift-ci bot requested review from jmencak and yanirq January 15, 2026 13:25
@SargunNarula
Copy link
Contributor Author

/retest

1 similar comment
@yanirq
Copy link
Contributor

yanirq commented Jan 25, 2026

/retest

}

By("Deleting first pod and verifying remaining pods' configuration is unaffected")
deletedPodHousekeepingCPUs := podHousekeepingCPUs[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

other than having this info for logging in the end, didn't you want to use this for verification?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Surely, I missed on the verification part. Resolved with latest commit.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 25, 2026

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

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.

Added e2e tests for IRQ load balancing with housekeeping pods:
- [86346] Verify single hyperthread allocation with full-pcpus-only=false
- [86348] Verify IRQ config preserved after TuneD restart
- [86347] Verify housekeeping with nosmt kernel argument

Signed-off-by: Sargun Narula <snarula@redhat.com>

By("Verifying housekeeping CPUs equal the container's assigned CPU")
Expect(housekeepingCPUSet.Equals(containerCpuSet)).To(BeTrue(),
"Housekeeping CPUs %v should match container CPUs %v for single hyperthread allocation",
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, this will pass, but only because the container itself has just one cpu available. The same should actually happen with 2 cpus when HT is enabled.

The edge case test is fine, but the description and logs do not accurately represent what is tested here. full-pcpus-only is actually not important for the logic, it just allows you to allocate a single cpu only when HT is enabled.

})
})

Context("Verify TuneD restart preserves IRQ configuration for multiple housekeeping pods", Label(string(label.Tier2)), func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we have a similar test for non-housekeeping case, right? Would it make sense to coalesce the code into a single test with a parameter? To avoid code duplication.

smtActive := strings.TrimSpace(testutils.ToString(smtOutput))
Expect(smtActive).To(Equal("0"), "SMT should be disabled (smt/active should be 0)")

By("Creating a housekeeping pod with 1 CPU")
Copy link
Contributor

Choose a reason for hiding this comment

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

Use more cpus, otherwise the test never uncovers anything even if the logic breaks.

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.

3 participants