← Back to Pull requests

NETOBSERV-2848: Split test files and switch to demoLoki #2848

Closed
unknown closed this pull request without merging on Jul 28, 2026 19:09 UTC
View on GitHub
unknown unknown commented on Jul 20, 2026 18:01 UTC
Author

Summary


  • Split test_flowcollector.go into separate files: test_flowcollector_kafka.go, test_flowcollector_virt.go, test_flow_multitenancy.go

  • Switch most tests from LokiStack to demoLoki (installDemoLoki: true) — operator auto-deploys lightweight Loki

  • Keep LokiStack only for multitenancy tests (63839, 87145) that require multi-tenant auth

  • Centralize shared variables in suite_vars.go and operator deployment in BeforeSuite

  • Remove outdated SkipIfOCPBelow checks for versions below 4.18

  • Simplify GetMonolithicLokiFlowLogs / verifyMonolithicLokilogsTime to take namespace directly instead of parsing URL

  • Extract lokiStream as named type for stream label merging in flow records

  • Promote openshift/api and k8s.io/api to direct dependencies in go.mod (fixes CI lint timeout)

  • Replace unreleased FBC catalog deployment of NMState operator with standard redhat-operators catalog

  • Remove deployedUpstreamCatalogSource flag and DOWNSTREAM env var CSV patching (no longer needed)

  • Remove unused helper functions
  • Test Results


  • Virt:

  • [sig-netobserv] Network_Observability with VMs Author:aramesha-NonPreRelease-Longduration-High-76537-Verify flow enrichment for VM's secondary interfaces
    [Disruptive][Slow] [612.171 seconds]
    [sig-netobserv] Network_Observability with VMs Author:aramesha-NonPreRelease-Longduration-Medium-85887-Verify UDN with VMs [Disruptive][Slow] [362.798 seconds]
    [sig-netobserv] Network_Observability with VMs Author:aramesha-High-85935-Validate CUDN with Localnet and VM's[Serial] [562.716 seconds]
    [sig-netobserv] Network_Observability Author:aramesha-High-83022-Validate CUDN with Localnet [Serial] [357.972 seconds]
    SUCCESS! 32m20.259843994s --- PASS: TestBackend (1940.54s)
    PASS
    ok e2etests 1945.631s

  • IPSec

  • [sig-netobserv] Network_Observability Author:memodi-NonPreRelease-High-82637-Verify IPSec feature [Disruptive] [281.370 seconds]

    SUCCESS! 5m32.679440641s --- PASS: TestBackend (332.93s)
    PASS
    ok e2etests 338.195s

  • Locally passing tests:

  • [sig-netobserv] Network_Observability Author:kapjain-Medium-88683-Secure communications between Agent and FLP [Serial] [293.974 seconds]

    SUCCESS! 5m37.393209611s --- PASS: TestBackend (337.63s)
    PASS
    ok e2etests 342.676s
    [sig-netobserv] Network_Observability Author:aramesha-NonPreRelease-High-69218-High-71291-Verify cluster ID and zone in multiCluster deployment [Serial] [217.719
    seconds]

    SUCCESS! 4m22.610910545s --- PASS: TestBackend (262.91s)
    PASS
    ok e2etests 268.096s
    [sig-netobserv] Network_Observability with Kafka Author:aramesha-NonPreRelease-Longduration-High-57397-High-65116-Low-89197-Verify network-flows export with Kafka and
    netobserv installation without Loki[Serial] [556.588 seconds]

    SUCCESS! 10m2.859452495s --- PASS: TestBackend (603.17s)
    PASS
    ok e2etests 608.899s
    [sig-netobserv] Network_Observability Exporters Author:aramesha-High-64156-Verify IPFIX-exporter [Serial] [139.483 seconds]

    SUCCESS! 3m3.153324054s --- PASS: TestBackend (183.39s)
    PASS
    ok e2etests 188.447s
    1. [sig-netobserv] Network_Observability Multitenancy Author:memodi-NonPreRelease-Longduration-High-63839-Verify-multi-tenancy [Disruptive][Slow] [675.515 seconds]
    2. [sig-netobserv] Network_Observability Multitenancy Author:aramesha-NonPreRelease-Longduration-High-87145-Verify FlowCollectorSlices multi-tenancy [Disruptive][Slow]
    [544.477 seconds]
    SUCCESS! 21m2.147359287s --- PASS: TestBackend (1262.52s)
    PASS
    ok e2etests 1267.718s

  • Jenkins run: noo-backend-tests#122 Failing tests fixed and passed on rerun noo-backend-tests#124
  • Test plan


  • Run full backend test suite on flexy cluster to verify demoLoki flow collection works end-to-end

  • Verify multitenancy tests (63839, 87145) still work with LokiStack

  • Verify Kafka tests deploy AMQ + collect flows via demoLoki

  • Verify VM tests work on baremetal cluster with demoLoki
  • 🤖 Generated with Claude Code

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

    Summary by CodeRabbit

    Summary by CodeRabbit

    New Features
    Expanded end-to-end coverage for multitenancy, Kafka TLS export, KubeVirt VM scenarios, UDN/CUDN networking, and FlowCollector slices.

    Bug Fixes
    Improved FlowCollector readiness detection across deployment models.
    Enhanced Loki flow-log retrieval to enrich records from stream labels and to wait more accurately for expected readiness/results.
    Switched alert validation to Prometheus-based polling (now checking for pending alerts).

    Tests
    Updated test suite setup and configurations to align with current templates and hosted-cluster/disconnected execution behavior.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 647 lines (+485 / -162) across 8 files Reviewer: memodi Review duration: 11587m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 647 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.387
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2848"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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.0% (MEDIUM) · Higher = larger blast radius
    52.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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 20.5% · Safe to merge
    20.5%