Skip to content

Conversation

@rocrisp
Copy link

@rocrisp rocrisp commented Nov 11, 2025

Motivation

The upstream certsuite test networking-dpdk-cpu-pinning-exec-probe was refactored and moved:

  • Old: networking-dpdk-cpu-pinning-exec-probe (networking suite)
  • New: performance-cpu-pinning-no-exec-probes (performance suite)
    This PR updates the QE test suite to reflect that change while maintaining the DPDK-specific scope with SR-IOV operator requirements.

Changes Made

🗑️ Removed (from networking suite):

  • tests/networking/tests/networking_dpdk_cpu_pinning_exec_probe.go - Old test file
  • tests/networking/helper/helper.go - Removed DefineDpdkPod() function (65 lines)
  • tests/networking/helper/helper_test.go - Removed TestDefineDpdkPod() unit test (57 lines)
  • tests/networking/parameters/parameters.go - Removed constants:
    • CertsuiteDpdkCPUPinningExecProbe
    • CertsuiteNetworkingDpdkExecProbeTcName
    • DpdkPodName

➕ Added (to performance suite):

  • tests/performance/tests/cpu_pinning_no_exec_probes.go - New QE test implementation
  • tests/performance/tests/cpu_pinning_no_exec_probes_test.go - Unit test file
  • tests/performance/helper/helper.go - Added DefineDpdkPod() function (63 lines)
  • tests/performance/parameters/parameters.go - Added constants:
    • CertsuiteCPUPinningNoExecProbes = "performance-cpu-pinning-no-exec-probes"
    • DpdkPodName = "dpdk-pod"

Test Coverage

The new test includes 2 test scenarios:

  1. Positive test: DPDK pod with no exec probes → Expected: PASS
  2. Negative test: DPDK pod with exec liveness probe → Expected: FAIL

- Removed old networking-dpdk-cpu-pinning-exec-probe test
- Created new performance-cpu-pinning-no-exec-probes test (DPDK-specific)
- Added DefineDpdkPod() helper function in performance/helper
- Added DpdkPodName and CertsuiteCPUPinningNoExecProbes constants
- Test checks DPDK pods with SR-IOV for exec probes
- Maintains narrow DPDK-only scope with SR-IOV operator requirement

Files modified:
- tests/networking/helper/helper.go (removed DefineDpdkPod)
- tests/networking/helper/helper_test.go (removed TestDefineDpdkPod)
- tests/networking/parameters/parameters.go (removed old constants)
- tests/performance/helper/helper.go (added DefineDpdkPod)
- tests/performance/parameters/parameters.go (added constants)

Files added:
- tests/performance/tests/cpu_pinning_no_exec_probes.go
- tests/performance/tests/cpu_pinning_no_exec_probes_test.go

Files deleted:
- tests/networking/tests/networking_dpdk_cpu_pinning_exec_probe.go
NetworkingTestSkipLabel = map[string]string{"redhat-best-practices-for-k8s.com/skip_connectivity_tests": ""}
NetworkingTestMultusSkipLabel = map[string]string{"redhat-best-practices-for-k8s.com/skip_multus_connectivity_tests": ""}
NetworkingTestSkipLabel = map[string]string{"redhat-best-practices-for-k8s.com/skip_connectivity_tests": ""}
NetworkingTestMultusSkipLabel = map[string]string{"redhat-best-practices-for-k8s.com/skip_multus_connectivity_tests": ""}

Choose a reason for hiding this comment

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

@sebrandon1 How did this pass linting before? It looks like someone manual adjusted the formatting, which isn't great, can we just update the linter? Otherwise every PR in this file has to be manually edited.

Copy link
Member

Choose a reason for hiding this comment

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

I'll take a look!

Copy link
Member

Choose a reason for hiding this comment

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

@rocrisp Just add an "Enter" between the lines and the gofmt will fix it. It's just since the variables are now "together" the gofmt is trying to space everything the same.

- Separate string constants from map constants with blank line
- Allows gofmt to align each group independently
- Addresses reviewer feedback on formatting alignment
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