Load pytest Git config plugin from a root conftest.py #10399
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 255 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
Sensitive Paths
sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #10399"
general
weight: 0.35
ScottTodd
Motivation
Since #10294, PyTorch wheel test jobs fail at "Run PyTorch smoketests" with
ImportError: Error importing plugin "_therock_utils.pytest_git_config_plugin"(example run). pytest < 8.4 imports-pplugins before applyingpythonpath, and the job installs pytest 7.3.2 from PyTorch'srequirements-ci.txt.ISSUE ID: #10294
Technical Details
-pentry frompyproject.tomladdopts.conftest.pythat registers the plugin inpytest_configure, afterpythonpathis applied. It does this only when TheRock'spyproject.tomlis the active config, so runs under another config such as-c /dev/nulldon't fail on the import.Test Plan
addoptsdoesn't load it with-pin either form, and collection succeeds under an external config./tmp.python -m pytest <abs>/external-builds/pytorch/smoke-tests.python -m pytest -n 4, compared againstmain.2.16.0a0+rocm10.3.0a20261201): https://github.com/ROCm/TheRock/actions/runs/46709995631Test Result
main, all from this host's environment, so this change adds none.Submission Checklist
Drafted with an AI coding assistant.