Make per-chip TPU device UUIDs unique per node #36
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 237 lines diff across 2 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.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #36"
general
weight: 0.35
troychiu
What type of PR is this?
/kind bug
What this PR does / why we need it:
getTpuInfoseeded the UUID generator withNODE_NAMEalone, so every chip on a node was published with the sameuuidattribute on its ResourceSlice device, and in ResourceClaim status where device status is enabled. Onlyindexdistinguished the chips, so an attribute whose job is to identify a chip did not identify anything.This seeds per chip, so UUIDs are unique within a node and stay stable across restarts. Nothing in the driver misbehaved because of the duplication:
uuidis not used as a map key, a CDI device name or a checkpoint key, andstatus.devicesalready carries pool and device.Which issue(s) this PR is related to:
N/A
Special notes for your reviewer:
It came out of a survey of DRA features that dra-example-driver demonstrates but the two hardware drivers do not. See the comment below for the list. Each of those stands on its own merit rather than on parity, and this one is a bug that turned up while testing them.
Technical note worth your attention: this changes a published device attribute on every existing node. The previous value was never distinct for each chip, so nothing could have relied on it as device identity, but it is still a change to published API surface rather than a free fix.
AI Usage : This was flagged as a bug while testing some of the other PRs for this driver by an AI bot, so I am sending it as a separate PR to address that bug. AI helped me reproduce this issue independently and validate the fix using kind clusters.
Does this PR introduce a user-facing change?
``
release-note
``Fixed TPU device UUIDs so that each chip on a node gets a distinct, stable uuid attribute. Previously every chip on a node was published with the same value, so the attribute could not be used to tell chips apart.