From ad6013adbf6eb456c88ac383fb04afb3f9fe5ce6 Mon Sep 17 00:00:00 2001 From: TheiLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> Date: Fri, 9 Jan 2026 00:58:28 +0100 Subject: [PATCH] fix: Treat missing metrics as info --- test/loadtest/internal/cmd/report.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/loadtest/internal/cmd/report.go b/test/loadtest/internal/cmd/report.go index aa273a5..7bf4cc6 100644 --- a/test/loadtest/internal/cmd/report.go +++ b/test/loadtest/internal/cmd/report.go @@ -608,7 +608,11 @@ func compareMetricWithExpected(name string, oldValue, newValue, expected float64 oldMeetsExp := meetsExpected(oldValue, expected) newMeetsExp := meetsExpected(newValue, expected) - if expected > 0 && threshold.metricType == ShouldMatch { + isNewMetric := info.isCounter && oldValue == 0 && newValue > 0 && expected == 0 + + if isNewMetric { + status = "info" + } else if expected > 0 && threshold.metricType == ShouldMatch { if newMeetsExp == "✗" { status = "fail" }