← Back to Pull requests

CORENET-6743: OTE: Enable NetworkPolicy tests #3520

Open
unknown opened this pull request with 324 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 08, 2026 14:45 UTC
Author

📑 Description

Enable the upstream NetworkPolicy E2Es in the OpenShift Test Extension (OTE).

[Feature:NetworkPolicy] is dropped from the [Disabled:Unimplemented] label
map in openshift/test/annotate/rules.go, and the five resulting specs are
listed in BlockingTests so they run in the
[Suite:ovn-kubernetes/conformance/parallel] suite:

"[Feature:NetworkPolicy][ovn-kubernetes-ote][sig-network] ACL Logging for NetworkPolicy the logs have the expected log level [Suite:ovn-kubernetes/conformance/parallel]",
"[Feature:NetworkPolicy][ovn-kubernetes-ote][sig-network] ACL Logging for NetworkPolicy when the namespace's ACL allow and deny logging annotations are set to invalid values ACL logging is disabled [Suite:ovn-kubernetes/conformance/parallel]",
"[Feature:NetworkPolicy][ovn-kubernetes-ote][sig-network] ACL Logging for NetworkPolicy when the namespace's ACL logging annotation is removed ACL logging is disabled [Suite:ovn-kubernetes/conformance/parallel]",
"[Feature:NetworkPolicy][ovn-kubernetes-ote][sig-network] ACL Logging for NetworkPolicy when the namespace's ACL logging annotation is updated the ACL logs are updated accordingly [Suite:ovn-kubernetes/conformance/parallel]",
"[Feature:NetworkPolicy][ovn-kubernetes-ote][sig-network] Network Policy: ICMP bypass allows ICMP between pods with default deny policy on the default network [Suite:ovn-kubernetes/conformance/parallel]",

openshift/test/generated/zz_generated.annotations.go is regenerated
accordingly — those five entries move from [Disabled:Unimplemented] to
[Suite:ovn-kubernetes/conformance/parallel].

Fixes #

Release Notes

``release-note
NONE


## Additional Information for reviewers

Changes are confined to `openshift/test/`: the label rules, the generated
annotations, and the hand-maintained `tests.go` list. No product code and no
upstream test code is touched.

## ✅ Checks

- [ ] My code requires changes to the documentation
- [ ] if so, I have updated the documentation as required
- [x] My code does not require changes to the documentation
- [ ] My code requires tests
- [ ] if so, I have added and/or updated the tests as required
- [x] My code does not require tests
- [ ] All the tests have passed in the CI

## How to verify it

bash
cd openshift/
./hack/build-tests-ext.sh
./hack/validate-test-lists.sh # ✅ Test lists are in sync
./bin/ovn-kubernetes-tests-ext list tests \
| jq -r '.[] | select(.name | contains("NetworkPolicy") or contains("Network Policy: ICMP")) | "\(.lifecycle)\t\(.name)"'
`

All five specs report lifecycle blocking`.

Diff: 324 lines (+243 / -81) across 4 files Reviewer: jluhrsen Review duration: 57614m
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.49) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 324 lines diff across 4 files
0.49
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
44%
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.346
Shallow Review Depth shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #3520"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 44.7% 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: 49.0% (MEDIUM) · Higher = larger blast radius
49.0%
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: 44.7% · Lower = rushed or shallow review
44.7%
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: 27.1% · Safe to merge
27.1%