-
Notifications
You must be signed in to change notification settings - Fork 72
fix(nvca): gate NVLink ComputeDomain allocation on domain-index annotation #1574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9f84d58
33cb2fa
b07f1a4
1cf6307
4322bb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -846,7 +846,14 @@ func (r *Reconciler) doInstall(ctx context.Context, | |
| infraObjs = append(infraObjs, utilsPod) | ||
|
|
||
| if r.FeatureFlagFetcher.IsAttributeEnabled(featureflag.AttrNVLinkOptimized) { | ||
| infraObjs = append(infraObjs, nvcfdra.NewSingleChannelComputeDomain()) | ||
| cds, refs, err := nvcfdra.ComputeDomainsForWorkload(workloadObjs...) | ||
| if err != nil { | ||
| return reconcile.Result{}, reconcile.TerminalError(fmt.Errorf("compute NVLink ComputeDomains: %w", err)) | ||
| } | ||
| for _, cd := range cds { | ||
| infraObjs = append(infraObjs, cd) | ||
| } | ||
| metaInput.NVLinkComputeDomains = refs | ||
|
Comment on lines
+849
to
+856
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift Prune obsolete ComputeDomains during workload updates. When a Helm-values update removes 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
| // Create the miniservice metadata ConfigMap before any objects are created | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: NVIDIA/nvcf
Length of output: 11933
🏁 Script executed:
Repository: NVIDIA/nvcf
Length of output: 10293
Document the annotation value contract.
required-nvlink-domain-indexmust be a base-10 signed 32-bit integer. Invalid values causeComputeDomainsForWorkloadto return an error. Distinct raw values receive separateComputeDomainobjects, even when they parse to the same integer, such as1and01; document this behavior instead of stating that they share a domain.🤖 Prompt for AI Agents