fix(webui): keep Check-only tasks out of Load
This commit is contained in:
@@ -103,18 +103,21 @@ func (h *handler) planSATRunAll(ctx context.Context, req satRunAllRequest) ([]sa
|
||||
satRunAllSpec{target: "storage", params: taskParams{StressMode: req.StressMode}},
|
||||
)
|
||||
|
||||
if h.opts.App.TPMPresent() {
|
||||
specs = append(specs, satRunAllSpec{target: "tpm", params: taskParams{}})
|
||||
} else {
|
||||
skip("TPM: no TPM device on this host; check skipped")
|
||||
if !req.StressMode {
|
||||
if h.opts.App.TPMPresent() {
|
||||
specs = append(specs, satRunAllSpec{target: "tpm", params: taskParams{}})
|
||||
} else {
|
||||
skip("TPM: no TPM device on this host; check skipped")
|
||||
}
|
||||
}
|
||||
|
||||
gp := h.opts.App.DetectGPUPresence()
|
||||
|
||||
if gp.Nvidia || gp.NvidiaInitializing {
|
||||
// nvidia-config only collects inventory and NVLink state; safe to run
|
||||
// even while the compute stack is still coming up.
|
||||
specs = append(specs, satRunAllSpec{target: "nvidia-config", params: taskParams{}})
|
||||
// nvidia-config is a read-only Check task, not a load test.
|
||||
if !req.StressMode {
|
||||
specs = append(specs, satRunAllSpec{target: "nvidia-config", params: taskParams{}})
|
||||
}
|
||||
|
||||
health, gpus, ready := h.waitForNvidiaReady(ctx)
|
||||
switch {
|
||||
@@ -138,10 +141,12 @@ func (h *handler) planSATRunAll(ctx context.Context, req satRunAllRequest) ([]sa
|
||||
if !health.CUDAReady {
|
||||
notes = append(notes, "NVIDIA: CUDA runtime not confirmed ready; GPU tests queued anyway")
|
||||
}
|
||||
gpuTargets := []string{"nvidia", "nvidia-interconnect", "nvidia-bandwidth"}
|
||||
gpuTargets := []string{"nvidia", "nvidia-bandwidth"}
|
||||
if req.StressMode {
|
||||
// Stress tier adds the targeted dcgmi diag load tests.
|
||||
gpuTargets = append(gpuTargets, "nvidia-targeted-stress", "nvidia-targeted-power", "nvidia-pulse")
|
||||
} else {
|
||||
gpuTargets = append(gpuTargets, "nvidia-interconnect")
|
||||
}
|
||||
for _, target := range gpuTargets {
|
||||
specs = append(specs, satRunAllSpec{
|
||||
@@ -152,7 +157,7 @@ func (h *handler) planSATRunAll(ctx context.Context, req satRunAllRequest) ([]sa
|
||||
}
|
||||
}
|
||||
|
||||
if gp.AMD {
|
||||
if gp.AMD && !req.StressMode {
|
||||
for _, target := range req.AMDTargets {
|
||||
switch target {
|
||||
case "amd", "amd-mem", "amd-bandwidth":
|
||||
|
||||
Reference in New Issue
Block a user