← Back to Pull requests

[parity] Ignore crash words in pytest skip/xfail reasons #3767

Closed
unknown closed this pull request without merging on Nov 11, 2026 23:50 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 15:25 UTC
Author

Symptom

The parity summary reported SIGABRT failures for tests that passed or were skipped, for example:

  • inductor/test_aot_inductor | TestCheckUpperboundConfig | test_aoti_check_upperbound_codegen, FAILED with SIGABRT: TestCheckUpperboundConfig::test_aoti_check_upperbound_codegen (job). That test PASSED; the shard ended with "98 passed, 61 skipped, 2 xfailed, 1 rerun".

  • inductor/test_aot_inductor | AOTInductorTestABICompatibleMps | test_zero_size_buffer_mps (job). That test is SKIPPED ("No MPS backend available").
  • Neither job crashed: there is no exit code -6, no "Fatal Python error", and no "core dumped".

    Root cause

    The only SIGABRT in those logs is a pytest skip reason:

    inductor/test_aot_inductor.py::AOTInductorTestABICompatibleCpu::test_nan_cpu SKIPPED [0.0003s] (Skip this test, only for local test. SIGABRT is produced.) [ 13%]
    

    parse_log_file runs CRASH_PATTERNS on every line, so this skip line added SIGABRT to the shard's crashes. The shard log was printed only because a test was rerun. It ended with "Finished ... took N min" and no "was successful" line, so it stayed RUNNING. The SIGABRT category kept it from being dropped as INCOMPLETE. scan_logs then named the last test it printed as the crashing test.

    Fix

    Don't run crash-pattern matching on pytest result lines for tests that did not fail (PASSED, SKIPPED, XFAIL, XPASS). Real crash lines are unaffected, including a test line followed by Fatal Python error, Got exit code, and Segmentation fault.

    Testing

  • Added test_crash_word_in_skip_reason_is_not_a_crash, using lines from the job above. It fails without the fix and passes with it.

  • Added test_real_crash_is_still_detected.

  • python -m unittest discover -p 'test_*.py' in .automation_scripts/pytorch-unit-test-scripts: 48 tests pass.
  • Diff: 254 lines (+190 / -64) across 3 files Reviewer: jithunnair-amd Review duration: 52345m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 254 lines diff across 3 files
    0.39
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3767"
    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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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.4% · Safe to merge
    15.4%
    Repository