feat: Implement custom flags support for coverage reports#2070
Merged
nikita-tkachenko-datadog merged 4 commits intomasterfrom Jan 30, 2026
Merged
feat: Implement custom flags support for coverage reports#2070nikita-tkachenko-datadog merged 4 commits intomasterfrom
nikita-tkachenko-datadog merged 4 commits intomasterfrom
Conversation
Add support for the --flags CLI option to allow users to tag and group coverage reports. This enables use cases like splitting coverage by test type (unit/tests) or language version (jvm-21, jvm-17). Changes: - Add --flags CLI option with repeatable usage - Send flags as array of strings in report.flags tag - Implement max 32 flags per report validation - Remove leftover --tags and --measures CLI options - Update tests to cover new flags functionality - Update renderer to display flags in output Flags are sent to the backend API and can be used for carryforward and report filtering. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
55c86df to
e9c4a94
Compare
rtrieu
approved these changes
Jan 26, 2026
Drarig29
reviewed
Jan 28, 2026
Contributor
Drarig29
left a comment
There was a problem hiding this comment.
How are you sure tags and measures were unused?
Contributor
Author
There was never any support for them in the backend, so adding them was effectively a no-op. The only place they were mentioned is the README file here, which never explained how and why to use them |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement custom flags support in the datadog-ci coverage upload command to allow users to tag and group coverage reports. This enables use cases like splitting coverage by test type (unit/integration) or language version (jvm-21, jvm-17), supporting future carryforward functionality.
Changes
--flagsCLI option with repeatable usage:--flags type:unit-tests --flags jvm-21report.flagstag--tagsand--measuresCLI options that were unusedKey Implementation Details
Test Plan
datadog-ci coverage upload --flags type:unit-tests --flags jvm-21 . --dry-run🤖 Generated with Claude Code