← Back to Pull requests

ci: route emulation stage to medium runners for sanitizer builds #10256

Closed
unknown closed this pull request without merging on Nov 24, 2026 23:57 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 16:43 UTC
Author

Summary

Routes the emulation stage to medium runners for ASAN/TSAN sanitizer builds, following the same pattern introduced for native package jobs in #10095.

Also refactors \select_build_runner\ into a \SIZE_POOL_MAP\ ruleset as requested in this review comment on #10095.

ISSUE ID: #10156

Problem

The emulation stage currently runs on \build_runs_on_small\ for all build variants. For sanitizer builds (ASAN/TSAN), the large artifact set produced can cause cpu pressure on small runners, resulting to jobs being OOM'd and killed — the same issue that motivated the \native_package\ routing change in #10095.

Changes

\amdgpu_family_matrix.py\


  • Replaces the \select_build_runner\ if-chain with \SIZE_POOL_MAP\: a dict mapping each size key to a lambda that resolves the runner pool from the build variant. Adding a new job type is now a one-liner in the map — no changes to the function needed.

  • Adds \emulation\ entry: resolves to \medium\ for sanitizer builds, \small\ otherwise
  • \configure_multi_arch_ci.py\


  • Adds \build_runs_on_emulation: str = ""\ field to \BuildConfig\

  • Computes and emits \build_runs_on_emulation\ alongside \build_runs_on_native_package\
  • \multi_arch_build_portable_linux.yml\


  • Adds \build_runs_on_emulation\ input (default: \aws-linux-scale-rocm-small\)

  • Emulation stage uses \build_runs_on_emulation\ instead of \build_runs_on_small\
  • \multi_arch_ci_linux.yml\


  • Passes \build_runs_on_emulation\ from \build_config\ through to \multi_arch_build_portable_linux\
  • \multi_arch_release_linux.yml\


  • Passes \build_runs_on_emulation\ from \build_config\ through to \multi_arch_build_portable_linux\
  • Tests


  • \amdgpu_family_matrix_test.py\: adds \native_package\ and \emulation\ size test cases

  • \configure_multi_arch_ci_test.py\: adds \build_runs_on_emulation\ to Windows \unused_fields\ (emulation is Linux-only)
  • Infrastructure dependencies

    None — uses existing medium runner pools.

    🤖 Generated with Claude Code

    Diff: 274 lines (+205 / -69) across 3 files Reviewer: geomin12 Review duration: 433m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 274 lines diff across 3 files
    0.40
    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.336
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10256"
    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: 39.5% (MEDIUM) · Higher = larger blast radius
    39.5%
    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.6% · Safe to merge
    15.6%
    Repository