Skip to content

fix(tools): include FFI test source paths in JUnit reports - #2649

Open
y9v wants to merge 2 commits into
mainfrom
fix/junit-test-source-paths
Open

y9v wants to merge 2 commits into
mainfrom
fix/junit-test-source-paths

Conversation

@y9v

@y9v y9v commented Oct 8, 2026

Copy link
Copy Markdown
Member

What does this PR do?

It fixes missing source-file paths for FFI tests in JUnit reports, allowing their owners to be determined from CODEOWNERS.

Motivation

Investigating test ownership after #2622 (https://github.com/DataDog/libdatadog/pull/2622) revealed that FFI tests were missing source-file paths in their reports.

The tool checks the first target kind returned by Cargo. For libdd-library-config-ffi, this is staticlib, which was ignored even though the crate also produces a lib. Consequently, its tests could appear unowned despite an existing CODEOWNERS rule.

Additional Notes

Regression test added using actual workspace metadata.

How to test the change?

cargo test - p tools

@y9v
y9v requested a review from cbeauchesne October 8, 2026 13:09
@y9v y9v self-assigned this Oct 8, 2026
@y9v
y9v requested a review from a team as a code owner October 8, 2026 13:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T13:12:22.255028Z 0b09c4b PR opened
🔒 Security Review ✅ Completed 2026-10-08T13:13:09.741704Z 0b09c4b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pr-commenter

pr-commenter Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Benchmarks

Comparison

Candidate

Candidate benchmark details

Baseline

Baseline benchmark details

@datadog-official

datadog-official Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Tests

✅ All CI checks and tests passed.

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 81.51% (+0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c5eb117 | Docs | View more details | Give us feedback!

@cbeauchesne cbeauchesne left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

query to validate (the last line shows NA for main, it must be empty once the CI is finished.

@VianneyRuhlmann VianneyRuhlmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, You need to add the run-all-tests label if you want to properly validate with Charles' query

This branch has not been deployed

No deployments
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.

3 participants