← Back to Pull requests

build(bazel): pin the oneAPI wheels in a Renovate-managed lock #3965

Closed
unknown closed this pull request without merging on Oct 31, 2026 20:19 UTC
View on GitHub
unknown unknown commented on Oct 30, 2026 18:09 UTC
Author

Summary

Bazel's fallback deps (@mkl, @tbb, @dpl, @mpi, @ccl) were pinned by URL + sha256 in .bzl files that Renovate cannot update, so Bazel stayed on oneMKL 2025.2 while Make (apt) moved to 2026.1.

| | Before | After |
|---|---|---|
| oneMKL (Bazel) | 2025.2 / 2025.3, hand pins | 2026.1.0 = apt.sh |
| oneTBB (Bazel) | 2023.0 | 2023.1.0 = apt.sh, tbb.sh |
| oneDPL / MPI / CCL | hand pins | same versions, in lock |
| libgomp (@openmp) | 14.2.0 | 14.3.0 (reuses gcc.bzl pin) |
| Who updates | nobody | Renovate (pip_requirements on the lock, conda regex for gcc) |

  • dev/bazel/deps/requirements_lock.txt: pip hash-format lock (written by hashin). prebuilt_libs_repo_rule gains pypi_packages / win_pypi_packages and maps each locked hash to the platform wheel through the PyPI JSON API, or offline by trying the locked hashes. Every download stays sha256-gated.

  • Renovate: one oneAPI group moves the apt packages, the oneTBB tag and the wheels together; _GCC_VERSION in gcc.bzl is bumped through the conda datasource.

  • CI (renovate-validation.yml, new pins job): check_pins.py fails when Make and Bazel pin different oneMKL/oneTBB releases or wheels of one library disagree; relock_conda.py --check fails when gcc.bzl's conda build strings/hashes are stale (a Renovate gcc bump needs python3 dev/bazel/deps/relock_conda.py pushed on top).
  • Evidence

  • Host --config=host --release_dpc=false: //cpp/daal:mkl_linkage_test + //examples/daal/cpp:all pass, with downloaded archives (no ROOT).

  • Online fetch, offline (--repository_cache, dead proxy) fetch, and a tampered lock hash (refused) checked by hand. @mpi, @ccl, @openmp fetch and unpack.

  • Renovate dry run detects the lock and proposes the grouped bump (MKL 2026.2.0, TBB 2023.2.0, oneDPL 2022.14.0); a simulated hashin bump makes Bazel refetch.

  • check_pins.py passes on this tree and fails on an apt.sh-only MKL bump.
  • Merge danger

  • Not built locally: DPC/SYCL (MKL 2026 SONAMEs libmkl_sycl_.so.6, libmkl_core.so.3) and Windows; this draft is for those CI jobs.

  • Open Renovate PRs #3887 (apt oneAPI 2026.2) and #3951 (oneTBB tag 2023.2) would be red on the new pins job after this lands; Renovate replaces them with one grouped PR.

  • Bazel now contacts pypi.org (JSON metadata) in addition to files.pythonhosted.org; mirror setups without the JSON API need the wheels in --repository_cache.
  • 🤖 Generated with Claude Code

    Diff: 315 lines (+236 / -79) across 3 files Reviewer: Alexandr-Solovev Review duration: 1570m
    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 · 315 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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3965"
    general weight: 0.35
    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: 40.4% (MEDIUM) · Higher = larger blast radius
    40.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: 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.9% · Safe to merge
    15.9%