Skip to content

Enable persisting non-core integrations by default #35636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

NouemanKHAL
Copy link
Member

@NouemanKHAL NouemanKHAL commented Mar 31, 2025

What does this PR do?

  • Makes agent upgrade persist non-core integrations by default.
  • Adds a file flag to disable this behavior if needed $ETC_DIR/.skip_install_python_third_party_deps.

The file flag will be documented here: Update documentation for upgrading non-core integrations

Motivation

https://datadoghq.atlassian.net/browse/AI-5269

Describe how you validated your changes

Possible Drawbacks / Trade-offs

Additional Notes

@github-actions github-actions bot added team/windows-agent short review PR is simple enough to be reviewed quickly labels Mar 31, 2025
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Mar 31, 2025

Uncompressed package size comparison

Comparison with ancestor 427d9c47b26f983a67b8cd25bdea3adf8cb6ee55

Size reduction summary
package diff status size ancestor threshold
datadog-agent-x86_64-rpm -0.00MB 799.05MB 799.05MB 0.50MB
datadog-agent-x86_64-suse -0.00MB 799.05MB 799.05MB 0.50MB
datadog-agent-aarch64-rpm -0.00MB 788.97MB 788.97MB 0.50MB
Diff per package
package diff status size ancestor threshold
datadog-agent-amd64-deb 0.00MB 790.12MB 790.11MB 0.50MB
datadog-agent-arm64-deb 0.00MB 780.05MB 780.05MB 0.50MB
datadog-heroku-agent-amd64-deb 0.00MB 439.60MB 439.60MB 0.50MB
datadog-dogstatsd-x86_64-rpm 0.00MB 31.25MB 31.25MB 0.50MB
datadog-dogstatsd-x86_64-suse 0.00MB 31.25MB 31.25MB 0.50MB
datadog-iot-agent-x86_64-rpm 0.00MB 60.81MB 60.81MB 0.50MB
datadog-iot-agent-x86_64-suse 0.00MB 60.81MB 60.81MB 0.50MB
datadog-iot-agent-aarch64-rpm 0.00MB 58.11MB 58.11MB 0.50MB
datadog-dogstatsd-amd64-deb 0.00MB 31.17MB 31.17MB 0.50MB
datadog-dogstatsd-arm64-deb 0.00MB 29.99MB 29.99MB 0.50MB
datadog-iot-agent-amd64-deb 0.00MB 60.74MB 60.74MB 0.50MB
datadog-iot-agent-arm64-deb 0.00MB 58.04MB 58.04MB 0.50MB

Decision

✅ Passed

Copy link

cit-pr-commenter bot commented Mar 31, 2025

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: dfc26715-f735-46f3-8283-71d51c1f2acf

Baseline: bea966a
Comparison: 389306b
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
uds_dogstatsd_to_api_cpu % cpu utilization +2.61 [+1.73, +3.49] 1 Logs
tcp_syslog_to_blackhole ingress throughput +0.53 [+0.47, +0.58] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization +0.40 [+0.35, +0.45] 1 Logs
otlp_ingest_metrics memory utilization +0.33 [+0.17, +0.49] 1 Logs
docker_containers_memory memory utilization +0.19 [+0.13, +0.24] 1 Logs
ddot_metrics memory utilization +0.07 [-0.05, +0.19] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.06 [-0.57, +0.69] 1 Logs
file_to_blackhole_1000ms_latency egress throughput +0.03 [-0.55, +0.61] 1 Logs
file_to_blackhole_0ms_latency_http2 egress throughput +0.03 [-0.56, +0.61] 1 Logs
file_to_blackhole_0ms_latency egress throughput +0.03 [-0.55, +0.60] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.01 [-0.25, +0.26] 1 Logs
otlp_ingest_logs memory utilization +0.00 [-0.12, +0.13] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.02, +0.01] 1 Logs
quality_gate_idle memory utilization -0.01 [-0.06, +0.05] 1 Logs bounds checks dashboard
file_to_blackhole_1000ms_latency_linear_load egress throughput -0.01 [-0.24, +0.23] 1 Logs
ddot_logs memory utilization -0.05 [-0.19, +0.09] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.06 [-0.68, +0.56] 1 Logs
file_to_blackhole_0ms_latency_http1 egress throughput -0.07 [-0.69, +0.56] 1 Logs
file_to_blackhole_300ms_latency egress throughput -0.07 [-0.73, +0.59] 1 Logs
file_tree memory utilization -0.47 [-0.59, -0.35] 1 Logs
quality_gate_idle_all_features memory utilization -0.84 [-0.92, -0.76] 1 Logs bounds checks dashboard
quality_gate_logs % cpu utilization -1.03 [-3.77, +1.71] 1 Logs bounds checks dashboard
docker_containers_cpu % cpu utilization -1.19 [-4.23, +1.85] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
docker_containers_cpu simple_check_run 10/10
docker_containers_memory memory_usage 10/10
docker_containers_memory simple_check_run 10/10
file_to_blackhole_0ms_latency lost_bytes 10/10
file_to_blackhole_0ms_latency memory_usage 10/10
file_to_blackhole_0ms_latency_http1 lost_bytes 10/10
file_to_blackhole_0ms_latency_http1 memory_usage 10/10
file_to_blackhole_0ms_latency_http2 lost_bytes 10/10
file_to_blackhole_0ms_latency_http2 memory_usage 10/10
file_to_blackhole_1000ms_latency memory_usage 10/10
file_to_blackhole_1000ms_latency_linear_load memory_usage 10/10
file_to_blackhole_100ms_latency lost_bytes 10/10
file_to_blackhole_100ms_latency memory_usage 10/10
file_to_blackhole_300ms_latency lost_bytes 10/10
file_to_blackhole_300ms_latency memory_usage 10/10
file_to_blackhole_500ms_latency lost_bytes 10/10
file_to_blackhole_500ms_latency memory_usage 10/10
quality_gate_idle intake_connections 10/10 bounds checks dashboard
quality_gate_idle memory_usage 10/10 bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 bounds checks dashboard
quality_gate_logs intake_connections 10/10 bounds checks dashboard
quality_gate_logs lost_bytes 10/10 bounds checks dashboard
quality_gate_logs memory_usage 10/10 bounds checks dashboard

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

CI Pass/Fail Decision

Passed. All Quality Gates passed.

  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check lost_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Mar 31, 2025

Static quality checks ✅

Please find below the results from static quality gates

Successful checks

Info

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_deb_amd64 769.25 MiB 773.17 MiB 188.87 MiB 190.56 MiB
static_quality_gate_agent_deb_amd64_fips 767.21 MiB 771.14 MiB 187.94 MiB 189.65 MiB
static_quality_gate_agent_heroku_amd64 429.44 MiB 429.8 MiB 112.7 MiB 113.11 MiB
static_quality_gate_agent_msi 979.32 MiB 979.64 MiB 149.61 MiB 149.85 MiB
static_quality_gate_agent_rpm_amd64 769.24 MiB 773.16 MiB 190.41 MiB 192.06 MiB
static_quality_gate_agent_rpm_amd64_fips 767.21 MiB 771.13 MiB 190.02 MiB 191.61 MiB
static_quality_gate_agent_rpm_arm64 760.38 MiB 764.3 MiB 173.04 MiB 174.47 MiB
static_quality_gate_agent_rpm_arm64_fips 758.55 MiB 762.48 MiB 171.79 MiB 173.49 MiB
static_quality_gate_agent_suse_amd64 769.24 MiB 773.16 MiB 190.41 MiB 192.06 MiB
static_quality_gate_agent_suse_amd64_fips 767.22 MiB 771.13 MiB 190.02 MiB 191.61 MiB
static_quality_gate_agent_suse_arm64 760.38 MiB 764.3 MiB 173.04 MiB 174.47 MiB
static_quality_gate_agent_suse_arm64_fips 758.55 MiB 762.48 MiB 171.79 MiB 173.3 MiB
static_quality_gate_docker_agent_amd64 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_arm64 868.19 MiB 871.82 MiB 275.2 MiB 276.77 MiB
static_quality_gate_docker_agent_jmx_amd64 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_jmx_arm64 868.19 MiB 871.82 MiB 275.2 MiB 276.77 MiB
static_quality_gate_docker_agent_windows1809 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_windows1809_core 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_windows1809_core_jmx 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_windows1809_jmx 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_windows2022 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_windows2022_core 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_windows2022_core_jmx 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_agent_windows2022_jmx 853.76 MiB 857.37 MiB 288.75 MiB 290.27 MiB
static_quality_gate_docker_cluster_agent_amd64 263.33 MiB 264.23 MiB 105.8 MiB 106.03 MiB
static_quality_gate_docker_cluster_agent_arm64 279.27 MiB 280.19 MiB 100.63 MiB 100.87 MiB
static_quality_gate_docker_cws_instrumentation_amd64 6.65 MiB 7.12 MiB 2.82 MiB 3.29 MiB
static_quality_gate_docker_cws_instrumentation_arm64 6.44 MiB 6.92 MiB 2.6 MiB 3.07 MiB
static_quality_gate_docker_dogstatsd_amd64 46.28 MiB 46.37 MiB 17.45 MiB 17.78 MiB
static_quality_gate_docker_dogstatsd_arm64 44.89 MiB 44.99 MiB 16.3 MiB 16.65 MiB
static_quality_gate_dogstatsd_deb_amd64 38.14 MiB 38.4 MiB 9.87 MiB 10.26 MiB
static_quality_gate_dogstatsd_deb_arm64 36.71 MiB 36.98 MiB 8.57 MiB 8.96 MiB
static_quality_gate_dogstatsd_rpm_amd64 38.14 MiB 38.4 MiB 9.88 MiB 10.27 MiB
static_quality_gate_dogstatsd_suse_amd64 38.14 MiB 38.4 MiB 9.88 MiB 10.27 MiB
static_quality_gate_iot_agent_deb_amd64 58.04 MiB 58.51 MiB 14.61 MiB 15.02 MiB
static_quality_gate_iot_agent_deb_arm64 55.48 MiB 55.94 MiB 12.62 MiB 13.05 MiB
static_quality_gate_iot_agent_deb_armhf 54.14 MiB 54.32 MiB 12.62 MiB 13.05 MiB
static_quality_gate_iot_agent_rpm_amd64 58.04 MiB 58.51 MiB 14.63 MiB 15.04 MiB
static_quality_gate_iot_agent_rpm_arm64 55.48 MiB 55.94 MiB 12.64 MiB 13.07 MiB
static_quality_gate_iot_agent_suse_amd64 58.04 MiB 58.51 MiB 14.63 MiB 15.04 MiB

@NouemanKHAL NouemanKHAL force-pushed the noueman/enable-persisting-integartions-feature-by-default branch from 7eb5d1f to 8c1587f Compare April 2, 2025 09:08
@NouemanKHAL NouemanKHAL added the qa/done QA done before merge and regressions are covered by tests label Apr 3, 2025
@NouemanKHAL NouemanKHAL marked this pull request as ready for review April 3, 2025 19:12
@NouemanKHAL NouemanKHAL requested review from a team as code owners April 3, 2025 19:12
@NouemanKHAL NouemanKHAL requested a review from a team as a code owner April 7, 2025 08:06
@NouemanKHAL NouemanKHAL requested review from a team as code owners April 7, 2025 12:24
@NouemanKHAL
Copy link
Member Author

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on

@dd-devflow
Copy link

dd-devflow bot commented Apr 7, 2025

View all feedbacks in Devflow UI.

2025-04-07 12:33:23 UTC ℹ️ Start processing command /trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on


2025-04-07 12:34:09 UTC ℹ️ Gitlab pipeline started

Started pipeline #61263813

@github-actions github-actions bot added medium review PR review might take time and removed short review PR is simple enough to be reviewed quickly labels Apr 7, 2025
@NouemanKHAL
Copy link
Member Author

/trigger-ci --variable RUN_ALL_BUILDS=false --variable RUN_KITCHEN_TESTS=false --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on

@dd-devflow
Copy link

dd-devflow bot commented Apr 7, 2025

View all feedbacks in Devflow UI.

2025-04-07 12:33:59 UTC ℹ️ Start processing command /trigger-ci --variable RUN_ALL_BUILDS=false --variable RUN_KITCHEN_TESTS=false --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on


2025-04-07 12:34:51 UTC ℹ️ Gitlab pipeline started

Started pipeline #61263860

@github-actions github-actions bot removed the medium review PR review might take time label Apr 7, 2025
@NouemanKHAL
Copy link
Member Author

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on

@dd-devflow
Copy link

dd-devflow bot commented Jun 4, 2025

View all feedbacks in Devflow UI.

2025-06-04 12:52:04 UTC ℹ️ Start processing command /trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on
If you need support, contact us on Slack #devflow!


2025-06-04 12:55:08 UTC 🚨 Devflow

Post "https://gitlab.ddbuild.io/api/v4/projects/DataDog%2Fdatadog-agent/pipeline": net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Details
child workflow execution error (type: devflow.Devflow_TriggerCiFromPr, workflowID: b5204971-75f2-4a47-9cbf-0807c7453cab_26, runID: 90458adb-929c-44d0-89a7-ff3b803365b8, initiatedEventID: 26, startedEventID: 27): child workflow execution error (type: devflow.Devflow_TriggerCi, workflowID: 90458adb-929c-44d0-89a7-ff3b803365b8_14, runID: ff258d20-6e6d-4cfb-8e8c-6223a68c7e99, initiatedEventID: 14, startedEventID: 15): activity error (type: gitlab.GitlabService_CreatePipeline, scheduledEventID: 26, startedEventID: 27, identity: ): activity ScheduleToClose timeout (type: ScheduleToClose): Post "https://gitlab.ddbuild.io/api/v4/projects/DataDog%2Fdatadog-agent/pipeline": net/http: request canceled (Client.Timeout exceeded while awaiting headers) (type: Error, retryable: true): net/http: request canceled (Client.Timeout exceeded while awaiting headers) (type: timeoutError, retryable: true)

If you need support, contact us on Slack #devflow with those details!

@NouemanKHAL NouemanKHAL marked this pull request as ready for review June 6, 2025 10:49
Copy link
Contributor

@jhgilbert jhgilbert left a comment

Choose a reason for hiding this comment

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

Approved with a very minor style suggestion, thanks!

@NouemanKHAL
Copy link
Member Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Jun 11, 2025

View all feedbacks in Devflow UI.

2025-06-11 14:09:29 UTC ℹ️ Start processing command /merge


2025-06-11 14:09:40 UTC ℹ️ MergeQueue: pull request added to the queue

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


2025-06-11 15:10:09 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue bot merged commit 950ae69 into main Jun 11, 2025
257 checks passed
@dd-mergequeue dd-mergequeue bot deleted the noueman/enable-persisting-integartions-feature-by-default branch June 11, 2025 15:10
@github-actions github-actions bot added this to the 7.68.0 milestone Jun 11, 2025
chouquette added a commit that referenced this pull request Jun 11, 2025
NouemanKHAL added a commit that referenced this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium review PR review might take time qa/done QA done before merge and regressions are covered by tests team/windows-agent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants