-
Notifications
You must be signed in to change notification settings - Fork 8
fix(agent-data-plane): allow check config files without init_config
#1166
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
fix(agent-data-plane): allow check config files without init_config
#1166
Conversation
init_configinit_config
db5f0e2 to
2e1e3c7
Compare
Binary Size Analysis (Agent Data Plane)Target: 98de5fa (baseline) vs 47d7aa7 (comparison) diff
|
| Module | File Size | Symbols |
|---|---|---|
[Unmapped] |
+633 B | 1 |
figment |
-540 B | 7 |
saluki_config::ConfigurationLoader::with_default_secrets_resolution |
-174 B | 1 |
unicode_segmentation |
+8 B | 1 |
tokio |
-6 B | 1 |
std |
-4 B | 7 |
[sections] |
-3 B | 3 |
agent_data_plane::internal::remote_agent |
-2 B | 1 |
saluki_core::data_model::event |
+0 B | 4 |
hickory_proto |
+0 B | 8 |
rustls |
+0 B | 12 |
http |
+0 B | 26 |
crossbeam_channel |
+0 B | 8 |
aho_corasick |
+0 B | 60 |
hashbrown |
+0 B | 2 |
regex_syntax |
+0 B | 2 |
aws_lc_rs |
+0 B | 6 |
h2 |
+0 B | 18 |
core |
+0 B | 20 |
tonic |
+0 B | 2 |
Detailed Symbol Changes
FILE SIZE VM SIZE
-------------- --------------
[NEW] +10.9Ki [NEW] +10.7Ki <saluki_core::data_model::event::Event as core::clone::Clone>::clone.10330
[NEW] +5.52Ki [NEW] +5.38Ki <hickory_proto::rr::record_data::RData as core::clone::Clone>::clone.8521
[NEW] +4.71Ki [NEW] +4.59Ki <rustls::error::Error as core::clone::Clone>::clone.10303
[NEW] +3.84Ki [NEW] +3.73Ki <rustls::error::Error as core::clone::Clone>::clone.9760
[NEW] +3.66Ki [NEW] +3.54Ki <rustls::error::Error as core::fmt::Debug>::fmt.9893
[NEW] +3.55Ki [NEW] +3.44Ki <rustls::error::Error as core::fmt::Debug>::fmt.9761
[NEW] +2.85Ki [NEW] +2.70Ki <saluki_core::data_model::event::metric::value::MetricValues as core::clone::Clone>::clone.10331
[NEW] +2.33Ki [NEW] +2.22Ki <figment::error::Kind as core::fmt::Debug>::fmt.10581
[NEW] +2.20Ki [NEW] +2.08Ki <figment::error::Actual as core::fmt::Debug>::fmt.10582
[NEW] +1.49Ki [NEW] +1.36Ki <hickory_proto::rr::rdata::svcb::SVCB as core::clone::Clone>::clone.8523
-0.0% -88 -0.1% -632 [260 Others]
[DEL] -1.49Ki [DEL] -1.36Ki <hickory_proto::rr::rdata::svcb::SVCB as core::clone::Clone>::clone.8525
[DEL] -2.20Ki [DEL] -2.08Ki <figment::error::Actual as core::fmt::Debug>::fmt.10584
[DEL] -2.33Ki [DEL] -2.22Ki <figment::error::Kind as core::fmt::Debug>::fmt.10583
[DEL] -2.85Ki [DEL] -2.70Ki <saluki_core::data_model::event::metric::value::MetricValues as core::clone::Clone>::clone.10333
[DEL] -3.55Ki [DEL] -3.44Ki <rustls::error::Error as core::fmt::Debug>::fmt.9763
[DEL] -3.66Ki [DEL] -3.54Ki <rustls::error::Error as core::fmt::Debug>::fmt.9895
[DEL] -3.84Ki [DEL] -3.73Ki <rustls::error::Error as core::clone::Clone>::clone.9762
[DEL] -4.71Ki [DEL] -4.59Ki <rustls::error::Error as core::clone::Clone>::clone.10305
[DEL] -5.52Ki [DEL] -5.38Ki <hickory_proto::rr::record_data::RData as core::clone::Clone>::clone.8523
[DEL] -10.9Ki [DEL] -10.7Ki <saluki_core::data_model::event::Event as core::clone::Clone>::clone.10332
-0.0% -88 -0.0% -632 TOTAL
|
|
||
| #[derive(Debug, Deserialize)] | ||
| struct LocalCheckConfig { | ||
| #[serde(default = "HashMap::new")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should just be able to do #[serde(default)] since HashMap<K, V> implements Default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks!
Regression Detector (Agent Data Plane)Regression Detector ResultsRun ID: 373bcf8f-19ee-457f-ae9e-afb233b68f6a Baseline: 98de5fa ❌ Experiments with retried target crashesThis is a critical error. One or more replicates failed with a non-zero exit code. These replicates may have been retried. See Replicate Execution Details for more information.
Optimization Goals: ❌ Regression(s) detected
|
| perf | experiment | goal | Δ mean % | Δ mean % CI | trials | links |
|---|---|---|---|---|---|---|
| ➖ | otlp_ingest_logs_5mb_cpu | % cpu utilization | +0.69 | [-4.50, +5.88] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_logs_5mb_throughput | ingress throughput | -0.02 | [-0.14, +0.11] | 1 | (metrics) (profiles) (logs) |
| ✅ | otlp_ingest_logs_5mb_memory | memory utilization | -5.11 | [-5.60, -4.62] | 1 | (metrics) (profiles) (logs) |
Fine details of change detection per experiment
| perf | experiment | goal | Δ mean % | Δ mean % CI | trials | links |
|---|---|---|---|---|---|---|
| ❌ | otlp_ingest_metrics_5mb_memory | memory utilization | +7.10 | [+6.88, +7.31] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_traces_5mb_cpu | % cpu utilization | +2.13 | [-0.63, +4.90] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_10mb_3k_contexts_cpu | % cpu utilization | +1.93 | [-28.42, +32.27] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_traces_5mb_memory | memory utilization | +1.52 | [+1.26, +1.78] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_idle | memory utilization | +0.74 | [+0.68, +0.80] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_logs_5mb_cpu | % cpu utilization | +0.69 | [-4.50, +5.88] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_500mb_3k_contexts_throughput | ingress throughput | +0.65 | [+0.51, +0.78] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_100mb_3k_contexts_memory | memory utilization | +0.53 | [+0.33, +0.73] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_low | memory utilization | +0.52 | [+0.36, +0.69] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_10mb_3k_contexts_memory | memory utilization | +0.29 | [+0.09, +0.49] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_ultraheavy | memory utilization | +0.21 | [+0.08, +0.34] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_heavy | memory utilization | +0.18 | [+0.05, +0.31] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_500mb_3k_contexts_memory | memory utilization | +0.18 | [-0.01, +0.37] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_medium | memory utilization | +0.07 | [-0.13, +0.26] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_1mb_3k_contexts_memory | memory utilization | +0.06 | [-0.13, +0.25] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_512kb_3k_contexts_memory | memory utilization | +0.03 | [-0.16, +0.22] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_metrics_5mb_throughput | ingress throughput | +0.02 | [-0.11, +0.14] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_traces_5mb_throughput | ingress throughput | +0.00 | [-0.08, +0.08] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_100mb_3k_contexts_throughput | ingress throughput | -0.00 | [-0.06, +0.06] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_512kb_3k_contexts_throughput | ingress throughput | -0.00 | [-0.06, +0.05] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_1mb_3k_contexts_throughput | ingress throughput | -0.00 | [-0.06, +0.05] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_10mb_3k_contexts_throughput | ingress throughput | -0.01 | [-0.17, +0.14] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_logs_5mb_throughput | ingress throughput | -0.02 | [-0.14, +0.11] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_metrics_5mb_cpu | % cpu utilization | -0.57 | [-6.26, +5.11] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_500mb_3k_contexts_cpu | % cpu utilization | -0.80 | [-2.05, +0.45] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_512kb_3k_contexts_cpu | % cpu utilization | -0.85 | [-55.63, +53.93] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_100mb_3k_contexts_cpu | % cpu utilization | -2.66 | [-8.18, +2.86] | 1 | (metrics) (profiles) (logs) |
| ✅ | otlp_ingest_logs_5mb_memory | memory utilization | -5.11 | [-5.60, -4.62] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_1mb_3k_contexts_cpu | % cpu utilization | -13.64 | [-62.19, +34.92] | 1 | (metrics) (profiles) (logs) |
Bounds Checks: ✅ Passed
| perf | experiment | bounds_check_name | replicates_passed | links |
|---|---|---|---|---|
| ✅ | quality_gates_rss_dsd_heavy | memory_usage | 10/10 | (metrics) (profiles) (logs) |
| ✅ | quality_gates_rss_dsd_low | memory_usage | 10/10 | (metrics) (profiles) (logs) |
| ✅ | quality_gates_rss_dsd_medium | memory_usage | 10/10 | (metrics) (profiles) (logs) |
| ✅ | quality_gates_rss_dsd_ultraheavy | memory_usage | 10/10 | (metrics) (profiles) (logs) |
| ✅ | quality_gates_rss_idle | memory_usage | 10/10 | (metrics) (profiles) (logs) |
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:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
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.
-
Its configuration does not mark it "erratic".
Replicate Execution Details
We run multiple replicates for each experiment/variant. However, we allow replicates to be automatically retried if there are any failures, up to 8 times, at which point the replicate is marked dead and we are unable to run analysis for the entire experiment. We call each of these attempts at running replicates a replicate execution. This section lists all replicate executions that failed due to the target crashing or being oom killed.
Note: In the below tables we bucket failures by experiment, variant, and failure type. For each of these buckets we list out the replicate indexes that failed with an annotation signifying how many times said replicate failed with the given failure mode. In the below example the baseline variant of the experiment named experiment_with_failures had two replicates that failed by oom kills. Replicate 0, which failed 8 executions, and replicate 1 which failed 6 executions, all with the same failure mode.
| Experiment | Variant | Replicates | Failure | Logs | Debug Dashboard |
|---|---|---|---|---|---|
| experiment_with_failures | baseline | 0 (x8) 1 (x6) | Oom killed | Debug Dashboard |
The debug dashboard links will take you to a debugging dashboard specifically designed to investigate replicate execution failures.
❌ Retried Normal Replicate Execution Failures (non-profiling)
| Experiment | Variant | Replicates | Failure | Debug Dashboard |
|---|---|---|---|---|
| otlp_ingest_logs_5mb_cpu | baseline | 4 | Failed to shutdown when requested | Debug Dashboard |
| otlp_ingest_logs_5mb_throughput | baseline | 8 | Failed to shutdown when requested | Debug Dashboard |
| otlp_ingest_metrics_5mb_memory | comparison | 9 | Failed to shutdown when requested | Debug Dashboard |
| otlp_ingest_traces_5mb_cpu | baseline | 5 | Failed to shutdown when requested | Debug Dashboard |
| quality_gates_rss_dsd_heavy | baseline | 4 | Failed to shutdown when requested | Debug Dashboard |
| quality_gates_rss_dsd_heavy | comparison | 4 | Failed to shutdown when requested | Debug Dashboard |
|
/gitlab resync-code |
|
View all feedbacks in Devflow UI.
resync successful |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
|
ba4c142
into
main
…#1166) ## Summary <!-- Please provide a brief summary about what this PR does. This should help the reviewers give feedback faster and with higher quality. --> This PR allows check configs that don't have `init_config` explicitly defined. Check configs like these are valid in the Agent, so should be in ADP to keep full compatibility between the Agent and ADP. ## Change Type - [x] Bug fix - [ ] New feature - [ ] Non-functional (chore, refactoring, docs) - [ ] Performance ## How did you test this PR? <!-- Please how you tested these changes here --> New unit test parsing a config file without `init_config` Co-authored-by: tobz <[email protected]> Co-authored-by: toby.lawrence <[email protected]> ba4c142
Summary
This PR allows check configs that don't have
init_configexplicitly defined. Check configs like these are valid in the Agent, so should be in ADP to keep full compatibility between the Agent and ADP.Change Type
How did you test this PR?
New unit test parsing a config file without
init_config