feat(libdd-common): recognize PCF Garden container IDs#2025
Conversation
PCF / Garden cgroup paths use a non-standard 8-4-4-4-4 hex UUID (28 chars). Add a dedicated regex source so these IDs are matched without weakening the existing 8-4-4-4-12 UUID match, plus tests covering Garden paths and a regression guard for standard UUIDs.
📚 Documentation Check Results📦
|
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 51a11d7 | Docs | Datadog PR Page | Give us feedback! |
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis 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. |
🔒 Cargo Deny Results📦
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2025 +/- ##
==========================================
- Coverage 72.87% 72.81% -0.07%
==========================================
Files 457 457
Lines 75769 75778 +9
==========================================
- Hits 55220 55178 -42
- Misses 20549 20600 +51
🚀 New features to boost your workflow:
|
What
PCF_UUID_SOURCEregex (8-4-4-4-4 hex) alongside the existingUUID_SOURCE(8-4-4-4-12).CONTAINER_REGEXso Garden cgroup paths resolve to their container ID.cgroup.pcffixture.Why
PCF / Garden containers expose a non-standard 28-char UUID in their cgroup paths. Without a dedicated source, the parser either misses them entirely or risks truncating standard UUIDs if the existing source is loosened.
Testing
container_id::tests::test_extract_container_id(Garden paths, fixture file, regression guard, length boundary).