fix: discover the MPS pipe directory for IPC mounts #2143
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 261 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.333
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2143"
general
weight: 0.35
cdesiniotis
Description
NewIPCDiscovererintends to mount the MPS pipe directory (/tmp/nvidia-mps) alongside the persistenced and fabricmanager sockets, but it located it with a file locator. The file locator's default filter (assertFile) rejects directories, and the miss is only logged at debug level, so the MPS pipe directory was never found and no mount was emitted for it in generated CDI specs or the runtime's automatic CDI modifications.This change uses the existing directory locator for the MPS pipe directory. The socket lookup and the IPC mount options (
nosuid,nodev,rbind,rprivate,noexec) are unchanged.The legacy (libnvidia-container) path is not affected; it already locates the MPS pipe directory in
nvc_info.c.Known gaps, not addressed here:
CUDA_MPS_PIPE_DIRECTORY; the Go discoverer still only checks/tmp/nvidia-mps./tmpand may still not be found.Checklist
make test)make lint)Testing
TestNewIPCDiscoverer, a table test over a temporary driver root covering: no IPC paths present, the MPS directory (emitted with the IPC mount options), a regular file at the MPS path (ignored), sockets under/runand/var/run, socket paths that are directories (ignored), and sockets together with MPS. The MPS case fails with the previous file locator.go test ./internal/discover/... ./pkg/lookup/...,go vet, andgolangci-lint runon the touched packages pass.🤖 Generated with Claude Code