From 6dc44c973d8b23a8fb4c4c4e4bebde1468833379 Mon Sep 17 00:00:00 2001 From: Leonardo Di Giovanna Date: Mon, 20 Jul 2026 10:48:19 +0200 Subject: [PATCH] fix(suite/loader): avoid YAML-encoding test's source index A test's source index doesn't need to be propagated to any child process through the tests description YAML encoding, as it is already propagated in the baggage. Signed-off-by: Leonardo Di Giovanna --- pkg/test/loader/loader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/test/loader/loader.go b/pkg/test/loader/loader.go index 4d06df2f..cdd7842b 100644 --- a/pkg/test/loader/loader.go +++ b/pkg/test/loader/loader.go @@ -397,7 +397,7 @@ type Test struct { // SourceIndex is the position of the test in the source from which it has been loaded. All tests generated from // the same test template, shares the same source position (which is equal to the test template position in the // source). - SourceIndex int + SourceIndex int `yaml:"-" mapstructure:"-"` } // validateNameUniqueness validates that names used for test resources and steps are unique.