e2e: DRA: compare topology-aware devices with the reference driver devices #896
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 · 330 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.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #896"
general
weight: 0.35
askervin
A new e2e test, test50-dra-standard-slices, compares the DRA devices of the topology-aware policy with the reference driver devices. That driver publishes the standard CPU device attributes.
The test runs these steps:
Our devices may lack the legacy NUMA attributes
dra.net/numaNodeanddra.cpu/numaNodeID. Our devices may also have extra attributes.The test does not compare machine devices. The two drivers pick the claim CPUs in different places. The reference driver groups by machine only with its external allocator. Its machine device then lists the IDs of all its CPUs. The Kubernetes scheduler picks the CPUs of each claim from them. Our policy picks the claim CPUs itself. Our machine device does not list CPU IDs.
The reference driver runs from its staging image. Its chart comes from its git repository, at the commit of the image. By default the test runs the "latest" tag. It fails when that image lags the main branch of the repository by more than 14 days.
Test variables change the defaults.
std_tagsets the image tag.std_max_lag_dayssets the allowed lag.std_allowedsets the attributes which our devices may lack.The test is skipped when DRAConsumableCapacity is not enabled.
Both drivers list the PCIe roots of a device only if the API server accepts list attributes. Our plugin checks this itself. The test turns them on in the reference driver only when a new test helper,
dra-list-attributes, reports support. test43 uses the helper too. The helper fails the test when the check fails for a reason other than a disabled gate.The test fails at start when another dra.cpu driver has slices in the cluster.
Testing