Topology mapped one NUMA node per CPU, so on a 2-socket SNC2 host (nodes 0-3) node 1 went to CPU1 and nodes 2-3 got no CPU: the second BlueField-3, four GPUs and several NICs rendered unattached. Use numa-nodes.txt (node=N package=P), now carried by parser v26 as TopologyEvidence.NUMANodes; without it, fall back to contiguous per-socket blocks of zero-based node ids. Pin parser v26.0.0. ADL-082. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
885 B
Go
36 lines
885 B
Go
package server
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.mchus.pro/reanimator/parser/v26/models"
|
|
)
|
|
|
|
func TestBuildParserFieldSummary_MirrorsBoardInfoToTopLevel(t *testing.T) {
|
|
result := &models.AnalysisResult{
|
|
Hardware: &models.HardwareConfig{
|
|
BoardInfo: models.BoardInfo{
|
|
Manufacturer: "Supermicro",
|
|
ProductName: "SYS-821GE-TNHR",
|
|
SerialNumber: "A514359X5C08846",
|
|
PartNumber: "SYS-821GE-TNHR",
|
|
},
|
|
},
|
|
}
|
|
|
|
got := buildParserFieldSummary(result)
|
|
|
|
if got["vendor"] != "Supermicro" {
|
|
t.Fatalf("expected vendor mirror, got %v", got["vendor"])
|
|
}
|
|
if got["model"] != "SYS-821GE-TNHR" {
|
|
t.Fatalf("expected model mirror, got %v", got["model"])
|
|
}
|
|
if got["serial"] != "A514359X5C08846" {
|
|
t.Fatalf("expected serial mirror, got %v", got["serial"])
|
|
}
|
|
if got["part_number"] != "SYS-821GE-TNHR" {
|
|
t.Fatalf("expected part_number mirror, got %v", got["part_number"])
|
|
}
|
|
}
|