CORENET-7345: add OTE networkpolicy VAP and statefulset tests #3549
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.50) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 364 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.353
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #3549"
general
weight: 0.35
jluhrsen
Description
Why: The OVN-Kubernetes OTP (openshift-tests-private) NetworkPolicy tests are being migrated to the OpenShift Tests Extension (OTE) so they run through
ovn-kubernetes-tests-extinstead of the downstream private suite. This PR migrates two tests that exercise OpenShift-specific NetworkPolicy behavior.What: Adds a self-contained OTE NetworkPolicy slice under
openshift/— the OTE scaffolding/infra, apkg/ote/utilssubset scoped strictly to these two tests, their testdata fixtures, and the two migrated tests, each in its own file:test/ote/network_policy_vap.go) — a NetworkPolicy labelednpprotection/blockdeletion=truecannot be deleted once thefine-grained-network-policy-protectionValidatingAdmissionPolicy is applied, and becomes deletable again after the VAP and its binding are removed. Exercises a default-network and a UDN namespace.test/ote/network_policy_statefulset.go) — an egress NetworkPolicy keeps selecting a StatefulSet pod across repeated pod deletions/recreations, so traffic to the allowed peer keeps working and traffic to the disallowed peer stays blocked after the pod identity is recycled.OTP-labeled specs skip the extension-wide labels and run with the Informing lifecycle via the
[OTP]tag.Commits:
1.
OTE: add OTE networkpolicy VAP and statefulset migration infra2.
OTE: add OTE networkpolicy VAP and statefulset utils3.
CORENET-7345: add OTE networkpolicy VAP deletion-protection test4.
CORENET-7345: add OTE networkpolicy statefulset egress testAdditional Information
This PR is independent — it is no longer stacked on #3514. The
openshift/tree is its own Go module; the OTE infra and a utils subset scoped only to these two tests are carried here directly. It overlaps #3514 / #3548 onopenshift/pkg/ote/*, bothcmd/.../main.gofiles andopenshift/go.mod, so whichever of those lands first, the others rebase.New dependency —
github.com/openshift/origin: required by theexutilimport (github.com/openshift/origin/test/extended/util), OpenShift's e2e CLI harness (exutil.NewCLI,oc.SetupProject,CreateNamespaceUDN, adminocrunners) that the migrated OTP tests are written against. It is a test-only build dependency of theopenshift/extension module.vendor/is intentionally not committed; the Dockerfile vendors it at build time.How to verify it
cd openshift && go mod tidy && go build -mod=mod ./... && gofmt -l .— clean.ovn-kubernetes-tests-ext run-test:- 83735 (VAP) — validated, passed.
- 49186 (statefulset egress) — migrated as-is from the OTP suite; builds clean, pending cluster re-validation by the author.
Release Notes
``
release-note
``NONE
AI assistance: these tests were migrated with help from an AI coding tool and were reviewed and built by the author.