Skip to content

categories id#550

Merged
epszaw merged 6 commits into
mainfrom
categories_ids
Mar 30, 2026
Merged

categories id#550
epszaw merged 6 commits into
mainfrom
categories_ids

Conversation

@todti
Copy link
Copy Markdown
Collaborator

@todti todti commented Mar 25, 2026

Added stable category IDs so category identity is no longer based on name.

How it works:
Each category rule can now define id + name.
During normalization, categories are matched/merged by id (not by name).
If id is missing, we keep backward compatibility by using name as fallback.
Awesome category nodes are generated from category.id, so renaming name does not create a new category.
Test results now carry both fields: categories: [{ id, name }].
Logic I introduce:
id: stable key.
name : mutable display label.
Validation + collision checks for normalized IDs to prevent ambiguous config.

export default defineConfig({
  categories: {
    rules: [
      {
        id: "integration.product-errors", // stable ID 
        name: "Product Errors", // display name can be renamed
        matchers: { statuses: ["failed"] },
      },
      {
        id: "integration.test-errors",
        name: "Test Errors",
        matchers: { statuses: ["broken"] },
      },
    ],
  },
});```

@todti todti requested a review from epszaw March 25, 2026 12:55
@todti todti added the type:improvement New feature or request label Mar 25, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 25, 2026

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure 3 Report 23m 39s Passed tests 5518   Skipped tests 15   Unknown tests 12 60 0 0 View
My Dashboard 23m 39s Passed tests 5518   Skipped tests 15   Unknown tests 12 60 0 0 View
Allure 3 GitHub actions run (2026-03-30T12:55:23.654Z) 23m 39s Passed tests 5518   Skipped tests 15   Unknown tests 12 60 0 0 View

Comment thread packages/plugin-testops/src/uploadCategory.ts Outdated
@epszaw epszaw merged commit 800042c into main Mar 30, 2026
11 checks passed
@epszaw epszaw deleted the categories_ids branch March 30, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants