Skip to content

fix(entity_id): Handle Podman cgroupns=host cgroup path#1828

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
glopes/podman-cgroupns-fix
Apr 2, 2026
Merged

fix(entity_id): Handle Podman cgroupns=host cgroup path#1828
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intomainfrom
glopes/podman-cgroupns-fix

Conversation

@cataphract
Copy link
Copy Markdown
Contributor

What does this PR do?

Changes a regex generalizing cgroup path matching.

Motivation

systemd + cgroup v2 (cgroupns=host) │ ...libpod-.scope/container When a container runs with systemd + crgroup v2 (cgroupns=host) the cgroup path has /container after .scope.

0::/machine.slice/libpod-HEXID.scope/container

(podman never seems to set anything other than the default "container" -- could find no reference to run.oci.systemd.subgroup -- but match other strings as well.

Additional Notes

This problem was observed when running ssi system tests in the local (non-aws) environment.

@cataphract cataphract requested a review from a team as a code owner March 31, 2026 10:01
…ontainer suffix

systemd + cgroup v2 (cgroupns=host) │ ...libpod-<ID>.scope/container
When a container runs with systemd + crgroup v2 (cgroupns=host) the cgroup
path has /container after .scope.

  0::/machine.slice/libpod-HEXID.scope/container

(podman never seems to set anything other than the default "container"
-- could find no reference to `run.oci.systemd.subgroup` -- but match
other strings as well.
@cataphract cataphract force-pushed the glopes/podman-cgroupns-fix branch from 20019b4 to 75ab855 Compare March 31, 2026 10:02
@github-actions
Copy link
Copy Markdown
Contributor

Clippy Allow Annotation Report

Comparing clippy allow annotations between branches:

  • Base Branch: origin/main
  • PR Branch: origin/glopes/podman-cgroupns-fix

Summary by Rule

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

Annotation Counts by File

File Base Branch PR Branch Change
libdd-common/src/entity_id/unix/container_id.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 20 20 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 55 55 No change (0%)
libdd-common 10 10 No change (0%)
libdd-common-ffi 12 12 No change (0%)
libdd-data-pipeline 5 5 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-utils 15 15 No change (0%)
Total 195 195 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 Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.35%. Comparing base (15860bb) to head (75ab855).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1828      +/-   ##
==========================================
+ Coverage   71.33%   71.35%   +0.01%     
==========================================
  Files         424      424              
  Lines       66685    66687       +2     
==========================================
+ Hits        47572    47586      +14     
+ Misses      19113    19101      -12     
Components Coverage Δ
libdd-crashtracker 65.87% <ø> (-0.03%) ⬇️
libdd-crashtracker-ffi 34.47% <ø> (ø)
libdd-alloc 98.77% <ø> (ø)
libdd-data-pipeline 87.05% <ø> (ø)
libdd-data-pipeline-ffi 72.91% <ø> (ø)
libdd-common 80.20% <100.00%> (+<0.01%) ⬆️
libdd-common-ffi 73.87% <ø> (ø)
libdd-telemetry 62.48% <ø> (ø)
libdd-telemetry-ffi 16.75% <ø> (ø)
libdd-dogstatsd-client 82.64% <ø> (ø)
datadog-ipc 72.48% <ø> (+2.17%) ⬆️
libdd-profiling 81.61% <ø> (-0.02%) ⬇️
libdd-profiling-ffi 64.94% <ø> (ø)
datadog-sidecar 30.18% <ø> (ø)
datdog-sidecar-ffi 6.52% <ø> (ø)
spawn-worker 54.69% <ø> (ø)
libdd-tinybytes 93.16% <ø> (ø)
libdd-trace-normalization 81.71% <ø> (ø)
libdd-trace-obfuscation 87.24% <ø> (ø)
libdd-trace-protobuf 68.25% <ø> (ø)
libdd-trace-utils 88.72% <ø> (ø)
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-3
Copy link
Copy Markdown

datadog-prod-us1-3 Bot commented Mar 31, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 71.36% (+0.02%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 75ab855 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts Bot commented Mar 31, 2026

Artifact Size Benchmark Report

aarch64-alpine-linux-musl
Artifact Baseline Commit Change
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.a 102.07 MB 102.07 MB +0% (+16 B) 👌
/aarch64-alpine-linux-musl/lib/libdatadog_profiling.so 8.76 MB 8.76 MB 0% (0 B) 👌
aarch64-unknown-linux-gnu
Artifact Baseline Commit Change
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so 11.36 MB 11.36 MB 0% (0 B) 👌
/aarch64-unknown-linux-gnu/lib/libdatadog_profiling.a 119.03 MB 119.03 MB 0% (0 B) 👌
libdatadog-x64-windows
Artifact Baseline Commit Change
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.dll 27.40 MB 27.40 MB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.lib 80.69 KB 80.69 KB 0% (0 B) 👌
/libdatadog-x64-windows/debug/dynamic/datadog_profiling_ffi.pdb 187.23 MB 187.22 MB -0% (-8.00 KB) 👌
/libdatadog-x64-windows/debug/static/datadog_profiling_ffi.lib 926.11 MB 926.11 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.dll 9.07 MB 9.07 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.lib 80.69 KB 80.69 KB 0% (0 B) 👌
/libdatadog-x64-windows/release/dynamic/datadog_profiling_ffi.pdb 27.01 MB 27.01 MB 0% (0 B) 👌
/libdatadog-x64-windows/release/static/datadog_profiling_ffi.lib 61.33 MB 61.33 MB 0% (0 B) 👌
libdatadog-x86-windows
Artifact Baseline Commit Change
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.dll 23.26 MB 23.26 MB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.lib 81.94 KB 81.94 KB 0% (0 B) 👌
/libdatadog-x86-windows/debug/dynamic/datadog_profiling_ffi.pdb 191.79 MB 191.77 MB -0% (-16.00 KB) 👌
/libdatadog-x86-windows/debug/static/datadog_profiling_ffi.lib 911.12 MB 911.12 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.dll 6.90 MB 6.90 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.lib 81.94 KB 81.94 KB 0% (0 B) 👌
/libdatadog-x86-windows/release/dynamic/datadog_profiling_ffi.pdb 29.12 MB 29.12 MB 0% (0 B) 👌
/libdatadog-x86-windows/release/static/datadog_profiling_ffi.lib 57.69 MB 57.69 MB 0% (0 B) 👌
x86_64-alpine-linux-musl
Artifact Baseline Commit Change
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.a 88.90 MB 88.90 MB +0% (+16 B) 👌
/x86_64-alpine-linux-musl/lib/libdatadog_profiling.so 10.34 MB 10.34 MB 0% (0 B) 👌
x86_64-unknown-linux-gnu
Artifact Baseline Commit Change
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.a 111.70 MB 111.70 MB 0% (0 B) 👌
/x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so 12.09 MB 12.09 MB 0% (0 B) 👌

Comment thread libdd-common/src/entity_id/unix/container_id.rs
Comment thread libdd-common/src/entity_id/unix/container_id.rs
@cataphract cataphract requested a review from bantonsson April 1, 2026 13:00
@cataphract
Copy link
Copy Markdown
Contributor Author

/merge

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

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

View all feedbacks in Devflow UI.

2026-04-02 15:02:27 UTC ℹ️ Start processing command /merge


2026-04-02 15:02:32 UTC ℹ️ MergeQueue: pull request added to the queue

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


2026-04-02 15:43:50 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot merged commit e5de518 into main Apr 2, 2026
89 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d Bot deleted the glopes/podman-cgroupns-fix branch April 2, 2026 15:43
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