Skip to content

feat: include raw tags as tag type labels in allure results#6

Open
yhuan123 wants to merge 1 commit into
AlaudaDevops:masterfrom
yhuan123:feat/include-raw-tags-in-labels
Open

feat: include raw tags as tag type labels in allure results#6
yhuan123 wants to merge 1 commit into
AlaudaDevops:masterfrom
yhuan123:feat/include-raw-tags-in-labels

Conversation

@yhuan123

@yhuan123 yhuan123 commented Apr 6, 2026

Copy link
Copy Markdown

Summary

  • Allure results 之前只包含从 @allure.label.* 解析出的结构化 labels(如 {name:"case_id", value:"xxx"}
  • 普通 tag(如 @smoke@api@tektoncd-chains-basic)在生成结果时被丢弃
  • 导致下游 Lynx 入库时 case_tags 为空数组,case_ids 走 fallback 使用 historyId
  • 现在将所有场景 tag 同时作为 {name:"tag", value:"@xxx"} 写入 labels,与结构化 labels 共存

Test plan

  • go build ./... 编译通过
  • 本地运行 BDD 测试验证生成的 allure-result JSON 包含 tag 类型 labels
  • 使用修改后的 allure 库重新入库 Lynx,确认 case_tags 和 case_ids 正确填充

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.
@alaudabot

Copy link
Copy Markdown

🚨 Stale Pull Request Warning

This pull request has been inactive for 35 days.

Automated Actions Schedule:

  • ⚠️ Warning: After 30 days (now)
  • 🔒 Auto-close: After 60 days
  • 🗑️ Branch deletion: After 90 days (if not protected)

To keep this PR active:

  • Add new commits
  • Reply to this comment
  • Request reviews

Protected branches (won't be deleted): main,release-*,alauda-*

This is an automated message. Reply to this comment to reset the inactivity timer.

1 similar comment
@alaudabot

Copy link
Copy Markdown

🚨 Stale Pull Request Warning

This pull request has been inactive for 35 days.

Automated Actions Schedule:

  • ⚠️ Warning: After 30 days (now)
  • 🔒 Auto-close: After 60 days
  • 🗑️ Branch deletion: After 90 days (if not protected)

To keep this PR active:

  • Add new commits
  • Reply to this comment
  • Request reviews

Protected branches (won't be deleted): main,release-*,alauda-*

This is an automated message. Reply to this comment to reset the inactivity timer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants