← Back to Pull requests

Add scheduled Python dependency mirror refresh (dev stream). #136

Closed
unknown closed this pull request without merging on Nov 06, 2026 19:21 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 13:32 UTC
Author

Motivation

Fixes ROCm/TheRock#9684. Mirrored third-party Python dependencies in rocm/core/whl-next/ are uploaded once and never refreshed, so the stream lifecycle rules expire them and rocm[...] installs fail. This adds the central mirror workflow in rockrel. Related ROCm/TheRock#7680

Related

Docs: update docs for python dependency updates ROCm/TheRock#9737. Merge this PR first; the docs link to the workflow file added here.
Depends on ROCm/TheRock#9789, which adds the aws_profile input to configure_aws_product_publication_credentials. Merge it first; this workflow uses TheRock main.

Technical Details

Runs weekly (Mondays 06:00 UTC) and on manual dispatch. One job resolves the dependency snapshot once and publishes it with --refresh-existing to therock-repo-amd-<stream>-core.
Credentials come from TheRock's configure_aws_product_publication_credentials action, so role and region selection stay in TheRock. Each stream logs in to its own mirror-<stream> profile, and the publish loop selects it through AWS_PROFILE.
Only dev is enabled. all (also used by the scheduled run) is defined by ALL_STREAMS, which is currently dev. The nightly, bkc and rc login steps exist, but their dispatch options are commented out.
Enabling a stream: uncomment its dispatch option. To include it in all, add it to ALL_STREAMS and add "all" to its login step condition.

Tests

Earlier dry runs of the resolve and publish logic:
dev - https://github.com/ROCm/rockrel/actions/runs/42064832548/job/127375984959
nightly - https://github.com/ROCm/rockrel/actions/runs/42065442527/job/127378139194
all (dev+nightly) - https://github.com/ROCm/rockrel/actions/runs/42073275437/job/127406645142

Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/GOVERNANCE.md#pull-requests.
  • Diff: 239 lines (+179 / -60) across 2 files Reviewer: cgoea Review duration: 3229m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 239 lines diff across 2 files
    0.37
    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.328
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #136"
    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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.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: 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: 14.7% · Safe to merge
    14.7%
    Repository