← Back to Pull requests

ci(miopen): consolidate changelog fragments weekly #16731

Open
unknown opened this pull request with 309 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 25, 2026 16:57 UTC
Author

JIRA ID: ALMIOPEN-3363

Motivation


Routine MIOpen PRs edit the same changelog sections and conflict. Give each entry its own file and consolidate entries in a reviewed bot PR.

Technical Details


  • Add validated fragments under projects/miopen/changelog.d/ for user-facing changes. Fragments inherit MIOpen reviewer ownership; CHANGELOG.md retains both MIOpen and docs CODEOWNERS.

  • Fold fragments into the newest section only if its heading starts with ## (Unreleased) . Match section names case-insensitively, reject duplicate matches, sort numbered fragments numerically, and support deprecation entries.

  • Reuse one shared workflow and the existing Libraries GitHub App. MIOpen is the only project in the Python opt-in list. The workflow opens or updates a separate rolling PR per opted-in project on Mondays or on manual dispatch. Changes to fragments or CHANGELOG.md on develop refresh an open fold PR without opening a new one. Before merging, verify that the target release heading and consumed fragments still match develop.

  • Reuse the existing pre-commit lane for fragment validation. The opt-in checklist requires verifying that the hook passes a valid fragment without skipping it and rejects an invalid fragment. Document local validation for release-branch backports and exclude workflow-only edits from TheRock CI.
  • Risk Assessment


    Risk Level: Medium. The workflow updates a bot branch, not develop, and the fold PR remains subject to normal review and required checks. A fragment can change before an automatic refresh completes; before merging, verify that the consumed fragments still exist unchanged on develop.

    Test Plan


    After merge, dispatch the workflow once a real fragment lands on develop. Verify that the App opens a PR with only the changelog update and consumed fragment deletions, and that required checks report. Verify that editing or reverting a pending fragment refreshes the open fold PR.

    Test Result


    Seven assembler tests, six sparse-checkout helper tests, scoped pre-commit, and actionlint passed. A local sparse-checkout smoke test verified that two opted-in projects fold independently. The MIOpen rollout fragment passed validation and can be used for the first live run after merge. The live GitHub App run has not been tested.

    Scoped pre-commit and actionlint passed after the rollover change. A local rollover smoke test folded an entry into 3.6.4 and left the finalized 3.6.3 section unchanged.

    Diff: 309 lines (+231 / -78) across 3 files Reviewer: JonathanLichtnerAMD Review duration: 8057m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 309 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.343
    Real PR Conversation Timeline
    1 comments
    "Review active on #16731"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 40.2% (MEDIUM) · Higher = larger blast radius
    40.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 21.4% · Safe to merge
    21.4%