[parity] Ignore crash words in pytest skip/xfail reasons #3767
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
jithunnair-amd
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 withSIGABRT: 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
SIGABRTin those logs is a pytest skip reason:parse_log_filerunsCRASH_PATTERNSon every line, so this skip line addedSIGABRTto 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 stayedRUNNING. The SIGABRT category kept it from being dropped asINCOMPLETE.scan_logsthen 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 byFatal Python error,Got exit code, andSegmentation fault.Testing
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.test_real_crash_is_still_detected.python -m unittest discover -p 'test_*.py'in.automation_scripts/pytorch-unit-test-scripts: 48 tests pass.