← Back to Pull requests

ci(rpp): enable RPP build and test in TheRock CI #10510

Closed
unknown closed this pull request without merging on Aug 12, 2026 18:41 UTC
View on GitHub
unknown unknown commented on Aug 07, 2026 04:49 UTC
Author

ISSUE ID : #10187

Summary

Enables RPP build and test in TheRock CI. RPP landed in TheRock as a cv-libs component (ROCm/TheRock#5708), but nothing on the rocm-libraries side selected it: projects/rpp changes ran no CI at all, and the existing test:rpp label was parsed as an unknown project and silently ignored.

Changes

.github/actions/ci-env/action.yml — bump the TheRock ref from 54d1439 to 36efe519 (2026-08-05), the commit that adds the rpp test-matrix entry and test_rpp.py. This is a clean fast-forward (21 commits ahead, 0 behind). Without it there is no RPP test job for fetch_test_configurations.py to select, so the wiring below would be inert.

.github/scripts/therock_matrix.py — map projects/rpp to a new rpp project built with -DTHEROCK_ENABLE_RPP=ON and tested as rpp. RPP's artifact only depends on core (core-runtime, core-hip, base, sysdeps), so it needs no math umbrella.

This also adds an optional platforms key to a project entry. RPP is the first Linux-only project in the matrix: Windows support is experimental and off by default in TheRock, and TheRock's rpp test job is Linux-only, so without a guard the Windows setup step would emit a build-only RPP row. Entries without the key are unaffected, and the key is stripped before the row reaches the workflow.

.github/scripts/therock_configure_ci.py — union the changed-path prefixes with subtree_to_project_map. repos-config.json is the subtree-sync registry and only lists subtrees that mirror a standalone upstream repo, so in-tree projects never appear there and their file changes matched nothing.

Behavior

| Scenario | Jobs selected | test_type |
|---|---|---|
| projects/rpp change, Linux | rpp | standard |
| projects/rpp change, Windows | none | — |
| projects/rpp change + test_type:full | rpp | full |
| test:rpp on a PR that doesn't touch rpp | rpp | standard |
| projects/rpp/docs only | none | — |

As with every other library, test: labels choose which library runs and test_type: chooses depth. For RPP, standard runs ctest -E test_type_1 (excluding the performance suites, roughly 58% of runtime) while full and comprehensive run the whole suite.

Side effect worth flagging

The prefix fix also makes projects/rocalution and projects/hipthreads changes trigger CI. Both are already in the build matrix but absent from repos-config.json, so today their file changes select no jobs and they are reachable only through their test: labels. That is a latent gap rather than a deliberate design, so this fixes it. A new test iterates every subtree in the matrix and asserts it is detectable from a file change, so a future project cannot silently fall into the same hole.

Test plan

  • pytest .github/scripts/tests/ — 58 passed, 35 subtests passed

  • pre-commit run --files <changed files> — all hooks pass (black, check-yaml, trailing-whitespace, end-of-file-fixer)

  • Reverting the matrix wiring and re-running fails 5 of the new tests, confirming they are not vacuous

  • Drove the real therock_configure_ci.run() with only the git diff stubbed to produce the behavior table above
  • Note on this PR's own CI

    Because this PR touches .github/scripts/therock* and .github/actions/ci-env/action.yml, check_for_workflow_file_related_to_ci intentionally expands the matrix to every project and forces test_type: quick. The "only RPP runs" behavior is therefore covered by the unit tests here and will be directly observable on the next PR that touches only projects/rpp.

    Diff: 460 lines (+345 / -115) across 5 files Reviewer: ammallya Review duration: 8032m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.46) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 460 lines diff across 5 files
    0.46
    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%
    56%
    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.367
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10510"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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.6% (MEDIUM) · Higher = larger blast radius
    45.6%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 19.7% · Safe to merge
    19.7%