← Back to Pull requests

CNTRLPLANE-2463: added e2e tests for RODO #1664

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Sep 23, 2026 08:02 UTC
Author

Added e2e tests for RODO.
Please find the execution logs of tests run locally.

$ ./run-once-duration-override-operator-tests-ext run-suite "openshift/run-once-duration-override-operator/operator/serial"
[
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator when webhook is active should set ActiveDeadlineSeconds on pods in labeled namespaces [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 5382,
    "startTime": "2026-09-23 07:52:25.619929 UTC",
    "endTime": "2026-09-23 07:52:31.002394 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:22:25.62\n  STEP: Creating test namespace with webhook label @ 09/23/26 13:22:30.287\n  STEP: Creating test pod @ 09/23/26 13:22:30.519\n  STEP: Verifying ActiveDeadlineSeconds is set to 800 @ 09/23/26 13:22:30.77\n  STEP: Cleaning up test namespace @ 09/23/26 13:22:31.002\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Traffic Blocking should block ingress from the same namespace [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 17843,
    "startTime": "2026-09-23 07:52:31.047403 UTC",
    "endTime": "2026-09-23 07:52:48.891392 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:22:31.047\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Traffic Blocking should block ingress from a different namespace [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 19135,
    "startTime": "2026-09-23 07:52:48.936499 UTC",
    "endTime": "2026-09-23 07:53:08.071761 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:22:48.936\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Traffic Blocking should block egress to the API server [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 14294,
    "startTime": "2026-09-23 07:53:08.115957 UTC",
    "endTime": "2026-09-23 07:53:22.410563 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:23:08.116\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Traffic Blocking should block egress to external IPs [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 15166,
    "startTime": "2026-09-23 07:53:22.460805 UTC",
    "endTime": "2026-09-23 07:53:37.627720 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:23:22.461\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Reconciliation should revert patched ingress rules [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 4932,
    "startTime": "2026-09-23 07:53:37.674374 UTC",
    "endTime": "2026-09-23 07:53:42.607310 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:23:37.674\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Reconciliation should revert patched egress rules [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 5181,
    "startTime": "2026-09-23 07:53:42.653976 UTC",
    "endTime": "2026-09-23 07:53:47.835398 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:23:42.654\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Reconciliation should revert patched podSelector [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 5073,
    "startTime": "2026-09-23 07:53:47.878959 UTC",
    "endTime": "2026-09-23 07:53:52.952763 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:23:47.879\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Reconciliation should restore removed policyTypes [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 5069,
    "startTime": "2026-09-23 07:53:52.996521 UTC",
    "endTime": "2026-09-23 07:53:58.066346 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:23:52.996\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Reconciliation should recreate a deleted NetworkPolicy [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 4883,
    "startTime": "2026-09-23 07:53:58.115164 UTC",
    "endTime": "2026-09-23 07:54:02.998411 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:23:58.115\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Reconciliation should recreate the NetworkPolicy with the correct spec [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 4762,
    "startTime": "2026-09-23 07:54:03.047116 UTC",
    "endTime": "2026-09-23 07:54:07.809832 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:24:03.047\n"
  },
  {
    "name": "[sig-scheduling][Operator][Serial] RunOnceDurationOverride Operator NetworkPolicy Config Drift Recovery should reconcile a tampered policy after operator restart [Suite:openshift/run-once-duration-override-operator/operator/serial]",
    "lifecycle": "blocking",
    "duration": 19952,
    "startTime": "2026-09-23 07:54:07.857089 UTC",
    "endTime": "2026-09-23 07:54:27.809094 UTC",
    "result": "passed",
    "output": "  STEP: Setting up the operator @ 09/23/26 13:24:07.857\n  STEP: Scaling operator to zero replicas @ 09/23/26 13:24:12.109\n  STEP: Tampering with the NetworkPolicy while operator is down @ 09/23/26 13:24:12.802\n  STEP: Scaling operator back up @ 09/23/26 13:24:13.26\n  STEP: Verifying operator reconciled the policy back to deny-all @ 09/23/26 13:24:27.353\n"
  }
]

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

Tests
Expanded end-to-end coverage of NetworkPolicy behavior, including allowed traffic to unlabeled pods, blocked ingress and egress, policy-field reconciliation, recreation of deleted policies, and recovery of modified policies after an operator restart.
Added checks for policy readiness, configuration, and traffic outcomes, with improved handling of test resources and readiness waits.
Updated webhook test setup to use a dedicated service account and required pod security settings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 650 lines (+487 / -163) across 8 files Reviewer: ingvagabund Review duration: 28558m
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)). 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.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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.344
Real PR Conversation Timeline
1 comments
"Review active on #1664"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.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: 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: 46.7% · Lower = rushed or shallow review
46.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.7% · Safe to merge
27.7%