← Back to Pull requests

[parity] Stop promoting log failures already listed in FAILED TESTS #3791

Closed
unknown closed this pull request without merging on Oct 19, 2026 19:12 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 22:21 UTC
Author

Symptom

The parity report's FAILED TESTS table lists some failures twice (run 37420816686 shows FAILED TESTS (20), 4 of them duplicates):

  • mi200/preview default: cpp.test_api | test_api | RNNTest.BidirectionalLSTMReverseForward_CUDA (XML) and cpp/test_api | (blank) | (blank), promoted from the log line cpp/test_api 1/1 failed!. Downstream this blank row became a bogus issue: https://github.com/jithunnair-amd/sandbox/issues/11220.

  • mi350 distributed: distributed.test_symmetric_memory | test.distributed.test_symmetric_memory.SymmetricMemoryTest | test_rendezvous_after_strict_subgroup (XML) and distributed/test_symmetric_memory | SymmetricMemoryTest | test_rendezvous_after_strict_subgroup (log). Same for test_rendezvous_on_overlapping_subgroups.
  • The duplicates were also added to FAILED(rocm) / TOTAL ROCM by add_promoted_failure_stats.

    Root cause

    generate_summary.py:_select_rocm_log_failures skips a log failure only when (arch, file, class, name) exactly matches an XML failure:

  • A whole-file log row has an empty class/name, so it never matches the named XML row for that file.

  • XML classes carry the module path (test.distributed.test_symmetric_memory.SymmetricMemoryTest) while log reasons only have SymmetricMemoryTest, 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):

  • Match tests on (arch, test_config, normalized file, bare class, test name), where bare class is the last dotted component.

  • Drop a whole-file log row (no class/name) when a named failure exists for the same arch, test config and normalized file. Whole-file rows with no named sibling (e.g. a crash before any test ran) are still promoted.

  • FLAKY rows keep their existing exemption.
  • Testing

  • Added 3 tests to test_failure_reporting.py from 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 on develop).

  • Re-ran generate_summary.py on 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.

    Diff: 322 lines (+241 / -81) across 4 files Reviewer: jithunnair-amd Review duration: 14210m
    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
    0.42
    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.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3791"
    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: 41.9% (MEDIUM) · Higher = larger blast radius
    41.9%
    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: 16.6% · Safe to merge
    16.6%
    Repository