Skip to content

Add fallback detection of coverage data#2114

Merged
edznux-dd merged 4 commits intomasterfrom
edouard/add-auto-coverage-detection
Feb 13, 2026
Merged

Add fallback detection of coverage data#2114
edznux-dd merged 4 commits intomasterfrom
edouard/add-auto-coverage-detection

Conversation

@edznux-dd
Copy link
Contributor

What and why?

This add automatic fallback detection on the coverage based on its content only.
When the coverage file doesn't have the expected names (lets say cover.profile), it'll automatically try to detect the correct format. If it can't guess even with this we will continue with current behaviour.

How?

A brief description of implementation details of this PR.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

@edznux-dd edznux-dd requested a review from a team as a code owner February 13, 2026 09:47
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Feb 13, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 2784873 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@edznux-dd edznux-dd marked this pull request as draft February 13, 2026 09:48
@edznux-dd edznux-dd added the datadog-ci For PRs spanning multiple commands, and repo-wide changes label Feb 13, 2026
@edznux-dd edznux-dd marked this pull request as ready for review February 13, 2026 10:00
Only use the detectCoverageFormatByContent fallback when the coverage
file was directly specified as a positional argument (strict=true),
not when discovered through directory traversal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove expectations for cover.profile and lcov-bazel.info from
directory-scan tests, as these non-standard filenames are no longer
detected via content sniffing during directory traversal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@edznux-dd edznux-dd merged commit b5867d5 into master Feb 13, 2026
26 checks passed
@edznux-dd edznux-dd deleted the edouard/add-auto-coverage-detection branch February 13, 2026 11:20
@ava-silver ava-silver mentioned this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

datadog-ci For PRs spanning multiple commands, and repo-wide changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants