From 2cc2f0bdd5fe0fdc1264eef9572c5ec04363cd2e Mon Sep 17 00:00:00 2001 From: "huanyang@alauda.io" Date: Fri, 3 Apr 2026 16:34:02 +0800 Subject: [PATCH] feat: include raw tags as "tag" type labels in allure results Allure results only contained structured labels parsed from @allure.label.* tags. Plain tags like @smoke, @api were dropped, causing downstream Lynx ingestion to produce empty case_tags and fallback case_ids. Now all scenario tags are also written as {name:"tag", value:"@xxx"} labels. --- formatter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/formatter.go b/formatter.go index 2db68b9..f249170 100644 --- a/formatter.go +++ b/formatter.go @@ -80,6 +80,10 @@ func (f *formatter) Pickle(scenario *godog.Scenario) { feature := f.Storage.MustGetFeature(scenario.Uri) labels := GetAllureLabelsFromTags(scenario.Tags) + // Include all raw tags as "tag" type labels for downstream consumers (e.g. Lynx case_tags/case_ids extraction) + for _, tag := range scenario.Tags { + labels = append(labels, report.Label{Name: "tag", Value: tag.Name}) + } labels = append(labels, []report.Label{ {Name: "feature", Value: feature.Feature.Name}, {Name: "framework", Value: "godog"},