Skip to content

add codeowners validation and ensure teams for all tests#7595

Merged
rochdev merged 6 commits intomasterfrom
codeowners-validate
Feb 27, 2026
Merged

add codeowners validation and ensure teams for all tests#7595
rochdev merged 6 commits intomasterfrom
codeowners-validate

Conversation

@rochdev
Copy link
Copy Markdown
Member

@rochdev rochdev commented Feb 22, 2026

What does this PR do?

Add CODEOWNERS validation and ensure teams for all tests.

Motivation

Right now a lot of files are not covered by CODEOWNERS and fallback to dd-trace-js. Instead, every file should have a team.

Additional Notes

For now the check is limited to test files as the main goal is to ensure Test Optimization can properly identify the owner of a test, but ideally every file would have an owner even outside of tests eventually.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.32%. Comparing base (5d8737d) to head (c11c577).
⚠️ Report is 26 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7595   +/-   ##
=======================================
  Coverage   80.32%   80.32%           
=======================================
  Files         733      734    +1     
  Lines       31546    31602   +56     
=======================================
+ Hits        25338    25384   +46     
- Misses       6208     6218   +10     
Flag Coverage Δ
aiguard-macos 38.80% <ø> (-0.23%) ⬇️
aiguard-ubuntu 38.93% <ø> (-0.23%) ⬇️
aiguard-windows 38.66% <ø> (-0.24%) ⬇️
apm-capabilities-tracing-macos 48.54% <ø> (-0.10%) ⬇️
apm-capabilities-tracing-ubuntu 48.57% <ø> (-0.10%) ⬇️
apm-capabilities-tracing-windows 48.27% <ø> (-0.10%) ⬇️
apm-integrations-child-process 38.38% <ø> (-0.22%) ⬇️
apm-integrations-couchbase-18 37.16% <ø> (-0.21%) ⬇️
apm-integrations-couchbase-eol 37.78% <ø> (-0.07%) ⬇️
apm-integrations-oracledb 37.62% <ø> (-0.21%) ⬇️
appsec-express 55.39% <ø> (-0.21%) ⬇️
appsec-fastify 51.72% <ø> (-0.20%) ⬇️
appsec-graphql 51.91% <ø> (-0.19%) ⬇️
appsec-kafka 44.34% <ø> (-0.23%) ⬇️
appsec-ldapjs 43.97% <ø> (-0.20%) ⬇️
appsec-lodash 43.66% <ø> (-0.20%) ⬇️
appsec-macos 58.47% <ø> (-0.20%) ⬇️
appsec-mongodb-core 48.71% <ø> (-0.32%) ⬇️
appsec-mongoose 49.51% <ø> (-0.21%) ⬇️
appsec-mysql 50.89% <ø> (-0.19%) ⬇️
appsec-node-serialize 43.17% <ø> (-0.20%) ⬇️
appsec-passport 47.64% <ø> (-0.22%) ⬇️
appsec-postgres 50.62% <ø> (-0.22%) ⬇️
appsec-sourcing 42.53% <ø> (-0.20%) ⬇️
appsec-template 43.34% <ø> (-0.20%) ⬇️
appsec-ubuntu 58.55% <ø> (-0.20%) ⬇️
appsec-windows 58.33% <ø> (-0.19%) ⬇️
instrumentations-instrumentation-bluebird 32.10% <ø> (-0.20%) ⬇️
instrumentations-instrumentation-body-parser 40.39% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-child_process 37.70% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-cookie-parser 34.14% <ø> (-0.19%) ⬇️
instrumentations-instrumentation-express 34.48% <ø> (-0.19%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 34.28% <ø> (-0.19%) ⬇️
instrumentations-instrumentation-express-session 40.02% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-fs 31.71% <ø> (-0.20%) ⬇️
instrumentations-instrumentation-generic-pool 29.54% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-http 39.73% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-knex 32.11% <ø> (-0.20%) ⬇️
instrumentations-instrumentation-mongoose 33.28% <ø> (-0.19%) ⬇️
instrumentations-instrumentation-multer 40.13% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-mysql2 38.17% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-passport 43.97% <ø> (-0.21%) ⬇️
instrumentations-instrumentation-passport-http 43.63% <ø> (-0.21%) ⬇️
instrumentations-instrumentation-passport-local 44.18% <ø> (-0.21%) ⬇️
instrumentations-instrumentation-pg 37.59% <ø> (-0.22%) ⬇️
instrumentations-instrumentation-promise 32.03% <ø> (-0.20%) ⬇️
instrumentations-instrumentation-promise-js 32.04% <ø> (-0.20%) ⬇️
instrumentations-instrumentation-q 32.08% <ø> (-0.20%) ⬇️
instrumentations-instrumentation-url 32.00% <ø> (-0.20%) ⬇️
instrumentations-instrumentation-when 32.05% <ø> (-0.20%) ⬇️
llmobs-ai 41.21% <ø> (-0.22%) ⬇️
llmobs-anthropic 40.20% <ø> (-0.21%) ⬇️
llmobs-bedrock 39.15% <ø> (-0.19%) ⬇️
llmobs-google-genai 39.73% <ø> (-0.20%) ⬇️
llmobs-langchain 39.43% <ø> (-0.08%) ⬇️
llmobs-openai 44.01% <ø> (-0.22%) ⬇️
llmobs-vertex-ai 39.92% <ø> (-0.28%) ⬇️
platform-core 29.71% <ø> (ø)
platform-esbuild 32.89% <ø> (ø)
platform-instrumentations-misc 42.88% <ø> (+2.35%) ⬆️
platform-shimmer 36.14% <ø> (ø)
platform-unit-guardrails 31.27% <ø> (ø)
plugins-azure-event-hubs 24.02% <ø> (ø)
plugins-azure-service-bus 23.42% <ø> (ø)
plugins-bullmq 43.57% <ø> (-0.21%) ⬇️
plugins-cassandra 37.66% <ø> (-0.21%) ⬇️
plugins-cookie 25.08% <ø> (ø)
plugins-cookie-parser 24.87% <ø> (ø)
plugins-crypto 24.72% <ø> (ø)
plugins-dd-trace-api 38.24% <ø> (-0.23%) ⬇️
plugins-express-mongo-sanitize 25.04% <ø> (ø)
plugins-express-session 24.83% <ø> (ø)
plugins-fastify 42.15% <ø> (-0.22%) ⬇️
plugins-fetch 38.21% <ø> (-0.21%) ⬇️
plugins-fs 38.48% <ø> (-0.23%) ⬇️
plugins-generic-pool 24.06% <ø> (ø)
plugins-google-cloud-pubsub 45.33% <ø> (-0.22%) ⬇️
plugins-grpc 40.85% <ø> (-0.22%) ⬇️
plugins-handlebars 25.08% <ø> (ø)
plugins-hapi 40.02% <ø> (-0.22%) ⬇️
plugins-hono 40.29% <ø> (-0.22%) ⬇️
plugins-ioredis 38.29% <ø> (-0.22%) ⬇️
plugins-knex 24.80% <ø> (ø)
plugins-ldapjs 22.61% <ø> (ø)
plugins-light-my-request 24.48% <ø> (ø)
plugins-limitd-client 32.40% <ø> (-0.20%) ⬇️
plugins-lodash 24.13% <ø> (ø)
plugins-mariadb 39.37% <ø> (-0.23%) ⬇️
plugins-memcached 38.03% <ø> (-0.22%) ⬇️
plugins-microgateway-core 39.05% <ø> (-0.22%) ⬇️
plugins-moleculer 40.41% <ø> (-0.22%) ⬇️
plugins-mongodb 39.08% <ø> (-0.21%) ⬇️
plugins-mongodb-core 38.91% <ø> (-0.22%) ⬇️
plugins-mongoose 38.74% <ø> (-0.21%) ⬇️
plugins-multer 24.83% <ø> (ø)
plugins-mysql 39.04% <ø> (-0.23%) ⬇️
plugins-mysql2 39.15% <ø> (-0.22%) ⬇️
plugins-node-serialize 25.12% <ø> (ø)
plugins-opensearch 37.49% <ø> (-0.21%) ⬇️
plugins-passport-http 24.91% <ø> (ø)
plugins-postgres 35.60% <ø> (-0.18%) ⬇️
plugins-process 24.72% <ø> (ø)
plugins-pug 25.08% <ø> (ø)
plugins-redis 38.77% <ø> (-0.23%) ⬇️
plugins-router 42.89% <ø> (-0.23%) ⬇️
plugins-sequelize 23.66% <ø> (ø)
plugins-test-and-upstream-amqp10 38.36% <ø> (-0.22%) ⬇️
plugins-test-and-upstream-amqplib 43.77% <ø> (-0.18%) ⬇️
plugins-test-and-upstream-apollo 38.92% <ø> (-0.20%) ⬇️
plugins-test-and-upstream-avsc 38.58% <ø> (-0.23%) ⬇️
plugins-test-and-upstream-bunyan 33.69% <ø> (-0.21%) ⬇️
plugins-test-and-upstream-connect 40.69% <ø> (-0.23%) ⬇️
plugins-test-and-upstream-graphql 40.03% <ø> (-0.22%) ⬇️
plugins-test-and-upstream-koa 40.27% <ø> (-0.22%) ⬇️
plugins-test-and-upstream-protobufjs 38.81% <ø> (-0.23%) ⬇️
plugins-test-and-upstream-rhea 43.96% <ø> (-0.28%) ⬇️
plugins-undici 39.00% <ø> (-0.21%) ⬇️
plugins-url 24.72% <ø> (ø)
plugins-valkey 37.92% <ø> (-0.25%) ⬇️
plugins-vm 24.72% <ø> (ø)
plugins-winston 33.90% <ø> (-0.20%) ⬇️
plugins-ws 41.79% <ø> (-0.23%) ⬇️
profiling-macos 39.72% <ø> (-0.23%) ⬇️
profiling-ubuntu 39.85% <ø> (-0.23%) ⬇️
profiling-windows 41.07% <ø> (-0.61%) ⬇️
serverless-azure-functions-client 23.75% <ø> (ø)
serverless-azure-functions-eventhubs 23.75% <ø> (ø)
serverless-azure-functions-servicebus 23.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 22, 2026

Overall package size

Self size: 4.79 MB
Deduped: 5.63 MB
No deduping: 5.63 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.6 | 81.92 kB | 816.75 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Feb 22, 2026

Benchmarks

Benchmark execution time: 2026-02-25 12:56:45

Comparing candidate commit c11c577 in PR branch codeowners-validate with baseline commit 5d8737d in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 230 metrics, 30 unstable metrics.

@datadog-datadog-prod-us1

This comment has been minimized.

@rochdev rochdev marked this pull request as ready for review February 25, 2026 12:40
@rochdev rochdev requested a review from a team as a code owner February 25, 2026 12:40
Comment thread CODEOWNERS
Copy link
Copy Markdown
Collaborator

@juan-fernandez juan-fernandez left a comment

Choose a reason for hiding this comment

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

looks good from test optimization's perspective

Copy link
Copy Markdown
Collaborator

@sabrenner sabrenner left a comment

Choose a reason for hiding this comment

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

lgtm for ml-observability

Comment thread CODEOWNERS
/packages/datadog-plugin-openai/ @DataDog/ml-observability
/packages/dd-trace/src/llmobs/ @DataDog/ml-observability
/packages/dd-trace/test/llmobs/ @DataDog/ml-observability
/packages/dd-trace/test/plugins/util/llm.spec.js @DataDog/ml-observability
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this made me realize that the source file isn't covered in codeowners for this test file, if you wanna add it in, otherwise i'll do it as a driveby in whatever my next pr is 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah there are still a lot of files that are missing coverage. We should eventually expand the check to all files. In the meantime it's more of a best effort.

@tlhunter tlhunter added the dev-ex Developer Experience label Feb 25, 2026
@rochdev rochdev merged commit 2e732ef into master Feb 27, 2026
897 of 899 checks passed
@rochdev rochdev deleted the codeowners-validate branch February 27, 2026 16:15
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-ex Developer Experience semver-patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants