Broaden OPP SuiteRegEx to match all child suites #863
/assign amp-rh
---
AI-generated. Review for accuracy.
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:
^lp-interop--OPP-- with ExcludeAny: ["QUAY"]Catches all child suites under OPP, except tests whose name contains "QUAY".
^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.
@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.
Approved these changes.
@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.
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.
/cc @amp-rh
---
AI-generated. Review for accuracy.
Approved these changes.
[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:
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"]} -->
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.
amp-rh
redhat-chai-bot
Summary
Broaden the OPP
SuiteRegExmatcher inlpinteropopp/component.goso it catches all child suites under thelp-interop--OPPparent — not just the narrowinterop-opp-prefix that PR #853 shipped.What changed
The trailing
--ensures we don't accidentally match the parent suite itself (already covered by the exactSuitematcher on the line above).Why
Upcoming suite renames in
openshift/releasewill produce JUnit suites namedlp-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