Fix DDOT install for Agent >= 7.78.0 #414
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 295 lines diff across 3 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.340
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #414"
general
weight: 0.35
BaptisteFoy
Bug
For Agent >= 7.78.0, DDOT is installed by the Agent's own post-install script rather than the install script. The previous fix (#406) handled this by unsetting \
DD_OTELCOLLECTOR_ENABLED\, which caused two regressions:1. \
DD_OTELCOLLECTOR_ENABLED\was no longer present in the environment when running \apt-get\/\yum\/\zypper install datadog-agent\, so the Agent's post-install script couldn't see it and wouldn't install DDOT2. \
update_ddot\and \manage_otel_config\were also skipped (they gate on \DD_OTELCOLLECTOR_ENABLED\), so the Datadog Agent config was not updated for DDOTWhy not pass DD_OTELCOLLECTOR_ENABLED to the package manager?
An intermediate approach passed \
DD_OTELCOLLECTOR_ENABLED\to the \apt-get\/\yum\/\zypper\install command so the Agent's post-install script could pick it up. This failed because the Agent post-install runs before the install script creates \datadog.yaml\, causing:Fix
For Agent >= 7.78.0, instead of relying on the Agent post-install script:
DD_OTELCOLLECTOR_ENABLED\to the package manager (avoids triggering the broken post-install)datadog.yaml\is created by the install script, call \datadog-installer extension install "oci://\${ddot_oci_registry}/agent-package:\${ddot_oci_tag}" "ddot"\directly — this handles both DDOT installation and configurationdatadog-agent-ddot\deb/rpm package install and repo setup (no longer needed)For Agent < 7.78.0, behavior is unchanged: the \
datadog-agent-ddot\package is installed from the dedicated apt/yum/zypper repo, and \update_ddot\/\manage_otel_config\run as before.Test plan
DD_OTELCOLLECTOR_ENABLED\set and Agent < 7.78.0: ddot repo setup and package install run as before, \update_ddot\/\manage_otel_config\still runDD_OTELCOLLECTOR_ENABLED\set and Agent >= 7.78.0: ddot repo/package install are skipped, \datadog-installer extension install\is called after \datadog.yaml\is createdDD_OTELCOLLECTOR_ENABLED\: no behavior change