Skip to content

[macOS] Wait for bootout to unregistered services#49402

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
brian.tu/preinst-wait-bootout
Apr 17, 2026
Merged

[macOS] Wait for bootout to unregistered services#49402
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomainfrom
brian.tu/preinst-wait-bootout

Conversation

@briantu
Copy link
Copy Markdown
Contributor

@briantu briantu commented Apr 15, 2026

What does this PR do?

Fixes race condition in preinst when checking if bootout succeeded

Motivation

https://datadoghq.atlassian.net/browse/WINA-2491

Describe how you validated your changes

Test upgrade from older (<7.79) agent version with the agent dmg from the CI

Additional Notes

@briantu briantu requested review from a team as code owners April 15, 2026 16:32
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3a3a5ae72c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread omnibus/package-scripts/agent-dmg/preinst Outdated
@github-actions github-actions bot added the short review PR is simple enough to be reviewed quickly label Apr 15, 2026
Comment thread omnibus/package-scripts/agent-dmg/preinst Outdated
@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 15, 2026
@briantu briantu requested a review from julien-lebot April 15, 2026 16:53
@dd-octo-sts
Copy link
Copy Markdown
Contributor

dd-octo-sts bot commented Apr 15, 2026

Files inventory check summary

File checks results against ancestor 6dfc3af2:

Results for datadog-agent_7.79.0~devel.git.840.82e15b3.pipeline.108156271-1_amd64.deb:

No change detected

@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da bot commented Apr 15, 2026

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Run ID: 08958082-0634-434a-b412-79c1e60f1d46

Baseline: b460668
Comparison: a46a4ed
Diff

Optimization Goals: ✅ Improvement(s) detected

perf experiment goal Δ mean % Δ mean % CI trials links
tcp_syslog_to_blackhole ingress throughput +20.42 [+20.24, +20.59] 1 Logs
quality_gate_metrics_logs memory utilization -7.78 [-8.00, -7.57] 1 Logs bounds checks dashboard
quality_gate_logs % cpu utilization -43.79 [-45.12, -42.47] 1 Logs bounds checks dashboard

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI trials links
docker_containers_cpu % cpu utilization -3.72 [-6.62, -0.83] 1 Logs

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
tcp_syslog_to_blackhole ingress throughput +20.42 [+20.24, +20.59] 1 Logs
uds_dogstatsd_to_api ingress throughput +0.02 [-0.20, +0.23] 1 Logs
uds_dogstatsd_to_api_v3 ingress throughput +0.01 [-0.20, +0.22] 1 Logs
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.12, +0.12] 1 Logs
file_to_blackhole_0ms_latency egress throughput -0.40 [-1.10, +0.29] 1 Logs
file_to_blackhole_100ms_latency egress throughput -0.47 [-0.60, -0.35] 1 Logs
file_to_blackhole_1000ms_latency egress throughput -0.58 [-0.99, -0.16] 1 Logs
file_to_blackhole_500ms_latency egress throughput -0.64 [-1.04, -0.25] 1 Logs
docker_containers_memory memory utilization -1.64 [-1.76, -1.51] 1 Logs
quality_gate_idle_all_features memory utilization -2.21 [-2.25, -2.18] 1 Logs bounds checks dashboard
ddot_metrics_sum_cumulativetodelta_exporter memory utilization -2.46 [-2.67, -2.24] 1 Logs
file_tree memory utilization -2.82 [-2.88, -2.76] 1 Logs
quality_gate_idle memory utilization -2.87 [-2.92, -2.81] 1 Logs bounds checks dashboard
ddot_metrics_sum_cumulative memory utilization -2.96 [-3.12, -2.81] 1 Logs
uds_dogstatsd_20mb_12k_contexts_20_senders memory utilization -3.08 [-3.15, -3.02] 1 Logs
ddot_logs memory utilization -3.12 [-3.18, -3.06] 1 Logs
ddot_metrics_sum_delta memory utilization -3.67 [-3.85, -3.50] 1 Logs
ddot_metrics memory utilization -3.68 [-3.88, -3.49] 1 Logs
docker_containers_cpu % cpu utilization -3.72 [-6.62, -0.83] 1 Logs
otlp_ingest_metrics memory utilization -3.97 [-4.12, -3.83] 1 Logs
otlp_ingest_logs memory utilization -4.03 [-4.14, -3.92] 1 Logs
quality_gate_metrics_logs memory utilization -7.78 [-8.00, -7.57] 1 Logs bounds checks dashboard
quality_gate_logs % cpu utilization -43.79 [-45.12, -42.47] 1 Logs bounds checks dashboard

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
docker_containers_cpu simple_check_run 10/10 695 ≥ 26
docker_containers_memory memory_usage 10/10 275.37MiB ≤ 370MiB
docker_containers_memory simple_check_run 10/10 713 ≥ 26
file_to_blackhole_0ms_latency memory_usage 10/10 0.19GiB ≤ 1.20GiB
file_to_blackhole_0ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_1000ms_latency memory_usage 10/10 0.25GiB ≤ 1.20GiB
file_to_blackhole_1000ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_100ms_latency memory_usage 10/10 0.20GiB ≤ 1.20GiB
file_to_blackhole_100ms_latency missed_bytes 10/10 0B = 0B
file_to_blackhole_500ms_latency memory_usage 10/10 0.22GiB ≤ 1.20GiB
file_to_blackhole_500ms_latency missed_bytes 10/10 0B = 0B
quality_gate_idle intake_connections 10/10 4 = 4 bounds checks dashboard
quality_gate_idle memory_usage 10/10 174.42MiB ≤ 181MiB bounds checks dashboard
quality_gate_idle_all_features intake_connections 10/10 4 = 4 bounds checks dashboard
quality_gate_idle_all_features memory_usage 10/10 496.29MiB ≤ 550MiB bounds checks dashboard
quality_gate_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_logs memory_usage 10/10 207.37MiB ≤ 220MiB bounds checks dashboard
quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
quality_gate_metrics_logs cpu_usage 10/10 353.23 ≤ 2000 bounds checks dashboard
quality_gate_metrics_logs intake_connections 10/10 4 ≤ 6 bounds checks dashboard
quality_gate_metrics_logs memory_usage 10/10 425.19MiB ≤ 475MiB bounds checks dashboard
quality_gate_metrics_logs missed_bytes 10/10 0B = 0B 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 missed_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.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_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 memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.

Base automatically changed from brian.tu/mac-ddagentuser to main April 15, 2026 17:47
@briantu briantu added changelog/no-changelog No changelog entry needed qa/done QA done before merge and regressions are covered by tests labels Apr 16, 2026
@briantu briantu force-pushed the brian.tu/preinst-wait-bootout branch from e62c75f to fe3f11d Compare April 16, 2026 09:42
@briantu briantu removed request for a team, gpalmz and nathan-b April 16, 2026 11:03
@briantu briantu removed the request for review from a team April 16, 2026 11:04
@briantu briantu force-pushed the brian.tu/preinst-wait-bootout branch from fe3f11d to 109989a Compare April 16, 2026 12:25
@briantu briantu force-pushed the brian.tu/preinst-wait-bootout branch from 109989a to 82e15b3 Compare April 17, 2026 00:18
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot merged commit a46a4ed into main Apr 17, 2026
327 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot deleted the brian.tu/preinst-wait-bootout branch April 17, 2026 02:12
@github-actions github-actions bot added this to the 7.79.0 milestone Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR medium review PR review might take time qa/done QA done before merge and regressions are covered by tests team/agent-build team/windows-products

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants