From 6e49b0a332ef4a619563b14902312b1ec1eaf1e9 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Thu, 27 Aug 2026 16:02:41 +0200 Subject: [PATCH] fix(archive): make cluster.json test fixtures schema-valid The alex and fritz fixtures used "Flops/s" and "packets/s" as unit bases, which are not in the enum of unit.schema.json ("F/s" is). They are copied into real deployments, where an invalid cluster.json only fails at runtime once main.validate is enabled. Co-Authored-By: Claude Opus 5 (1M context) --- pkg/archive/testdata/archive/alex/cluster.json | 2 +- pkg/archive/testdata/archive/fritz/cluster.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/archive/testdata/archive/alex/cluster.json b/pkg/archive/testdata/archive/alex/cluster.json index f1cf0853..1f9d7c98 100644 --- a/pkg/archive/testdata/archive/alex/cluster.json +++ b/pkg/archive/testdata/archive/alex/cluster.json @@ -46,7 +46,7 @@ { "name": "flops_any", "unit": { - "base": "Flops/s", + "base": "F/s", "prefix": "G" }, "scope": "hwthread", diff --git a/pkg/archive/testdata/archive/fritz/cluster.json b/pkg/archive/testdata/archive/fritz/cluster.json index 3df3a951..7c0b38d0 100644 --- a/pkg/archive/testdata/archive/fritz/cluster.json +++ b/pkg/archive/testdata/archive/fritz/cluster.json @@ -85,7 +85,7 @@ { "name": "flops_any", "unit": { - "base": "Flops/s", + "base": "F/s", "prefix": "G" }, "scope": "hwthread", @@ -118,7 +118,7 @@ { "name": "flops_sp", "unit": { - "base": "Flops/s", + "base": "F/s", "prefix": "G" }, "scope": "hwthread", @@ -150,7 +150,7 @@ { "name": "flops_dp", "unit": { - "base": "Flops/s", + "base": "F/s", "prefix": "G" }, "scope": "hwthread", @@ -327,7 +327,7 @@ { "name": "ib_recv_pkts", "unit": { - "base": "packets/s" + "base": "" }, "scope": "node", "aggregation": "sum", @@ -340,7 +340,7 @@ { "name": "ib_xmit_pkts", "unit": { - "base": "packets/s" + "base": "" }, "scope": "node", "aggregation": "sum",