← Back to Pull requests

[release/2.7] Fix test_rnn_check_device tests for P1 Jira SWDEV-542659 #2440

Closed
unknown closed this pull request without merging on Aug 02, 2025 06:01 UTC
View on GitHub
unknown unknown commented on Jul 31, 2025 20:30 UTC
Author

This PR has fixes for P1 Jira https://ontrack-internal.amd.com/browse/SWDEV-542659.
In this Jira, there are 3 test files with failing tests.
1) distributed.test_distributed_spawn
2) test_binary_ufuncs
3) test_nn

The test files distributed.test_distributed_spawn & test_binary_ufuncs are passing with latest mainline build-
registry-sc-harbor.amd.com/framework/compute-rocm-dkms-no-npi-hipclang:16426_ubuntu22.04_py3.10_pytorch_lw_release-2.7_fe3d37a9.

The test file test_nn has 2 failing tests- test_batchnorm_3D_train_NCHW_vs_native_mixed_float16 & test_RNN_dropout_state.
The test_batchnorm_3D_train_NCHW_vs_native_mixed_float16 test is skipped from PR https://github.com/ROCm/pytorch/pull/2370.
The test_RNN_dropout_state is fixed by cherry picking upstream commit 1aa971a.

Tested on MI200 with docker image-
registry-sc-harbor.amd.com/framework/compute-rocm-dkms-no-npi-hipclang:16426_ubuntu22.04_py3.10_pytorch_lw_release-2.7_fe3d37a9.

Cherry-picked to release/2.5 branch via https://github.com/ROCm/pytorch/pull/2506

Cherry-picked to release/2.6 branch via https://github.com/ROCm/pytorch/pull/2507

Cherry-picked to release/2.8 branch via https://github.com/ROCm/pytorch/pull/2509

Cherry-picked to rocm7.0_internal_testing branch via https://github.com/ROCm/pytorch/pull/2510

Diff: 168 lines (+126 / -42) across 2 files Reviewer: akashveramd Review duration: 2010m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 168 lines diff across 2 files
0.35
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.307
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2440"
general weight: 0.35
Reviewers
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: 35.1% (MEDIUM) · Higher = larger blast radius
35.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: 13.9% · Safe to merge
13.9%
Repository