← Back to Pull requests

impi_rt: make mpivars.deactivate.sh safe under set -e #152

Open
unknown opened this pull request with 174 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 28, 2026 20:06 UTC
Author

Follow-up to #151 (which added the missing libfabric dependency).

Problem. In impi_rt 2021.19.0, etc/conda/deactivate.d/mpivars.deactivate.sh runs `FIP=which fi_info . 2021.19 no longer ships fi_info, so that command fails. conda sources the activation hooks into the same shell as other packages' post-link scripts, so under set -e the failure aborts the whole install. For example, conda create -n t -c conda-forge gdk-pixbuf impi_rt fails with post-link script failed for package gdk-pixbuf and works with impi_rt=2021.18. #151 doesn't fix this, because fi_info is in libfabric-bin, not libfabric.

Changes

  • repack.sh (impi_rt only) patches the deactivate hook:

  • -
    which fi_info becomes $(command -v fi_info 2>/dev/null || true);
    - the build fails if the original line is still present, so a changed upstream script can't silently skip the patch.
  • Test: source the activate + deactivate hooks under bash -e.

  • linux impi impi_dstbuildnum 1 → 2 (build 563).
  • Checked locally on the hooks extracted from impi_rt-2021.19.0-hd2095e1_561: activate + deactivate under bash --posix -e returns 1 on the original and 0 after the patch. The guard returns 1 when the which fi_info` line doesn't match.

    This is a stopgap until Intel fixes the script upstream.

    🤖 Generated with Claude Code

    Diff: 174 lines (+130 / -44) across 2 files Reviewer: david-cortes-intel Review duration: 18613m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 174 lines diff across 2 files
    0.35
    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.309
    Real PR Conversation Timeline
    1 comments
    "Review active on #152"
    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: 35.4% (MEDIUM) · Higher = larger blast radius
    35.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: 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: 18.8% · Safe to merge
    18.8%