Skip to content

Comments

[test/new-e2e/containers/k8s] Test check autodiscovered via etcd#35345

Merged
dd-mergequeue[bot] merged 3 commits intomainfrom
davidor/contp-714-test-etcd-with-check-config
Apr 2, 2025
Merged

[test/new-e2e/containers/k8s] Test check autodiscovered via etcd#35345
dd-mergequeue[bot] merged 3 commits intomainfrom
davidor/contp-714-test-etcd-with-check-config

Conversation

@davidor
Copy link
Member

@davidor davidor commented Mar 21, 2025

What does this PR do?

Adds an integration test for a check autodiscovered via etcd.

This test relies on the setup introduced in DataDog/test-infra-definitions#1483, which provisions an etcd database, stores a basic OpenMetrics check configuration, and configures the Agent to use etcd as an Autodiscovery configuration provider.

Describe how you validated your changes

The test should pass

@davidor davidor added changelog/no-changelog qa/done QA done before merge and regressions are covered by tests team/container-platform The Container Platform Team labels Mar 21, 2025
@davidor davidor added this to the 7.66.0 milestone Mar 21, 2025
@github-actions github-actions bot added the medium review PR review might take time label Mar 21, 2025
@davidor davidor force-pushed the davidor/contp-714-test-etcd-with-check-config branch from 6b99be1 to ba93bec Compare March 21, 2025 12:12
@agent-platform-auto-pr
Copy link
Contributor

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

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

dda inv aws.create-vm --pipeline-id=60756673 --os-family=ubuntu

Note: This applies to commit 54e4d42

@agent-platform-auto-pr
Copy link
Contributor

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

Uncompressed package size comparison

Comparison with ancestor 001fae9858d219fd1006ab652a19ea445c83aeca

Diff per package
package diff status size ancestor threshold
datadog-agent-amd64-deb 0.00MB 806.34MB 806.34MB 0.50MB
datadog-agent-x86_64-rpm 0.00MB 816.19MB 816.19MB 0.50MB
datadog-agent-x86_64-suse 0.00MB 816.19MB 816.19MB 0.50MB
datadog-agent-arm64-deb 0.00MB 797.36MB 797.36MB 0.50MB
datadog-agent-aarch64-rpm 0.00MB 807.19MB 807.19MB 0.50MB
datadog-dogstatsd-amd64-deb 0.00MB 39.71MB 39.71MB 0.50MB
datadog-dogstatsd-x86_64-rpm 0.00MB 39.79MB 39.79MB 0.50MB
datadog-dogstatsd-x86_64-suse 0.00MB 39.79MB 39.79MB 0.50MB
datadog-dogstatsd-arm64-deb 0.00MB 38.22MB 38.22MB 0.50MB
datadog-heroku-agent-amd64-deb 0.00MB 440.91MB 440.91MB 0.50MB
datadog-iot-agent-amd64-deb 0.00MB 60.48MB 60.48MB 0.50MB
datadog-iot-agent-x86_64-rpm 0.00MB 60.55MB 60.55MB 0.50MB
datadog-iot-agent-x86_64-suse 0.00MB 60.55MB 60.55MB 0.50MB
datadog-iot-agent-arm64-deb 0.00MB 57.80MB 57.80MB 0.50MB
datadog-iot-agent-aarch64-rpm 0.00MB 57.87MB 57.87MB 0.50MB

Decision

✅ Passed

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Mar 21, 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 780.6 MiB 780.74 MiB 190.29 MiB 190.85 MiB
static_quality_gate_agent_deb_amd64_fips 778.55 MiB 778.65 MiB 190.04 MiB 190.66 MiB
static_quality_gate_agent_heroku_amd64 428.5 MiB 428.97 MiB 112.77 MiB 113.11 MiB
static_quality_gate_agent_msi 976.76 MiB 977.0 MiB 149.38 MiB 149.85 MiB
static_quality_gate_agent_rpm_amd64 780.58 MiB 780.59 MiB 192.94 MiB 193.37 MiB
static_quality_gate_agent_rpm_amd64_fips 778.55 MiB 778.69 MiB 192.15 MiB 192.47 MiB
static_quality_gate_agent_rpm_arm64 771.85 MiB 772.07 MiB 173.96 MiB 174.47 MiB
static_quality_gate_agent_rpm_arm64_fips 770.05 MiB 770.27 MiB 173.16 MiB 173.63 MiB
static_quality_gate_agent_suse_amd64 780.6 MiB 780.7 MiB 192.94 MiB 193.37 MiB
static_quality_gate_agent_suse_amd64_fips 778.46 MiB 778.59 MiB 192.15 MiB 192.47 MiB
static_quality_gate_agent_suse_arm64 771.97 MiB 772.02 MiB 173.96 MiB 174.47 MiB
static_quality_gate_agent_suse_arm64_fips 770.08 MiB 770.2 MiB 173.16 MiB 173.63 MiB
static_quality_gate_docker_agent_amd64 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_arm64 879.88 MiB 880.0 MiB 277.42 MiB 277.86 MiB
static_quality_gate_docker_agent_jmx_amd64 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_jmx_arm64 879.88 MiB 880.0 MiB 277.42 MiB 277.86 MiB
static_quality_gate_docker_agent_windows1809 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows1809_core 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows1809_core_jmx 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows1809_jmx 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022_core 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022_core_jmx 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022_jmx 865.19 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_cluster_agent_amd64 263.12 MiB 263.29 MiB 105.68 MiB 106.03 MiB
static_quality_gate_docker_cluster_agent_arm64 279.07 MiB 279.25 MiB 100.54 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.09 MiB 46.37 MiB 17.38 MiB 17.78 MiB
static_quality_gate_docker_dogstatsd_arm64 44.7 MiB 44.99 MiB 16.24 MiB 16.65 MiB
static_quality_gate_dogstatsd_deb_amd64 37.95 MiB 38.23 MiB 9.84 MiB 10.26 MiB
static_quality_gate_dogstatsd_deb_arm64 36.53 MiB 36.82 MiB 8.53 MiB 8.96 MiB
static_quality_gate_dogstatsd_rpm_amd64 37.95 MiB 38.23 MiB 9.85 MiB 10.27 MiB
static_quality_gate_dogstatsd_suse_amd64 37.95 MiB 38.23 MiB 9.85 MiB 10.27 MiB
static_quality_gate_iot_agent_deb_amd64 57.75 MiB 58.19 MiB 14.56 MiB 15.02 MiB
static_quality_gate_iot_agent_deb_arm64 55.2 MiB 55.63 MiB 12.58 MiB 13.05 MiB
static_quality_gate_iot_agent_deb_armhf 53.89 MiB 54.32 MiB 12.58 MiB 13.05 MiB
static_quality_gate_iot_agent_rpm_amd64 57.75 MiB 58.19 MiB 14.58 MiB 15.04 MiB
static_quality_gate_iot_agent_rpm_arm64 55.2 MiB 55.63 MiB 12.61 MiB 13.07 MiB
static_quality_gate_iot_agent_suse_amd64 57.75 MiB 58.19 MiB 14.58 MiB 15.04 MiB

@cit-pr-commenter
Copy link

cit-pr-commenter bot commented Mar 21, 2025

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 25c068af-db03-40e1-9fb3-98c1339c3d7c

Baseline: 001fae9
Comparison: 54e4d42
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
file_tree memory utilization +1.78 [+1.61, +1.94] 1 Logs
quality_gate_logs % cpu utilization +1.64 [-1.22, +4.51] 1 Logs
file_to_blackhole_1000ms_latency_linear_load egress throughput +0.42 [-0.04, +0.89] 1 Logs
tcp_syslog_to_blackhole ingress throughput +0.19 [+0.12, +0.26] 1 Logs
quality_gate_idle_all_features memory utilization +0.08 [-0.03, +0.18] 1 Logs bounds checks dashboard
otlp_ingest_metrics memory utilization +0.08 [-0.07, +0.22] 1 Logs
file_to_blackhole_500ms_latency egress throughput +0.05 [-0.74, +0.84] 1 Logs
file_to_blackhole_100ms_latency egress throughput +0.02 [-0.64, +0.69] 1 Logs
file_to_blackhole_300ms_latency egress throughput +0.02 [-0.62, +0.66] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization +0.02 [-0.02, +0.06] 1 Logs
file_to_blackhole_0ms_latency_http1 egress throughput +0.01 [-0.75, +0.78] 1 Logs
file_to_blackhole_0ms_latency_http2 egress throughput +0.01 [-0.72, +0.75] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.01 [-0.03, +0.01] 1 Logs
uds_dogstatsd_to_api ingress throughput -0.01 [-0.28, +0.26] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.02 [-0.85, +0.81] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.20 [-0.97, +0.56] 1 Logs
otlp_ingest_logs memory utilization -0.33 [-0.50, -0.16] 1 Logs
quality_gate_idle memory utilization -0.59 [-0.67, -0.51] 1 Logs bounds checks dashboard
otlp_ingest_traces memory utilization -2.10 [-2.48, -1.72] 1 Logs
uds_dogstatsd_to_api_cpu % cpu utilization -2.43 [-3.29, -1.57] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
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
quality_gate_logs lost_bytes 10/10
quality_gate_logs memory_usage 10/10

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_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 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_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_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.

@davidor davidor force-pushed the davidor/contp-714-test-etcd-with-check-config branch 3 times, most recently from b680e7a to f0366c9 Compare March 25, 2025 08:43
@agent-platform-auto-pr
Copy link
Contributor

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

Static quality checks ❌

Please find below the results from static quality gates

Error

Result Quality gate On disk size On disk size limit On wire size On wire size limit
static_quality_gate_agent_suse_amd64_fips 778.62 MiB 778.59 MiB 192.1 MiB 192.47 MiB
static_quality_gate_agent_suse_arm64 772.04 MiB 772.02 MiB 173.98 MiB 174.47 MiB
Gate failure full details
Quality gate Error type Error message
static_quality_gate_agent_suse_amd64_fips AssertionError Package size on disk (uncompressed package size) 816444636 is higher than the maximum allowed 816410787 by the gate !
static_quality_gate_agent_suse_arm64 AssertionError Package size on disk (uncompressed package size) 809543301 is higher than the maximum allowed 809521643 by the gate !

Static quality gates prevent the PR to merge! You can check the static quality gates confluence page for guidance. We also have a toolbox page available to list tools useful to debug the size increase.

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 780.64 MiB 780.74 MiB 190.3 MiB 190.85 MiB
static_quality_gate_agent_deb_amd64_fips 778.61 MiB 778.65 MiB 190.01 MiB 190.66 MiB
static_quality_gate_agent_heroku_amd64 428.56 MiB 428.97 MiB 112.78 MiB 113.11 MiB
static_quality_gate_agent_msi 976.66 MiB 977.0 MiB 149.37 MiB 149.85 MiB
static_quality_gate_agent_rpm_amd64 780.59 MiB 780.59 MiB 192.93 MiB 193.37 MiB
static_quality_gate_agent_rpm_amd64_fips 778.61 MiB 778.69 MiB 192.1 MiB 192.47 MiB
static_quality_gate_agent_rpm_arm64 772.04 MiB 772.07 MiB 173.98 MiB 174.47 MiB
static_quality_gate_agent_rpm_arm64_fips 770.2 MiB 770.27 MiB 173.14 MiB 173.63 MiB
static_quality_gate_agent_suse_amd64 780.63 MiB 780.7 MiB 192.93 MiB 193.37 MiB
static_quality_gate_agent_suse_arm64_fips 770.19 MiB 770.2 MiB 173.14 MiB 173.63 MiB
static_quality_gate_docker_agent_amd64 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_arm64 879.87 MiB 880.0 MiB 277.4 MiB 277.86 MiB
static_quality_gate_docker_agent_jmx_amd64 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_jmx_arm64 879.87 MiB 880.0 MiB 277.4 MiB 277.86 MiB
static_quality_gate_docker_agent_windows1809 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows1809_core 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows1809_core_jmx 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows1809_jmx 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022_core 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022_core_jmx 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_agent_windows2022_jmx 865.17 MiB 865.3 MiB 290.92 MiB 291.35 MiB
static_quality_gate_docker_cluster_agent_amd64 263.12 MiB 263.29 MiB 105.69 MiB 106.03 MiB
static_quality_gate_docker_cluster_agent_arm64 279.06 MiB 279.25 MiB 100.52 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.09 MiB 46.37 MiB 17.38 MiB 17.78 MiB
static_quality_gate_docker_dogstatsd_arm64 44.7 MiB 44.99 MiB 16.24 MiB 16.65 MiB
static_quality_gate_dogstatsd_deb_amd64 37.95 MiB 38.23 MiB 9.84 MiB 10.26 MiB
static_quality_gate_dogstatsd_deb_arm64 36.53 MiB 36.82 MiB 8.54 MiB 8.96 MiB
static_quality_gate_dogstatsd_rpm_amd64 37.95 MiB 38.23 MiB 9.85 MiB 10.27 MiB
static_quality_gate_dogstatsd_suse_amd64 37.95 MiB 38.23 MiB 9.85 MiB 10.27 MiB
static_quality_gate_iot_agent_deb_amd64 57.71 MiB 58.19 MiB 14.55 MiB 15.02 MiB
static_quality_gate_iot_agent_deb_arm64 55.16 MiB 55.63 MiB 12.58 MiB 13.05 MiB
static_quality_gate_iot_agent_deb_armhf 53.85 MiB 54.32 MiB 12.57 MiB 13.05 MiB
static_quality_gate_iot_agent_rpm_amd64 57.71 MiB 58.19 MiB 14.57 MiB 15.04 MiB
static_quality_gate_iot_agent_rpm_arm64 55.16 MiB 55.63 MiB 12.59 MiB 13.07 MiB
static_quality_gate_iot_agent_suse_amd64 57.71 MiB 58.19 MiB 14.57 MiB 15.04 MiB

@davidor davidor force-pushed the davidor/contp-714-test-etcd-with-check-config branch 4 times, most recently from 149b7c2 to eb31e49 Compare March 31, 2025 11:57
@davidor davidor force-pushed the davidor/contp-714-test-etcd-with-check-config branch from eb31e49 to 87b115e Compare April 1, 2025 14:55
@davidor davidor marked this pull request as ready for review April 1, 2025 14:55
@davidor davidor requested review from a team as code owners April 1, 2025 14:55
@davidor davidor added the ask-review Ask required teams to review this PR label Apr 1, 2025
@davidor
Copy link
Member Author

davidor commented Apr 2, 2025

/merge

@dd-devflow
Copy link

dd-devflow bot commented Apr 2, 2025

View all feedbacks in Devflow UI.

2025-04-02 06:42:52 UTC ℹ️ Start processing command /merge


2025-04-02 06:42:57 UTC ℹ️ MergeQueue: waiting for PR to be ready

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2025-04-02 09:07:07 UTC ℹ️ MergeQueue: merge request added to the queue

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


2025-04-02 09:44:18 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue dd-mergequeue bot merged commit 678b8e4 into main Apr 2, 2025
481 checks passed
@dd-mergequeue dd-mergequeue bot deleted the davidor/contp-714-test-etcd-with-check-config branch April 2, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ask-review Ask required teams to review this PR changelog/no-changelog medium review PR review might take time qa/done QA done before merge and regressions are covered by tests team/container-platform The Container Platform Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants