[parity] Stop promoting log failures already listed in FAILED TESTS #3791
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 322 lines diff across 4 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.346
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3791"
general
weight: 0.35
jithunnair-amd
Symptom
The parity report's FAILED TESTS table lists some failures twice (run 37420816686 shows
FAILED TESTS (20), 4 of them duplicates):mi200/previewdefault:cpp.test_api | test_api | RNNTest.BidirectionalLSTMReverseForward_CUDA(XML) andcpp/test_api | (blank) | (blank), promoted from the log linecpp/test_api 1/1 failed!. Downstream this blank row became a bogus issue: https://github.com/jithunnair-amd/sandbox/issues/11220.mi350distributed:distributed.test_symmetric_memory | test.distributed.test_symmetric_memory.SymmetricMemoryTest | test_rendezvous_after_strict_subgroup(XML) anddistributed/test_symmetric_memory | SymmetricMemoryTest | test_rendezvous_after_strict_subgroup(log). Same fortest_rendezvous_on_overlapping_subgroups.The duplicates were also added to
FAILED(rocm)/TOTAL ROCMbyadd_promoted_failure_stats.Root cause
generate_summary.py:_select_rocm_log_failuresskips a log failure only when(arch, file, class, name)exactly matches an XML failure:test.distributed.test_symmetric_memory.SymmetricMemoryTest) while log reasons only haveSymmetricMemoryTest, so the exact class comparison misses.Fix
In
_select_rocm_log_failures(used for promotion and for the LOG-BASED table, so counts stay consistent):(arch, test_config, normalized file, bare class, test name), where bare class is the last dotted component.Testing
test_failure_reporting.pyfrom trimmed rows of the run above: whole-file row dropped with a named sibling, kept without one, and log row deduped against a module-qualified XML class. The two dedupe tests fail without the fix.python -m unittest discover -p 'test_*.py': 52 tests OK (49 ondevelop).generate_summary.pyon the run's artifacts: FAILED TESTS 20 -> 16,FAILED(rocm)5/3/5/7 -> 4/3/3/6 (mi200/mi300/mi350/preview), LOG-BASED FAILURES unchanged (5); the remaining log-promoted rows (CK segfaults, codegen timeout) are still listed.This PR was authored with the help of an AI assistant.