← Back to Pull requests

feat: Add 'sys' artifact component for OS-managed system config files #9604

Closed
unknown closed this pull request without merging on Nov 11, 2026 00:21 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 16:49 UTC
Author

Introduce a 'sys' artifact component for files that belong in OS-managed
directories outside the ROCm prefix (ldconfig drop-ins, OpenCL ICD
registrations, systemd units), as proposed in #4753.

- artifact_builder: add 'sys' with default includes /etc/ and /usr/ (excluding /share/doc/, which stays with 'doc'). The extends chain becomes lib → run → dbg → dev → sys → doc → test.
- core-ocl: route etc/OpenCL/vendors/amdocl64.icd and etc/ld.so.conf.d/10-rocm-opencl.conf from 'lib' to 'sys'. The lib descriptor excludes etc/, since the "ld.so.conf.d" directory name otherwise matches lib's /.so. pattern.
- artifact_manager: recognize 'sys' for fetch and stage reuse. analyze_build_times: parse _sys_ archive names.
- Keep consumer output unchanged: amdrocm-opencl (package.json), the rocm-sdk-core wheel and install_rocm_from_artifacts now pick up core-ocl 'sys'. The Windows MSI fetch skips 'sys'.

ISSUE ID: https://github.com/ROCm/TheRock/pull/4753

Test Result

CI run: https://github.com/ROCm/TheRock/actions/runs/40839351380 (Linux, gfx94X-dcgpu)
Compared against nightly main: https://github.com/ROCm/rockrel/actions/runs/40791236520

Artifacts
- New core-ocl_sys_generic contains etc/ld.so.conf.d/10-rocm-opencl.conf and etc/OpenCL/vendors/amdocl64.icd, byte-identical to nightly.
- All 340 artifacts compared with nightly: only core-ocl changed (these 2 files moved lib → sys). rdc and all other artifacts are unaffected.

Packages and wheel (unchanged vs nightly)
- amdrocm-opencl10.3 deb and rpm: identical file lists; ICD and ldconfig conf still installed under /opt/rocm/core-10.3/etc/.
- amdrocm-opencl-dev10.3 / -test10.3 debs: identical.
- rocm_sdk_core wheel: both etc files present, identical contents.

CI jobs
- Build stages, Validate Artifact Structure, DEB/RPM builds, RPM install tests and Python wheel tests passed.

Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 258 lines (+193 / -65) across 3 files Reviewer: nunnikri Review duration: 17731m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 258 lines diff across 3 files
    0.62
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #9604"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 62.4% (MEDIUM) · Higher = larger blast radius
    62.4%
    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: 24.6% · Safe to merge
    24.6%
    Repository