Skip to content

Add tags option#9

Open
nprizal wants to merge 1 commit into
mainfrom
te-6028-add-tags-option
Open

Add tags option#9
nprizal wants to merge 1 commit into
mainfrom
te-6028-add-tags-option

Conversation

@nprizal
Copy link
Copy Markdown
Contributor

@nprizal nprizal commented Jun 4, 2026

bktec is adding support for tagging test results with key=value metadata (buildkite/test-engine-client#530), and this adds a tags array option to the plugin so users can pass tags through to their uploaded results.

plugins:
  - tests#v1.0.0:
      test-runner: rspec
      tags:
        - "language.version=3.3"
        - "os=linux"

Buildkite exposes array plugin properties as indexed env vars (TAGS_0, TAGS_1, ...) but a single string value comes without an index. The environment hook handles both cases, joining multiple tags with commas to form the BUILDKITE_TEST_ENGINE_TAGS value that bktec expects.

Verification

Tested it using local build of bktec

  - name: "Jest"
    commands:
      - my/local/bktec run
    parallelism: 2
    plugins:
      - tests#40cb5e48a8e6b23b4a47d048fad1139a66cc79fb:
          test-runner: jest
          result-path: tmp/jest-result.json
          tags:
            - "my.tag=my.value"
            - "my.other.tag=my.other.value"
Screenshot 2026-06-04 at 1 19 32 PM

@nprizal nprizal changed the title [TE-6028] Add tags option Add tags option Jun 4, 2026
@nprizal nprizal self-assigned this Jun 4, 2026
@nprizal nprizal marked this pull request as ready for review June 4, 2026 00:55
@nprizal nprizal requested a review from a team as a code owner June 4, 2026 00:55
@nprizal nprizal requested a review from malclocke June 4, 2026 00:56
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.

1 participant