← Back to Pull requests

fix(ci): classify files outside external-repository source roots #9808

Closed
unknown closed this pull request without merging on Nov 07, 2026 00:29 UTC
View on GitHub
unknown unknown commented on Nov 07, 2026 00:25 UTC
Author

Motivation

A hipBLASLt PR that also changes .github/workflows/hipblaslt-asan-ci.yml currently selects all eligible components' quick tests, including rocFFT. The workflow file sits outside the source roots in repos-config.json, so the external-repository selector treats its impact as unknown even though it belongs to hipBLASLt.

Technical Details

Add repository-specific file ownership in external_repo_ci_paths.toml. Component workflows and test drivers contribute their owners to the changed-project set, preserving normal downstream-consumer selection. Shared build and CI files explicitly retain broad coverage. Unknown files and missing owners still trigger the conservative fallback and appear in the configure log, including when a shared file also changed. Shared workflow changes retain any changed monorepo-native projects alongside the configured repository projects.

Audited all 59,056 tracked files in rocm-libraries at c0bd02c23775f7eae7a9d85abbdc5418e90ad8a5. The 181 non-documentation files outside source roots resolve to 38 component-owned files, 139 files retaining broad coverage, and four repository-scoped workflows; none remain unclassified. HostNumerics and the hipDNN install infrastructure retain broad coverage because their tests are not yet represented by the relevant consumer-graph nodes. New files still need classification as they are introduced.

This changes CI selection; incorrect ownership could omit relevant tests. Regression tests cover mixed changes, missing owners, shared infrastructure and unknown files, and invoke the real consumer selector. Deployment requires rocm-libraries to adopt a TheRock revision containing this change; its current pin does not include the fix.

Test Plan

python -m pytest -q build_tools/tests/configure_external_repo_ci_test.py build_tools/github_actions/tests/configure_external_repo_workflow_test.py test_tools/tests/determine_rocm_test_dependencies_test.py
pre-commit run --all-files

Test Result

Focused tests and all pre-commit hooks pass. The component-ownership regression fails against the original selector and passes with this change. Replaying the affected hipBLASLt PR selects hipBLASLt/TensileLite and their consumers without FFT; a PR that also changes shared CI remains broad. All 22 component-owned test drivers select their intended jobs. Validation is local Python selection and configuration testing; no GPU workloads or manual CI runs were used for validation.

Submission Checklist

  • Reviewed the contributing guidelines.
  • Related to the external-repository workflow scoping work in #8514.

    ISSUE ID: #8514

    Diff: 337 lines (+252 / -85) across 4 files Reviewer: ScottTodd Review duration: 4m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.42) × (1 − Review Confidence (0.39)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 337 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 47% · Reviewer familiarity: 35%
    39%
    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.348
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9808"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 39.1% 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: 42.2% (MEDIUM) · Higher = larger blast radius
    42.2%
    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: 39.1% · Lower = rushed or shallow review
    39.1%
    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: 25.7% · Safe to merge
    25.7%
    Repository