← Back to Pull requests

feat(rocdecode): ship samples and utils in the dev package #9772

Closed
unknown closed this pull request without merging on Nov 13, 2026 20:33 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 20:31 UTC
Author

Summary


  • Move rocDecode samples (share/rocdecode/samples/) and utility sources (share/rocdecode/utils/) from the test artifact component to the dev component, so they ship in the development package (amdrocm-decode-devel / the devel pip wheel) instead of the test package.

  • The test component now carries only the CTest project, test scripts, and media.

  • Refresh the package.json descriptions so the test package no longer advertises samples and the devel package mentions them.
  • Why


    roc_video_dec.cpp and the sample sources currently live in the test component, which the multi-arch devel wheel does not pull. This breaks the rocm-examples build with Cannot find source file: .../share/rocdecode/utils/rocvideodecode/roc_video_dec.cpp. Moving samples/utils into dev makes them present wherever the headers and CMake config already ship.

    The component extends-chain keeps the split disjoint automatically: dev is processed before test, so once dev claims samples/ and utils/, the test glob skips them -- no exclude needed. Samples build standalone from dev: their Find modules (share/rocdecode/cmake), public headers (include/rocdecode) and package config (lib/cmake/rocdecode) already ship in dev via default patterns, and amdrocm-decode-devel depends on amdrocm-decode for librocdecode.

    Closes #5402

    Test plan


  • Build therock-artifact-rocdecode and confirm samples/ + utils/ appear in the dev artifact component and are absent from test.

  • Multi-arch devel pip install contains share/rocdecode/utils/rocvideodecode/roc_video_dec.cpp and share/rocdecode/samples/**.

  • rocm-examples rocDecode samples configure/build against the devel install.

  • rocDecode ctest flow (test_rocdecode.py) still builds and runs (test package depends on devel via amdrocm-decode-devel).
  • 🤖 Generated with Claude Code

    Diff: 242 lines (+181 / -61) across 3 files Reviewer: nunnikri Review duration: 11521m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 242 lines diff across 3 files
    0.39
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9772"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    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: 15.3% · Safe to merge
    15.3%
    Repository