← Back to Pull requests

Broaden OPP SuiteRegEx to match all child suites #863

Closed
redhat-chai-bot closed this pull request without merging on Oct 16, 2026 02:19 UTC
View on GitHub
redhat-chai-bot redhat-chai-bot commented on Sep 25, 2026 18:58 UTC
Author

Summary

Broaden the OPP SuiteRegEx matcher in lpinteropopp/component.go so it catches all child suites under the lp-interop--OPP parent — not just the narrow interop-opp- prefix that PR #853 shipped.

What changed

-{SuiteRegEx: regexp.MustCompile(`^lp-interop--OPP--interop-opp-`)}
+{SuiteRegEx: regexp.MustCompile(`^lp-interop--OPP--`)}

The trailing -- ensures we don't accidentally match the parent suite itself (already covered by the exact Suite matcher on the line above).

Why

Upcoming suite renames in openshift/release will produce JUnit suites named lp-interop--OPP--smoke, lp-interop--OPP--acm-app, lp-interop--OPP--acs-smoke, etc. The old narrow regex would miss all of them, breaking dashboard visibility.

Merge ordering

This PR must land before the suite-rename PRs in openshift/release (PR-B, PR-C, PR-E, PR-F) so the new suite names are recognized immediately.

Part of the OPP Interop handoff (PR-A).

---
AI-generated. Review for accuracy.

@amp-rh requested via Chai Bot

Diff: 11 lines (+10 / -1) across 1 files Reviewer: amp-rh Review duration: 29240m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.23) × (1 − Review Confidence (0.78)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.23 · 11 lines diff across 1 files
0.23
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.74 · 5 substantive comment(s)
0.74
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
77%
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.149
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
12 items
redhat-chai-bot redhat-chai-bot commented on Sep 25, 2026 19:49 UTC
Author

/assign amp-rh

---
AI-generated. Review for accuracy.

redhat-chai-bot redhat-chai-bot commented on Sep 28, 2026 14:30 UTC
Author

Verification Summary

A detailed review of this PR has been completed covering the diff, the ComponentMatcher framework internals (pkg/config/component.go), cross-component conflict resolution (pkg/components/component.go), and the three sibling OPP components (QUAY, ACM, ODF).

What changed

The old single matcher ^lp-interop--OPP--interop-opp- is replaced by two broader matchers, both at Priority: -1:

  • Matcher A — ^lp-interop--OPP-- with ExcludeAny: ["QUAY"]

  • Catches all child suites under OPP, except tests whose name contains "QUAY".

  • Matcher B — ^lp-interop--OPP with IncludeAny: ["interop-opp-", "interop-tests-ocs", "interop-tests-opp"]

  • Catches tests in suites starting with lp-interop--OPP (including the base suite), only if the test name contains one of the listed substrings.

    Cross-component safety ✅

    Three sibling components also match ^lp-interop--OPP-- child suites (QUAY, ACM, ODF), all at default Priority: 0. The new OPP matchers use Priority: -1, so siblings always win via getHighestPriority when both match. OPP correctly acts as a catch-all that defers to more specific owners.

    ExcludeAny / IncludeAny correctness ✅

    Both fields are checked against test.Name (not test.Suite) via IsSubstringAnyTest. In FindMatch, SuiteRegEx, ExcludeAny, and IncludeAny are ANDed together — logic flows correctly.

    Matcher ordering within OPP ✅

    FindMatch returns the first match, so order matters. The ordering is correct: exact base-suite match (Priority 0) → broad child-suite matcher with QUAY exclusion (Priority -1) → name-pattern fallback (Priority -1).

    CI ✅

    All three checks pass: lint, unit, and mapping. The mapping check runs matchers against real test data and would surface any cross-component conflicts or unexpected ownership changes.

    Minor observations (not blockers)

    1. Matcher A's ExcludeAny: ["QUAY"] is defense-in-depth — the Priority: -1 mechanism alone prevents OPP from claiming any sibling's tests.
    2. Matcher B's regex ^lp-interop--OPP (no trailing -- or $) could technically match lp-interop--OPP-foo, but this is unlikely given naming conventions and the IncludeAny constraint limits scope.

    Verdict: The PR is correct. The matcher broadening, priority downgrade, QUAY exclusion, and IncludeAny guardrails all work together as intended.

    ---
    AI-generated. Review for accuracy.

    redhat-chai-bot redhat-chai-bot commented on Sep 28, 2026 14:35 UTC
    Author

    @dgoodwin — This PR is ready for review. All three CI checks (lint, unit, mapping) are passing, and a detailed verification summary is posted above covering cross-component safety, priority resolution, and matcher correctness.

    Could you take a look and /lgtm + /approve when you're satisfied? Thanks!

    ---
    AI-generated. Review for accuracy.

    amp-rh amp-rh approved these changes on Sep 28, 2026 14:44 UTC
    Approved Reviewer

    Approved these changes.

    redhat-chai-bot redhat-chai-bot commented on Sep 28, 2026 15:12 UTC
    Author

    @amp-rh has approved the PR ✅ — just needs the Prow labels now.

    @dgoodwin — could you /lgtm + /approve when you get a chance? CI is all green and the verification summary is above. Thanks!

    ---
    AI-generated. Review for accuracy.

    redhat-chai-bot redhat-chai-bot commented on Sep 28, 2026 15:17 UTC
    Author

    Expanding the request — any OWNERS approver who has a moment, this PR is ready to go:

    @deads2k @deepsm007 @neisw @stbenjam @xueqzhan @sosiouxme @smg247 @petr-muller

    CI is green, @amp-rh has approved, and a detailed verification summary is posted above. A /lgtm + /approve would get this merged. Thanks!

    ---
    AI-generated. Review for accuracy.

    redhat-chai-bot redhat-chai-bot commented on Oct 01, 2026 14:45 UTC
    Author

    /cc @amp-rh

    ---
    AI-generated. Review for accuracy.

    amp-rh amp-rh approved these changes on Oct 02, 2026 19:35 UTC
    Approved Reviewer

    Approved these changes.

    openshift-ci[bot] openshift-ci[bot] commented on Oct 02, 2026 19:35 UTC
    Bot

    [APPROVALNOTIFIER] This PR is NOT APPROVED

    This pull-request has been approved by: <a href="https://github.com/openshift-eng/ci-test-mapping/pull/863#pullrequestreview-5396000312" title="Approved">amp-rh</a>, <a href="https://github.com/openshift-eng/ci-test-mapping/pull/863#" title="Author self-approved">redhat-chai-bot</a>
    Once this PR has been reviewed and has the lgtm label, please assign dgoodwin for approval. For more information see the Code Review Process.

    The full list of commands accepted by this bot can be found here.

    <details open>
    Needs approval from an approver in each of these files:

  • OWNERS
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":["dgoodwin"]} -->

    neisw neisw commented on Oct 05, 2026 11:29 UTC
    Contributor

    @amp-rh, who is responsible for the spambot comments?

    redhat-chai-bot redhat-chai-bot commented on Oct 16, 2026 02:19 UTC
    Author

    Closing this PR based on the findings from the OPP producer–consumer audit.

    Why this is no longer needed:

    1. The audit made it obsolete. We completed a full source-level audit of all 14 OPP CI operator test steps. Every confirmed JUnit-producing step now has (or will have) an explicit, specific consumer rule in the relevant LP component (lpacm, lpodf, lpquay). The catch-all ^lp-interop--OPP-- at Priority: -1 adds no value when all known producers are specifically routed.

    2. Catch-all masks future gaps. When a new OPP step is added without a corresponding consumer rule, the catch-all silently absorbs it into lp-interop--OPP rather than surfacing it as Unknown/Other. Leaving unmatched suites visible is preferable — it makes gaps actionable, which is exactly what the producer–consumer audit process exists to catch.

    3. Specific matchers are being added in PR #883. That PR already modifies all the relevant component files (lpacm, lpodf, lpquay) with targeted OPP matchers, including the obs-odf capability split and ^lp-interop--ACM--OPP-- for ALC/GRC routing.

    Apologies for the noisy comment pings on this PR earlier — that feedback has been noted.

    See the full audit and action plan in the OPP-Complete-Producer-Audit document shared in the related Slack thread.

    ---
    AI-generated. Review for accuracy.

    Reviewers
    Assignees
    redhat-chai-bot redhat-chai-bot
    Labels
    risk: low confidence: 78.0% 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: 22.9% (LOW) · Higher = larger blast radius
    22.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: 78.0% · Lower = rushed or shallow review
    78.0%
    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: 5% · Safe to merge
    5%