← Back to Pull requests

NO-JIRA:Update code for migrating nto test case from openshift-test-private to OTE #1436

Closed
unknown closed this pull request without merging on Dec 08, 2025 09:34 UTC
View on GitHub
unknown unknown commented on Nov 25, 2025 08:47 UTC
Author

This is the PoC of migrating QE test case from openshift-test-private to OTE
OpenShift Tests Extension (OTE) is a framework for building standalone test binaries that integrate with OpenShift CI. Teams can write and ship tests outside the monolithic openshift-tests repository, but still maintain centralized orchestration. These binaries are owned and built by component teams who declare their own tests and suites with a standardized CLI.

This change prepares the migration from openshift-test-private to OTE by adding a sample test to the cluster-node-tuning-operator-test-ext binary. The binary is added to the NTO image.

Execute make build or make cluster-node-tuning-operator-test-ext run-test to build binary.

```Cluster Node Tuning Operator Tests Extension
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
images List test images
info Display extension metadata
list List items
run-suite Run a group of tests by suite. This is more limited than origin, and intended for light local development use. Orchestration parameters, scheduling, isolation, etc are not obeyed, and Ginkgo tests are executed serially.
run-test Runs tests by name
update Update test metadata

_output/cluster-node-tuning-operator-test-ext run-test "[sig-tuning-node] PSAP should [Jira:NTO]OCP-37415-Allow setting isolated_cores without touching the default_irq_affinity[OTP][Serial][Disruptive][Suite:openshift/conformance/serial]"
Running Suite: - /Users/liqcui/goproject/github.com/liqcui/cluster-node-tuning-operator
========================================================================================
Random Seed: 1764060263 - will randomize all specs

Will run 1 of 1 specs
------------------------------
[sig-tuning-node] PSAP should [Jira:NTO]OCP-37415-Allow setting isolated_cores without touching the default_irq_affinity[OTP][Disruptive][Suite:openshift/conformance/serial] [conformance, Serial]
/Users/liqcui/goproject/github.com/liqcui/cluster-node-tuning-operator/test/extended/nto.go:37
I1125 16:44:23.203687 42589 nto_util.go:83] checking if pod is found in namespace openshift-cluster-node-tuning-operator...
I1125 16:44:23.204012 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get deployment -n openshift-cluster-node-tuning-operator -ojsonpath={.items[].metadata.name}'
I1125 16:44:24.365087 42589 nto_util.go:92] deployment cluster-node-tuning-operator found in namespace openshift-cluster-node-tuning-operator!
I1125 16:44:24.365401 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get infrastructure cluster -o=jsonpath={.status.platform}'
I1125 16:44:26.013355 42589 nto.go:34] Cloud provider is: aws
I1125 16:44:26.014397 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get nodes --no-headers'
I1125 16:44:28.055864 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get machineset -n openshift-machine-api -o=jsonpath={.items[
].metadata.name}'
I1125 16:44:29.390177 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-machine-api machineset -ojsonpath={.items[].metadata.name}'
I1125 16:44:30.439277 42589 nto_util.go:458] workerMachineSets is [liqcui-ocp4udn-9zl65-infra-us-east-2a liqcui-ocp4udn-9zl65-infra-us-east-2b liqcui-ocp4udn-9zl65-infra-us-east-2c liqcui-ocp4udn-9zl65-worker-us-east-2a liqcui-ocp4udn-9zl65-worker-us-east-2b liqcui-ocp4udn-9zl65-worker-us-east-2c liqcui-ocp4udn-9zl65-workload-us-east-2a]
I1125 16:44:30.439369 42589 nto_util.go:469] linuxMachineset is [liqcui-ocp4udn-9zl65-infra-us-east-2a liqcui-ocp4udn-9zl65-infra-us-east-2b liqcui-ocp4udn-9zl65-infra-us-east-2c liqcui-ocp4udn-9zl65-worker-us-east-2a liqcui-ocp4udn-9zl65-worker-us-east-2b liqcui-ocp4udn-9zl65-worker-us-east-2c liqcui-ocp4udn-9zl65-workload-us-east-2a]
I1125 16:44:30.439430 42589 nto_util.go:481] machinesetName is liqcui-ocp4udn-9zl65-infra-us-east-2a in getWorkerMachinesetName
I1125 16:44:30.439446 42589 nto_util.go:421] machinesetName is liqcui-ocp4udn-9zl65-infra-us-east-2a in choseOneWorkerNodeToRunCase
I1125 16:44:30.439707 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get machineset -n openshift-machine-api liqcui-ocp4udn-9zl65-infra-us-east-2a -o=jsonpath={.spec.replicas}'
I1125 16:44:32.692364 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get nodes -l machine.openshift.io/cluster-api-machineset=liqcui-ocp4udn-9zl65-infra-us-east-2a -o=jsonpath={.items[
].metadata.name}'
I1125 16:44:33.514605 42589 nto_util.go:436] No nodes found for machineset liqcui-ocp4udn-9zl65-infra-us-east-2a, falling back to node selection without machineset
I1125 16:44:33.515149 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get nodes -l node-role.kubernetes.io/worker=,kubernetes.io/os=linux -o=jsonpath={.items[*].metadata.name}'
I1125 16:44:37.329054 42589 nto_util.go:495] the tunedNodeName that we get inside choseOneWorkerNodeNotByMachineset when choseBy 0 is ip-10-0-0-102.us-east-2.compute.internal
STEP: label the node with default-irq-smp-affinity @ 11/25/25 16:44:37.329
I1125 16:44:37.329308 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config label node ip-10-0-0-102.us-east-2.compute.internal tuned.openshift.io/default-irq-smp-affinity= --overwrite'
STEP: check the default values of /proc/irq/default_smp_affinity on worker nodes @ 11/25/25 16:44:38.593
I1125 16:44:38.593852 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config debug -n openshift-cluster-node-tuning-operator --quiet=true node/ip-10-0-0-102.us-east-2.compute.internal -- chroot /host cat /proc/irq/default_smp_affinity'
I1125 16:44:41.479564 42589 nto.go:63] the default value of /proc/irq/default_smp_affinity without cpu affinity is: f
I1125 16:44:41.480415 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get node ip-10-0-0-102.us-east-2.compute.internal -ojsonpath={.status.capacity.cpu}'
I1125 16:44:42.540627 42589 nto_util.go:128] There are 4 cores on worker node ip-10-0-0-102.us-east-2.compute.internal, the hex mask is f
I1125 16:44:42.540809 42589 nto.go:70] the value of /proc/irq/default_smp_affinity: f
I1125 16:44:42.540899 42589 nto_util.go:158] The total CPU number is 4
The CPU HexMask is:
f
The CPU BitsMask is:
[1111]

STEP: create default-irq-smp-affinity profile to enable isolated_cores=1 @ 11/25/25 16:44:42.541
I1125 16:44:42.541764 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get tuned default-irq-smp-affinity -n openshift-cluster-node-tuning-operator'
I1125 16:44:43.947599 42589 cli_wrapper.go:296] error running command: exit status 1
stdout:
stderr: Error from server (NotFound): tuneds.tuned.openshift.io "default-irq-smp-affinity" not found
I1125 16:44:43.947780 42589 nto_util.go:343] no tuned in project: openshift-cluster-node-tuning-operator, create one: default-irq-smp-affinity
I1125 16:44:43.948119 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config process --ignore-unknown-parameters=true -f /Users/liqcui/goproject/github.com/liqcui/cluster-node-tuning-operator/test/extended/testdata/nto/default-irq-smp-affinity.yaml -p TUNED_NAME=default-irq-smp-affinity -p SYSCTLPARM=#default_irq_smp_affinity -p SYSCTLVALUE=1 -o yaml'
I1125 16:44:44.781928 42589 nto_util.go:346] Processed template:
apiVersion: v1
items:
- apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: default-irq-smp-affinity
spec:
profile:
- data: |
[main]
summary=An OpenShift profile to test [scheduler] default_irq_smp_affinity option
include=openshift-node
[scheduler]
# isolated_cores take a list of ranges; e.g. isolated_cores=2,4-7
isolated_cores=1
# the cpulist in 'default_irq_smp_affinity' is unpacked and written directly to /proc/irq/default_smp_affinity
# default_irq_smp_affinity=1
#default_irq_smp_affinity=1
name: default-irq-smp-affinity
recommend:
- match:
- label: tuned.openshift.io/default-irq-smp-affinity
priority: 18
profile: default-irq-smp-affinity
kind: List
metadata: {}
I1125 16:44:44.783125 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config create -n openshift-cluster-node-tuning-operator -f -'
I1125 16:44:45.639957 42589 nto_util.go:349] Successfully created tuned resource: default-irq-smp-affinity in namespace: openshift-cluster-node-tuning-operator
I1125 16:44:45.642568 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get tuned default-irq-smp-affinity -n openshift-cluster-node-tuning-operator'
I1125 16:44:46.475236 42589 nto_util.go:358] Tuned resource default-irq-smp-affinity is now available
STEP: check if new NTO profile was applied @ 11/25/25 16:44:46.475
I1125 16:44:46.475845 42589 nto_util.go:372] Checking if tuned profile default-irq-smp-affinity is applied to node ip-10-0-0-102.us-east-2.compute.internal
I1125 16:44:46.476223 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal'
I1125 16:44:47.871996 42589 nto_util.go:381] Profile resource ip-10-0-0-102.us-east-2.compute.internal found in namespace openshift-cluster-node-tuning-operator
I1125 16:44:47.872983 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal -ojsonpath='{.status.conditions[?(@.type=="Applied")].status}''
I1125 16:44:49.280809 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal -ojsonpath={.status.tunedProfile}'
I1125 16:44:50.660145 42589 nto_util.go:390] Checking profile status: appliedStatus='True' (err=<nil>), tunedProfile=openshift-node (err=<nil>), expectedStatus=True, expectedProfile=default-irq-smp-affinity
I1125 16:44:50.660449 42589 nto_util.go:404] Tuned profile name not matching: got openshift-node, want default-irq-smp-affinity
I1125 16:44:55.662695 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal -ojsonpath='{.status.conditions[?(@.type=="Applied")].status}''
I1125 16:44:57.062948 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal -ojsonpath={.status.tunedProfile}'
I1125 16:44:58.992569 42589 nto_util.go:390] Checking profile status: appliedStatus='True' (err=<nil>), tunedProfile=default-irq-smp-affinity (err=<nil>), expectedStatus=True, expectedProfile=default-irq-smp-affinity
I1125 16:44:58.992715 42589 nto_util.go:408] Profile default-irq-smp-affinity successfully applied to node ip-10-0-0-102.us-east-2.compute.internal with status 'True'
STEP: check values of /proc/irq/default_smp_affinity on worker nodes after enabling isolated_cores=1 @ 11/25/25 16:44:58.992
I1125 16:44:58.993026 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config debug -n openshift-cluster-node-tuning-operator --quiet=true node/ip-10-0-0-102.us-east-2.compute.internal -- chroot /host cat /proc/irq/default_smp_affinity'
I1125 16:45:02.417966 42589 nto.go:95] the value of default_smp_affinity after setting isolated_cores=1 is: d
STEP: verify if the value of /proc/irq/default_smp_affinity is affected by isolated_cores=1 @ 11/25/25 16:45:02.418
I1125 16:45:02.418324 42589 nto_util.go:219] The total isolated CPUs is: 1

I1125 16:45:02.418348 42589 nto_util.go:220] The max CPU that isolated is : 1

I1125 16:45:02.418368 42589 nto_util.go:224] totalCPUGroupNum is: 1
maxCPUGroupIndex is: 0

I1125 16:45:02.418385 42589 nto_util.go:246] 1111 ^ 0010 = 1101

I1125 16:45:02.418485 42589 nto_util.go:251] affinityCPUMask is: d

STEP: remove the old profile and create a new one later ... @ 11/25/25 16:45:02.418
I1125 16:45:02.418793 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config delete -n openshift-cluster-node-tuning-operator tuned default-irq-smp-affinity --ignore-not-found'
STEP: create default-irq-smp-affinity profile to enable default_irq_smp_affinity=1 @ 11/25/25 16:45:03.456
I1125 16:45:03.456780 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get tuned default-irq-smp-affinity -n openshift-cluster-node-tuning-operator'
I1125 16:45:04.499119 42589 cli_wrapper.go:296] error running command: exit status 1
stdout:
stderr: Error from server (NotFound): tuneds.tuned.openshift.io "default-irq-smp-affinity" not found
I1125 16:45:04.499258 42589 nto_util.go:343] no tuned in project: openshift-cluster-node-tuning-operator, create one: default-irq-smp-affinity
I1125 16:45:04.499642 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config process --ignore-unknown-parameters=true -f /Users/liqcui/goproject/github.com/liqcui/cluster-node-tuning-operator/test/extended/testdata/nto/default-irq-smp-affinity.yaml -p TUNED_NAME=default-irq-smp-affinity -p SYSCTLPARM=default_irq_smp_affinity -p SYSCTLVALUE=1 -o yaml'
I1125 16:45:05.333519 42589 nto_util.go:346] Processed template:
apiVersion: v1
items:
- apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: default-irq-smp-affinity
spec:
profile:
- data: |
[main]
summary=An OpenShift profile to test [scheduler] default_irq_smp_affinity option
include=openshift-node
[scheduler]
# isolated_cores take a list of ranges; e.g. isolated_cores=2,4-7
isolated_cores=1
# the cpulist in 'default_irq_smp_affinity' is unpacked and written directly to /proc/irq/default_smp_affinity
# default_irq_smp_affinity=1
default_irq_smp_affinity=1
name: default-irq-smp-affinity
recommend:
- match:
- label: tuned.openshift.io/default-irq-smp-affinity
priority: 18
profile: default-irq-smp-affinity
kind: List
metadata: {}
I1125 16:45:05.334004 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config create -n openshift-cluster-node-tuning-operator -f -'
I1125 16:45:06.125173 42589 nto_util.go:349] Successfully created tuned resource: default-irq-smp-affinity in namespace: openshift-cluster-node-tuning-operator
I1125 16:45:06.125701 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get tuned default-irq-smp-affinity -n openshift-cluster-node-tuning-operator'
I1125 16:45:06.945086 42589 nto_util.go:358] Tuned resource default-irq-smp-affinity is now available
STEP: check if new NTO profile was applied @ 11/25/25 16:45:06.945
I1125 16:45:06.945750 42589 nto_util.go:372] Checking if tuned profile default-irq-smp-affinity is applied to node ip-10-0-0-102.us-east-2.compute.internal
I1125 16:45:06.947458 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal'
I1125 16:45:08.344268 42589 nto_util.go:381] Profile resource ip-10-0-0-102.us-east-2.compute.internal found in namespace openshift-cluster-node-tuning-operator
I1125 16:45:08.344552 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal -ojsonpath='{.status.conditions[?(@.type=="Applied")].status}''
I1125 16:45:09.752392 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get -n openshift-cluster-node-tuning-operator profiles.tuned.openshift.io ip-10-0-0-102.us-east-2.compute.internal -ojsonpath={.status.tunedProfile}'
I1125 16:45:11.151016 42589 nto_util.go:390] Checking profile status: appliedStatus='True' (err=<nil>), tunedProfile=default-irq-smp-affinity (err=<nil>), expectedStatus=True, expectedProfile=default-irq-smp-affinity
I1125 16:45:11.151157 42589 nto_util.go:408] Profile default-irq-smp-affinity successfully applied to node ip-10-0-0-102.us-east-2.compute.internal with status 'True'
STEP: check values of /proc/irq/default_smp_affinity on worker nodes @ 11/25/25 16:45:11.151
I1125 16:45:11.152103 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config get scheduler cluster -o=jsonpath={.spec.defaultNodeSelector}'
I1125 16:45:11.987050 42589 cli_wrapper.go:326] running 'oc --kubeconfig=/Users/liqcui/.kube/config debug node/ip-10-0-0-102.us-east-2.compute.internal --quiet=true --to-namespace=openshift-cluster-node-tuning-operator -- chroot /host cat /proc/irq/default_smp_affinity'
I1125 16:45:15.444669 42589 nto.go:132] the value of default_smp_affinity after setting default_irq_smp_affinity=1 is: 2
I1125 16:45:15.444893 42589 nto_util.go:274] The total isolated CPUs is: 1

I1125 16:45:15.444939 42589 nto_util.go:275] The max CPU that isolated is : 1

I1125 16:45:15.444965 42589 nto_util.go:278] The initial isolatedCPUMask is [0000]

I1125 16:45:15.444993 42589 nto_util.go:301] 0000 | 0010 = 0010

I1125 16:45:15.445012 42589 nto_util.go:308] cpuBitsMask is: [0010]

I1125 16:45:15.445030 42589 nto_util.go:324] affinityCPUMask is: -2-, defaultIRQSMPAffinity is -2-

I1125 16:45:15.445440 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config delete -n openshift-cluster-node-tuning-operator tuned default-irq-smp-affinity --ignore-not-found'
I1125 16:45:16.881156 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config delete -n openshift-cluster-node-tuning-operator tuned default-irq-smp-affinity --ignore-not-found'
I1125 16:45:17.972270 42589 cli_wrapper.go:284] running 'oc --kubeconfig=/Users/liqcui/.kube/config label node ip-10-0-0-102.us-east-2.compute.internal tuned.openshift.io/default-irq-smp-affinity-'
• [56.569 seconds]
------------------------------

Ran 1 of 1 Specs in 56.570 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped

Diff: 650 lines (+487 / -163) across 8 files Reviewer: jmencak Review duration: 18767m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
0.52
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.388
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1436"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 52% (MEDIUM) · Higher = larger blast radius
52%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.5% · Safe to merge
20.5%