← Back to Pull requests

CORENET-7127: OTE: add OTP egress test cases #3284

Open
unknown opened this pull request with 247 lines diff across 3 files
View on GitHub
unknown unknown commented on Jul 07, 2026 22:07 UTC
Author

Summary


  • Add 39 egress test cases (EgressFirewall, EgressIP, EgressIP UDN, EgressQoS) migrated from openshift-tests-private to OTE/OTP framework

  • Add egress shared utils (egress_utils.go) and network segmentation utils (network_segmentation_utils.go)

  • Add testdata templates for egressfirewall, egressip, egressrouter, egressqos, adminnetworkpolicy, network_segmentation, and nmstate

  • Fix go vet, gofmt, and Snyk security scan issues in shared utils

  • All tests registered with lifecycle=informing

  • HyperShift (54741) and ROSA (61582/66112) tests included as stubs with g.Skip

  • UDN EgressIP placeholder stubs for tests requiring full UDN infrastructure
  • Test plan


  • Verify all 39 tests are listed via ovn-kubernetes-tests-ext list tests | grep "SDN EgressIP"

  • Verify all tests have lifecycle=informing

  • Run EgressFirewall ACL logging tests on connected cluster

  • Run EgressIP failover tests on cluster with 2+ nodes in same subnet

  • Verify stub tests skip gracefully on unsupported platforms

  • Confirm go vet and gofmt pass clean
  • 🤖 Generated with Claude Code

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

    Summary by CodeRabbit

    Summary of changes

    New Features
    Expanded OTP networking test assets with new template-based manifests for Admin/Baseline Network Policies, EgressFirewall/EgressIP, UDN/CUDN, and hardened pod/node workloads (including multi-rule and dual-stack variants).
    Added new end-to-end test utilities for creating/applying template resources, managing OTP networking objects, and validating connectivity and packet-capture scenarios.

    Bug Fixes
    Improved OTP test classification and metadata/lifecycle labeling consistency during execution.

    Chores
    * Refreshed Go toolchain/dependency versions used by the test suite.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 247 lines (+185 / -62) across 3 files Reviewer: asood-rh Review duration: 211272m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.46) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 247 lines diff across 3 files
    0.46
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.330
    Real PR Conversation Timeline
    1 comments
    "Review active on #3284"
    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: 45.9% (MEDIUM) · Higher = larger blast radius
    45.9%
    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: 25.4% · Safe to merge
    25.4%