← Back to Pull requests

ci(jax): build ASAN JAX wheels in ASAN release runs #9884

Open
unknown opened this pull request with 269 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 11, 2026 00:10 UTC
Author

Merge order:

  • Before this: ROCm/rockrel#151. This PR makes every release dispatch rockrel's JAX workflow with build_variant, and GitHub rejects undeclared inputs, so without #151 all rockrel JAX releases fail.

  • After this: ROCm/rockrel#152, which forwards build_variant and turns build_jax on for the ASAN nightly. Until then nothing changes: build_jax defaults to false here.
  • Motivation

    Host-ASAN JAX wheels next to the ASAN ROCm and PyTorch wheels (#8662, #8674, #8675), wired the same way.

    Technical Details

  • multi_arch_release_linux.yml passes build_variant to the JAX release, as it does to PyTorch. multi_arch_release_asan.yml gets a build_jax input.

  • An ASAN variant builds one row (CI ref, one Python), skips tests, and publishes to whl-next-asan. publish_jax_to_release_bucket.py now takes --index-type and --build-variant and uses the shared build_variant_index_suffix / get_python_index, like the PyTorch publisher.

  • No JAX-side version label: as for torch, the ASAN ROCm version labels the wheel, e.g. 0.12.0+rocm10.3.0a20261119-asandebug.

  • Flags: --config=asan_shared --copt=-fsanitize=address --copt=-fno-gpu-sanitize --linkopt=-fsanitize=address. The ROCm toolchain pinned by the JAX release branches has no asan feature, so asan_shared alone builds uninstrumented wheels.

  • Follow-up: add the JAX packages to the whl-next-asan aggregate index once #10039 lands.
  • Test Plan

    Unit tests, pre-commit, zizmor; earlier, a trial build of rocm-jaxlib-v0.12.0 with these flags on gfx950.

    Test Result

  • Unit tests (new ones for the matrix, version and publisher), pre-commit and zizmor pass.

  • Trial build: every plugin/PJRT .so imports __asan_report_*. On regular ROCm and on ASAN ROCm packages, a smoke test passes and a poisoned host buffer reports use-after-poison in the plugin. Running needs ROCm's ASAN runtime and HSA preloaded (README).

  • Not tested: the release path end to end, and building against ASAN ROCm packages.
  • Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 269 lines (+201 / -68) across 3 files Reviewer: nunnikri Review duration: 29373m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 269 lines diff across 3 files
    0.39
    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%
    42%
    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.335
    Real PR Conversation Timeline
    1 comments
    "Review active on #9884"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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.4% (MEDIUM) · Higher = larger blast radius
    39.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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 22.5% · Safe to merge
    22.5%
    Repository