← Back to Pull requests

Make per-chip TPU device UUIDs unique per node #36

Closed
unknown closed this pull request without merging on Sep 02, 2026 17:36 UTC
View on GitHub
unknown unknown commented on Aug 17, 2026 18:23 UTC
Author

What type of PR is this?

/kind bug

What this PR does / why we need it:

getTpuInfo seeded the UUID generator with NODE_NAME alone, so every chip on a node was published with the same uuid attribute on its ResourceSlice device, and in ResourceClaim status where device status is enabled. Only index distinguished 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: uuid is not used as a map key, a CDI device name or a checkpoint key, and status.devices already 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.
``

Diff: 237 lines (+177 / -60) across 2 files Reviewer: troychiu Review duration: 22992m
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
0.37
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.327
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #36"
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: 37.2% (MEDIUM) · Higher = larger blast radius
37.2%
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: 14.7% · Safe to merge
14.7%