test: federate tracer test ownership to product owners #21717
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 428 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #21717"
general
weight: 0.35
wconti27
Description
Let product teams review and maintain their own tests directly, reducing unnecessary reliance on SDK Capabilities for changes outside tracing. This PR federates ownership of tests currently grouped under
tests/tracer/by moving them into the appropriate product folders, where existing directory ownership routes reviews to the right teams.The first commit fixes test isolation on the original paths, so it can be extracted into a standalone PR. The remaining commits group the moves by destination code owner; each move includes its old-path removal.
| Commit | Review scope | Code owners |
| --- | --- | --- |
| 9bf8b67 | Standalone test isolation fixes on original paths | @DataDog/apm-sdk-capabilities |
| b9407b6 | Shared utilities, configuration and process identity | @DataDog/apm-core-python |
| 34ffbc2 | AWS Lambda runtime identity and lifecycle | @DataDog/apm-serverless, @DataDog/serverless-aws |
| 20dedfb | Git metadata and CI writer tests | @DataDog/ci-app-libraries |
| a7f8562 | Botocore span pointers and shared web assertions | @DataDog/python-guild, @DataDog/apm-idm-python |
| e2d0355 | ASM tracing, propagation and sampling | @DataDog/asm-python |
| c0df536 | Standalone tests and shared test plumbing | @DataDog/python-guild, @DataDog/apm-core-python (CODEOWNERS) |
Split mixed files along these boundaries and update fixture paths, subprocess imports and CI selection. The moved settings tests become
test_config.pyto avoid the existingtest_settings.py. The Git metadata fixture usesuvto install its local wheel.The only CODEOWNERS change removes the obsolete ASM propagation override.
Testing
Risks
Test node IDs and review routing change. Runtime code is unchanged.
Additional Notes
APMAPI-2792. Test-only cleanup; no release note needed.
Compared with the median of 10 recent main runs, the measured PR run reduces the slowest tracer job from 8m06s to 5m57s (~27%) and increases internal from 11m36s to 13m23s (~15%). Internal remains within main’s observed range and finishes before profiling (15m11s) and OpenTelemetry (14m57s), so it does not become the test bottleneck. We’re keeping runner allocation unchanged in this ownership cleanup.
[APMAPI-2792]: https://datadoghq.atlassian.net/browse/APMAPI-2792?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ