Repository navigation
ci(benchmarks): gate cpu and rss on all python-server-utilization scenarios - #21098
Conversation
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 1 Pipeline job failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed 🔄 Datadog retried 1 test - 1 passed on retry 🚧 1 test that failed was ignored due to quarantine Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 5b6e8d2 | Docs | View more details | Give us feedback! |
BenchmarksBenchmark execution time: 2026-10-21 11:41:52 Comparing candidate commit 5b6e8d2 in PR branch Found 0 performance improvements and 5 performance regressions! Performance is the same for 618 metrics, 10 unstable metrics, 6 known flaky benchmarks, 18 flaky benchmarks without significant changes.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
CPU and RSS thresholds cover all configured steady-state utilization scenarios without duplicates, preserve existing thresholds, and exclude warmup. The completed static review found no actionable defects.
🤖 Bits Code Review · Commit 82f01f5
20070ef
into
main
Why
Benchmarking Platform Coverage defines the criteria for benchmarking coverage. The standard set of metrics that should be gated:
dd-trace-py gates latency and throughput across its macrobenchmark configurations, but gates
cpu_usage_percentageandrsson a single scenario (normal_operation/tracing-profiling-enabled/python-server-utilization). This PR extends CPU and RSS thresholds to every scenario that produces a utilization series.APMSP-4112 Raise gates coverage on dd-trace-py
What
bp-analyzer generate slosoffers two threshold strategies:tight(CI-based, T=5%) for low-variability series, andloose(mean+3σ) for high-variability series. The choice is per metric and scenario, made from the series of the last three main pipelines (145585442, 145520634, 145463714).So we gate:
rsson every scenario with a utilization series (normal_operation, high_load): plateaus are stable across pipelines (coefficient of variation ≈ 2%).cpu_usage_percentageon every normal_operation and high_load scenario: plateau means are stable across pipelines (coefficient of variation ≤ 5%), and the high_load ramp shape is consistent from run to run.Existing entries are untouched; only missing CPU/RSS thresholds are added (generated from the same three pipelines (145585442, 145520634, 145463714), max per metric, rss in MB, generated values rounded UP to whole numbers: plain rounding went the wrong direction on over half the entries, so we take the ceiling). Warmup stages are not gated, by convention.
Testing
bp-analyzer compare vsthresholds --fail_on_breachagainst each of the last three main pipelines' candidate artifacts passes: no breaches, no missing scenarios (all gated scenarios found in every pipeline).cpu_usage_percentageas unstable (the ramp inflates intra-run variance); it downgrades those checks to non-blocking, and the gates still enforce whenever the series is stable.Notes
dd-gitlab/pre-release-gate-prototypeand is inevaluate(non-blocking) mode; no active ruleset requires the GitLabcheck-slo-breachescontext. The GitLab-side wiring is blocking (when: always, noallow_failurein the gate chain) — raising the GitHub ruleset to active would be a separate, admin-level change.