Use the shared malloc_trim helper in ibm_was and kafka_consumer #26079
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 210 lines diff across 2 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.320
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #26079"
general
weight: 0.35
iliakur
What does this PR do?
ibm_wasandkafka_consumeratdatadog_checks.base.utils.native_memory.malloc_trim, added in #25718 and released in base 38.11.0.kafka_consumerdrops its local copy for the shared import;ibm_wasgains the call it never had, in afinallyso it also runs when the check raises.datadog-checks-basefloor in both to>=38.11.0.Motivation
Checklist before requesting review
<!--
test_malloc_trim_runs_after_every_runin both integrations, parameterized over asuccessful and a failing run. Verified falsifiable: moving the call out of the
finallyfails the 'failed run' case, removing it fails both. The base tests stay green either way,
so this is the only coverage of the call itself. ibm_was 17 passed, kafka_consumer 182
passed,
--compatpasses for both.-->
🤖 Generated with Claude Code