Skip to content

refactor(libdd-capabilities)!: remove transitive dependency#1895

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
julio/remove-transitive-dependency
Apr 21, 2026
Merged

refactor(libdd-capabilities)!: remove transitive dependency#1895
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
julio/remove-transitive-dependency

Conversation

@hoolioh
Copy link
Copy Markdown
Contributor

@hoolioh hoolioh commented Apr 20, 2026

What does this PR do?

PR removes libdd-capabilities as a transitive dependency of libdd-common, cleaning up the layering so libdd-capabilities-impl owns the bridge between traits and infra.

Motivation

Deduplicate dependencies. The current layout leads to this kind of situations:

datadog-sidecar                                                                                                                                                                                              
  ├── libdd-common                                                                                                                                                                                             
  │   └── libdd-capabilities        
  ├── libdd-capabilities-impl
  │   ├── libdd-capabilities (*)                                                                                                                                
  │   └── libdd-common (*)                                                                                                                                                                      
  └── ...                                

@github-actions
Copy link
Copy Markdown
Contributor

Clippy Allow Annotation Report

Comparing clippy allow annotations between branches:

  • Base Branch: origin/main
  • PR Branch: origin/julio/remove-transitive-dependency

Summary by Rule

Rule Base Branch PR Branch Change
unwrap_used 8 8 No change (0%)
Total 8 8 No change (0%)

Annotation Counts by File

File Base Branch PR Branch Change
datadog-sidecar/src/service/agent_info.rs 4 4 No change (0%)
datadog-sidecar/src/service/tracing/trace_flusher.rs 1 1 No change (0%)
libdd-common/src/lib.rs 3 3 No change (0%)

Annotation Stats by Crate

Crate Base Branch PR Branch Change
clippy-annotation-reporter 5 5 No change (0%)
datadog-ffe-ffi 1 1 No change (0%)
datadog-ipc 21 21 No change (0%)
datadog-live-debugger 6 6 No change (0%)
datadog-live-debugger-ffi 10 10 No change (0%)
datadog-profiling-replayer 4 4 No change (0%)
datadog-remote-config 3 3 No change (0%)
datadog-sidecar 56 56 No change (0%)
libdd-common 10 10 No change (0%)
libdd-common-ffi 12 12 No change (0%)
libdd-data-pipeline 4 4 No change (0%)
libdd-ddsketch 2 2 No change (0%)
libdd-dogstatsd-client 1 1 No change (0%)
libdd-profiling 13 13 No change (0%)
libdd-telemetry 19 19 No change (0%)
libdd-tinybytes 4 4 No change (0%)
libdd-trace-normalization 2 2 No change (0%)
libdd-trace-obfuscation 8 8 No change (0%)
libdd-trace-stats 1 1 No change (0%)
libdd-trace-utils 15 15 No change (0%)
Total 197 197 No change (0%)

About This Report

This report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 92.30769% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.57%. Comparing base (0b00c9c) to head (38ff9d1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1895      +/-   ##
==========================================
- Coverage   71.60%   71.57%   -0.03%     
==========================================
  Files         431      432       +1     
  Lines       69156    69156              
==========================================
- Hits        49517    49499      -18     
- Misses      19639    19657      +18     
Components Coverage Δ
libdd-crashtracker 65.99% <ø> (-0.03%) ⬇️
libdd-crashtracker-ffi 34.09% <ø> (-0.39%) ⬇️
libdd-alloc 98.77% <ø> (ø)
libdd-data-pipeline 85.93% <ø> (+0.45%) ⬆️
libdd-data-pipeline-ffi 74.29% <ø> (+2.35%) ⬆️
libdd-common 79.10% <ø> (-0.07%) ⬇️
libdd-common-ffi 73.87% <ø> (ø)
libdd-telemetry 68.07% <ø> (ø)
libdd-telemetry-ffi 19.37% <ø> (ø)
libdd-dogstatsd-client 82.64% <ø> (ø)
datadog-ipc 74.84% <ø> (-1.48%) ⬇️
libdd-profiling 81.61% <ø> (+0.01%) ⬆️
libdd-profiling-ffi 64.36% <ø> (ø)
datadog-sidecar 29.23% <ø> (-0.21%) ⬇️
datdog-sidecar-ffi 7.07% <ø> (-0.97%) ⬇️
spawn-worker 54.69% <ø> (ø)
libdd-tinybytes 93.16% <ø> (ø)
libdd-trace-normalization 81.71% <ø> (ø)
libdd-trace-obfuscation 87.26% <ø> (ø)
libdd-trace-protobuf 68.25% <ø> (ø)
libdd-trace-utils 89.24% <ø> (ø)
datadog-tracer-flare 86.88% <ø> (ø)
libdd-log 74.69% <ø> (ø)
🚀 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.

@datadog-prod-us1-4
Copy link
Copy Markdown

datadog-prod-us1-4 Bot commented Apr 20, 2026

Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 92.31%
Overall Coverage: 71.58% (-0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 38ff9d1 | Docs | Datadog PR Page | Give us feedback!

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Apr 20, 2026

Artifact Size Benchmark Report

aarch64-alpine-linux-musl
Artifact Baseline Commit Change
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so 7.63 MB 7.63 MB 0% (0 B) 👌
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.a 83.31 MB 83.34 MB +.02% (+25.42 KB) 🔍
aarch64-unknown-linux-gnu
Artifact Baseline Commit Change
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.10 MB 10.10 MB +0% (+264 B) 👌
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.a 99.40 MB 99.41 MB +.01% (+12.25 KB) 🔍
libdatadog-x64-windows
Artifact Baseline Commit Change
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.dll 25.18 MB 25.17 MB --.04% (-12.00 KB) 💪
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.lib 79.90 KB 79.90 KB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.pdb 184.34 MB 184.41 MB +.03% (+64.00 KB) 🔍
/libdatadog-x64-windows/debug/static/datadog_profiling_ffi.lib 917.46 MB 918.26 MB +.08% (+821.07 KB) 🔍
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.dll 7.89 MB 7.89 MB +0% (+512 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.lib 79.90 KB 79.90 KB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.pdb 23.66 MB 23.67 MB +.03% (+8.00 KB) 🔍
/libdatadog-x64-windows/release/static/datadog_profiling_ffi.lib 46.18 MB 46.18 MB +.01% (+6.39 KB) 🔍
libdatadog-x86-windows
Artifact Baseline Commit Change
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.dll 21.65 MB 21.65 MB +0% (+1.50 KB) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.lib 81.14 KB 81.14 KB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.pdb 188.44 MB 188.53 MB +.04% (+96.00 KB) 🔍
/libdatadog-x86-windows/debug/static/datadog_profiling_ffi.lib 902.76 MB 903.84 MB +.11% (+1.07 MB) 🔍
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.dll 6.13 MB 6.13 MB +0% (+512 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.lib 81.14 KB 81.14 KB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.pdb 25.35 MB 25.36 MB +.03% (+8.00 KB) 🔍
/libdatadog-x86-windows/release/static/datadog_profiling_ffi.lib 43.66 MB 43.67 MB +.01% (+6.90 KB) 🔍
x86_64-alpine-linux-musl
Artifact Baseline Commit Change
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.a 74.42 MB 74.42 MB +0% (+6.64 KB) 👌
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so 8.52 MB 8.52 MB 0% (0 B) 👌
x86_64-unknown-linux-gnu
Artifact Baseline Commit Change
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.a 91.77 MB 91.78 MB +0% (+9.09 KB) 👌
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so 10.20 MB 10.20 MB +0% (+456 B) 👌

@hoolioh hoolioh force-pushed the julio/remove-transitive-dependency branch from c118ab7 to d55181e Compare April 20, 2026 10:56
@hoolioh hoolioh force-pushed the julio/remove-transitive-dependency branch from d55181e to b52e3d8 Compare April 20, 2026 10:57
Copy link
Copy Markdown
Contributor

@Aaalibaba42 Aaalibaba42 left a comment

Choose a reason for hiding this comment

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

LGTM, I don't remember why I didn't do that in the first place

Comment thread libdd-capabilities-impl/src/http.rs Outdated
@hoolioh hoolioh marked this pull request as ready for review April 20, 2026 11:15
@hoolioh hoolioh requested review from a team as code owners April 20, 2026 11:15
@hoolioh hoolioh changed the title refactor(libdd-capabilities): remove transitive dependency refactor!(libdd-capabilities): remove transitive dependency Apr 20, 2026
@hoolioh hoolioh changed the title refactor!(libdd-capabilities): remove transitive dependency refactor(libdd-capabilities)!: remove transitive dependency Apr 20, 2026
@hoolioh
Copy link
Copy Markdown
Contributor Author

hoolioh commented Apr 21, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented Apr 21, 2026

View all feedbacks in Devflow UI.

2026-04-21 07:58:55 UTC ℹ️ Start processing command /merge


2026-04-21 07:58:59 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 43m (p90).


2026-04-21 08:31:43 UTCMergeQueue: The checks failed on this merge request

Tests failed on this commit f8e6dd9:

What to do next?

  • Investigate the failures and when ready, re-add your pull request to the queue!
  • If your PR checks are green, try to rebase/merge. It might be because the CI run is a bit old.
  • Any question, go check the FAQ.

@hoolioh
Copy link
Copy Markdown
Contributor Author

hoolioh commented Apr 21, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented Apr 21, 2026

View all feedbacks in Devflow UI.

2026-04-21 09:28:49 UTC ℹ️ Start processing command /merge


2026-04-21 09:28:54 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 43m (p90).


2026-04-21 10:04:42 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit bdb0ad5 into main Apr 21, 2026
158 of 163 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the julio/remove-transitive-dependency branch April 21, 2026 10:04
hoolioh added a commit that referenced this pull request Apr 23, 2026
# Release proposal for libdd-capabilities-impl and its dependencies

This PR contains version bumps based on public API changes and commits
since last release.

## libdd-capabilities
**Next version:** `1.0.0`
**Semver bump:** `major`
**Tag:** `libdd-capabilities-v1.0.0`

**Warning:** this is an initial release. Please verify that the version
and commits included are correct.


## libdd-common
**Next version:** `4.0.0`
**Semver bump:** `major`
**Tag:** `libdd-common-v4.0.0`

### Commits

- chore(benchmarks): add allocation size tracking allocator (#1905)
- refactor(libdd-capabilities)!: remove transitive dependency (#1895)
- feat(runtime)!: add shared runtime (#1602)
- fix(crypto): use `ring` for non-fips builds (#1816)
- fix(ci): skip thread counting test (#1841)
- chore(ci): mock now function for rate limiter in tests to make them
deterministic (#1842)
- fix(entity_id): Handle Podman cgroupns=host cgroup path (#1828)
- feat(capabilities)!: trait architecture http (#1555)
- feat!: implement HTTP common component (#1624)
- fix(common): don't use reqwest http proxies (#1810)
- test(miri): skip reqwest test that takes 10mn (#1784)

## libdd-capabilities-impl
**Next version:** `1.0.0`
**Semver bump:** `major`
**Tag:** `libdd-capabilities-impl-v1.0.0`

**Warning:** this is an initial release. Please verify that the version
and commits included are correct.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: hoolioh <107922352+hoolioh@users.noreply.github.com>
hoolioh added a commit that referenced this pull request Apr 27, 2026
# Release proposal for libdd-capabilities-impl and its dependencies

This PR contains version bumps based on public API changes and commits
since last release.

## libdd-capabilities
**Next version:** `1.0.0`
**Semver bump:** `major`
**Tag:** `libdd-capabilities-v1.0.0`

**Warning:** this is an initial release. Please verify that the version
and commits included are correct.


## libdd-common
**Next version:** `4.0.0`
**Semver bump:** `major`
**Tag:** `libdd-common-v4.0.0`

### Commits

- fix(libdd-common): fix condition so testing with --all-features works
(#1919)
- chore(benchmarks): add allocation size tracking allocator (#1905)
- refactor(libdd-capabilities)!: remove transitive dependency (#1895)
- feat(runtime)!: add shared runtime (#1602)
- fix(crypto): use `ring` for non-fips builds (#1816)
- fix(ci): skip thread counting test (#1841)
- chore(ci): mock now function for rate limiter in tests to make them
deterministic (#1842)
- fix(entity_id): Handle Podman cgroupns=host cgroup path (#1828)
- feat(capabilities)!: trait architecture http (#1555)
- feat!: implement HTTP common component (#1624)
- fix(common): don't use reqwest http proxies (#1810)
- test(miri): skip reqwest test that takes 10mn (#1784)

## libdd-capabilities-impl
**Next version:** `1.0.0`
**Semver bump:** `major`
**Tag:** `libdd-capabilities-impl-v1.0.0`

**Warning:** this is an initial release. Please verify that the version
and commits included are correct.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: hoolioh <107922352+hoolioh@users.noreply.github.com>
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