Skip to content

fix(topology,http): fix component memory bounds accounting and skip unused proxy TLS setup - #3426

Open
lukesteensen wants to merge 2 commits into
mainfrom
programmable-phase0-fixes
Open

lukesteensen wants to merge 2 commits into
mainfrom
programmable-phase0-fixes

Conversation

@lukesteensen

Copy link
Copy Markdown
Contributor

Peels off Phase 0 standalone fixes from #3424:

  1. TopologyBlueprint::add_* bounds accounting: inserts each added component into its component map before calling recalculate_bounds() so the newly added component is included in memory bounds calculations, with a regression test.
  2. Lazy HTTP proxy TLS config: skips building platform-root proxy TLS config and ProxyConnector wrapping in lib/saluki-io/src/net/client/http/client.rs when no proxies are configured.

Independent of the programmable metrics exploration and safe to land on its own.

@lukesteensen lukesteensen added the changelog/no-changelog No changelog entry needed label Nov 25, 2026
@dd-octo-sts dd-octo-sts Bot added area/core Core functionality, event model, etc. area/io General I/O and networking. labels Nov 25, 2026
@pr-commenter

pr-commenter Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Binary Size Analysis (Agent Data Plane)

Baseline: 76fda64 · Comparison: 16d0413 · diff
Analysis Configuration: optimized-release profile, stripped binaries · Pass/Fail Threshold: +5%
Sizes: 25.47 MiB (baseline) vs 25.61 MiB (comparison)
Size Change: +140.00 KiB (+0.54%)

✅ Binary size difference within threshold

Changes by Module
Module File Size Symbols
hyper_util +39.64 KiB 19
hyper +28.44 KiB 22
h2 +26.95 KiB 14
[sections] +12.46 KiB 5
saluki_io::net::client +11.51 KiB 3
futures_util +9.53 KiB 8
core +7.92 KiB 52
hashbrown +4.49 KiB 5
tower -2.43 KiB 10
_RNvXst_NtNtCs27Vx93FoQ6z_4core3str7patternReNtB5_7Pattern15is_contained_in.12944 +2.12 KiB 1
_RNvXst_NtNtCs27Vx93FoQ6z_4core3str7patternReNtB5_7Pattern15is_contained_in.12943 -2.12 KiB 1
_RNvXst_NtNtCs27Vx93FoQ6z_4core3str7patternReNtB5_7Pattern15is_contained_in.13260 +2.05 KiB 1
_RNvXst_NtNtCs27Vx93FoQ6z_4core3str7patternReNtB5_7Pattern15is_contained_in.13259 -2.05 KiB 1
http +1.71 KiB 2
_ZN12serde_saphyr2de6events33attach_alias_locations_if_missing17hde8333aef0edffa6E.13056 +1.62 KiB 1
_ZN12serde_saphyr2de6events33attach_alias_locations_if_missing17hde8333aef0edffa6E.13055 -1.62 KiB 1
hyper_http_proxy -1.44 KiB 1
futures_channel +1.05 KiB 3
[Unmapped] -988 B 1
_ZN17crossbeam_channel5waker9SyncWaker6notify17hb853f08e8c3932caE.14758 +949 B 1
Detailed Symbol Changes
    FILE SIZE        VM SIZE    
 --------------  -------------- 
  +2.3% +38.8Ki  +2.3% +39.8Ki    [262 Others]
  [NEW] +21.0Ki  [NEW] +21.0Ki    h2::proto::connection::Connection<T,P,B>::poll::h712c4fd540c70dbc
  [NEW] +17.9Ki  [NEW] +17.9Ki    hyper_util::client::legacy::client::Client<C,B>::connect_to::_{{closure}}::_{{closure}}::_{{closure}}::hf0ae07ffd47490be
  [NEW] +17.9Ki  [NEW] +17.9Ki    hyper_util::client::legacy::client::Client<C,B>::send_request::_{{closure}}::h9e295ae2a8fd589c
  [NEW] +11.9Ki  [NEW] +11.9Ki    _<futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll::h08b6c891ee2a2e31
  [NEW] +9.61Ki  [NEW] +9.61Ki    _<hyper::proto::h1::role::Client as hyper::proto::h1::Http1Transaction>::parse::h942771b85716e09b
   +62% +8.87Ki   +62% +8.87Ki    saluki_io::net::client::http::client::HttpClientBuilder::build::h5e174705fd78a4a9
  [NEW] +7.14Ki  [NEW] +7.14Ki    hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_write::h5cc06a1f1478d3c8
  +0.9% +6.70Ki  +0.9% +6.70Ki    [section .gcc_except_table]
  [NEW] +5.77Ki  [NEW] +5.77Ki    _<hyper::proto::h1::role::Client as hyper::proto::h1::Http1Transaction>::encode::h56b097217d359cfd
  [NEW] +5.64Ki  [NEW] +5.64Ki    hyper::proto::h1::conn::Conn<I,B,T>::poll_read_body::h80dbac5a47325bc7
  [NEW] +5.10Ki  [NEW] +5.10Ki    _<futures_util::future::either::Either<A,B> as core::future::future::Future>::poll::hd4ac5b5436e40dba
  [NEW] +4.80Ki  [NEW] +4.80Ki    _<futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll::h205b53ed3327cf97
  +0.3% +4.00Ki  +0.3% +4.00Ki    [section .rodata]
  [NEW] +3.92Ki  [NEW] +3.92Ki    _<hyper::client::dispatch::SendWhen<B,E> as core::future::future::Future>::poll::h2e533eeda6a5101e
  [NEW] +3.91Ki  [NEW] +3.91Ki    h2::codec::framed_write::FramedWrite<T,B>::flush::h7436b1a22c31e92b
 -51.8% -5.16Ki -51.8% -5.16Ki    _<futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll::hccca5d3eac5b41ea
 -80.2% -5.28Ki -80.2% -5.28Ki    _<hyper::proto::h2::client::H2ClientFuture<B,T,E> as core::future::future::Future>::poll::h57c43d78317f42eb
 -23.8% -5.62Ki -23.8% -5.62Ki    hyper_util::client::legacy::client::Client<C,B>::send_request::_{{closure}}::h2feaef7bc53bbc94
 -49.8% -7.08Ki -49.8% -7.08Ki    hyper::proto::h1::dispatch::Dispatcher<D,Bs,I,T>::poll_write::hfef507d914f64bdb
 -45.4% -9.86Ki -45.4% -9.86Ki    _<futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll::h6e7f61d3eb5703a5
  +0.5%  +140Ki  +0.5%  +140Ki    TOTAL

@pr-commenter

pr-commenter Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Regression Detector (Agent Data Plane)

Run ID: 39f9cb86-5e7e-4cf2-b789-50a107217013
Baseline: 76fda640 · Comparison: 16d04136 · diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment (5)

Experiments configured erratic: true are tagged (ignored) and skipped when determining which experiments regressed or improved. Experiments which are detected as erratic at runtime are tagged (erratic) to flag that the run's sample dispersion was high, but their regression / improvement signal still counts.

experiment goal Δ mean % links
quality_gates_rss_dsd_heavy memory utilization ⚪ +0.76 metrics profiles logs
quality_gates_rss_idle memory utilization ⚪ -0.02 metrics profiles logs
quality_gates_rss_dsd_low memory utilization ⚪ -0.07 metrics profiles logs
quality_gates_rss_dsd_medium memory utilization ⚪ -0.26 metrics profiles logs
quality_gates_rss_dsd_ultraheavy (erratic) memory utilization ⚪ -0.34 metrics profiles logs
Bounds Checks: ✅ Passed (5)
experiment check replicates observed links
quality_gates_rss_dsd_heavy memory_usage 10/10 ✅ 213.06MiB ≤ 250MiB metrics profiles logs
quality_gates_rss_dsd_low memory_usage 10/10 ✅ 46.85MiB ≤ 55MiB metrics profiles logs
quality_gates_rss_dsd_medium memory_usage 10/10 ✅ 77.62MiB ≤ 92MiB metrics profiles logs
quality_gates_rss_dsd_ultraheavy memory_usage 10/10 ✅ 361.05MiB ≤ 420MiB metrics profiles logs
quality_gates_rss_idle memory_usage 10/10 ✅ 30.51MiB ≤ 36MiB metrics profiles logs
Explanation

A change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression (is_regression: true). Improvements use the matching criteria for the improving direction. Experiments configured erratic: true (tagged (ignored)) are skipped outright; experiments detected as erratic at runtime (tagged (erratic)) still count, since that flag describes sample dispersion rather than directional certainty. The Δ mean % cell is colored accordingly: 🟢 = improvement, 🔴 = regression, ⚪ = neutral. Reduction in CPU or memory is an improvement; reduction in ingress throughput is a regression. Experiments tagged (no analysis) show ⚠️ n/a: SMP ran them but produced no analysis, usually because a replicate failed and exhausted its retries. Check the SMP report for that experiment's replicate failures.

@datadog-prod-us1-4 datadog-prod-us1-4 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

Static evidence supports correct bounds accounting and preserved TLS handling for configured proxies. The focused regression test could not run because the pinned byteorder dependency was unavailable offline.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 37cd65e

@lukesteensen
lukesteensen force-pushed the programmable-phase0-fixes branch from 37cd65e to 1dc39a2 Compare December 2, 2026 20:00

@datadog-prod-us1-4 datadog-prod-us1-4 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

The bounds fix applies consistently across all seven component types, and proxy-configured HTTP clients retain their TLS verification and handshake timeout setup. The completed static review identified no actionable defect.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 1dc39a2

@lukesteensen
lukesteensen force-pushed the programmable-phase0-fixes branch from 1dc39a2 to 16d0413 Compare December 2, 2026 21:15

@datadog-prod-us1-4 datadog-prod-us1-4 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

No actionable regressions were identified in component memory accounting or HTTP connector construction. Runtime behavior was not exercised.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 16d0413

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Core functionality, event model, etc. area/io General I/O and networking. changelog/no-changelog No changelog entry needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant