← Back to Pull requests

CORENET-6822: OTE framework for Ingress Node Firewall with LEVEL0 and 7 more test cases #694

Open
unknown opened this pull request with 304 lines diff across 3 files
View on GitHub
unknown unknown commented on Jan 25, 2026 02:46 UTC
Author

Summary


  • Add OpenShift Tests Extension (OTE) framework for ingress-node-firewall

  • Migrate LEVEL0 test case (61481 - Operator Installation) with [OTP][LEVEL0] tag and LifecycleBlocking

  • Migrate another 7 cases

  • Registration of binary in origin (per origin PR #31245)

  • Build test binary in Dockerfile.openshift (gzipped to /usr/bin/ingress-node-firewall-tests.gz)

  • No vendor files included — go mod vendor runs in Dockerfile before test binary build
  • Files Changed


  • test/cmd/main.go — OTE entry point with 4 suites (parallel, serial, slow, all), LifecycleBlocking for all specs

  • test/e2e/operator/operator.go — LEVEL0 test: validates operator namespace, CRDs, and deployment readiness

  • test/e2e/cli.go / test/e2e/util.go — OC client helper and utilities

  • test/Makefile — Builds ingress-node-firewall-tests binary

  • Makefile — Adds build-e2e-tests target delegating to test/Makefile

  • Dockerfile.openshift — Builds and gzips test binary into the operator image

  • manifests/stable/image-references — Adds testextension.redhat.io/component and testextension.redhat.io/binary annotations for non-payload OTE discovery

  • go.mod / go.sum — OTE and ginkgo dependencies
  • Next Steps


  • Create ImageStream to define the location of the binary

  • CI workflow that wants to test the operator should add a step to deploy the operator in day2

  • When the operator is set up, the ImageStream is created and discovered via non-payload extension mechanism
  • Test Plan


  • Build test binary locally and run against cluster with operator installed

  • Verify non-payload discovery picks up the annotated ImageStreamTag

  • CI e2e job passes with operator deployed
  • 🤖 Generated with Claude Code

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

    Summary by CodeRabbit

    New Features
    Added extended end-to-end test suite for the ingress-node-firewall operator to validate deployment and CRD availability

    Tests
    Implemented operator verification tests and test artifact integration into runtime image
    * Added test build and cleanup infrastructure

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Depends-On: https://github.com/openshift/origin/pull/31245

    Diff: 304 lines (+228 / -76) across 3 files Reviewer: asood-rh Review duration: 447153m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.47) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 304 lines diff across 3 files
    0.47
    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%
    40%
    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.342
    Real PR Conversation Timeline
    1 comments
    "Review active on #694"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.9% 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: 47.1% (MEDIUM) · Higher = larger blast radius
    47.1%
    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: 40.9% · Lower = rushed or shallow review
    40.9%
    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.8% · Safe to merge
    27.8%