Skip to content

test(undici): force proxy tunnel in CONNECT regression test#9271

Merged
tlhunter merged 1 commit into
masterfrom
BridgeAR/2026-07-08-undici-proxy-tunnel-connect-test
Jul 14, 2026
Merged

test(undici): force proxy tunnel in CONNECT regression test#9271
tlhunter merged 1 commit into
masterfrom
BridgeAR/2026-07-08-undici-proxy-tunnel-connect-test

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Jul 8, 2026

Copy link
Copy Markdown
Member

undici 8.7.0 (nodejs/undici#5116) changed the default so a plain HTTP request through an HTTP proxy forwards an absolute-form request instead of tunneling via CONNECT. The ProxyAgent CONNECT-span regression test then sees no CONNECT request at all and fails asserting a finished CONNECT span. Passing proxyTunnel: true restores the tunnel; the option is a no-op on undici < 6.22.0, where CONNECT was always used.

Refs: nodejs/undici#5116

undici 8.7.0 (nodejs/undici#5116) changed the default so a plain HTTP request
through an HTTP proxy forwards an absolute-form request instead of tunneling
via CONNECT. The ProxyAgent CONNECT-span regression test then sees no CONNECT
request at all and fails asserting a finished CONNECT span. Passing
proxyTunnel: true restores the tunnel; the option is a no-op on undici < 6.22.0,
where CONNECT was always used.

Refs: nodejs/undici#5116
@dd-octo-sts

dd-octo-sts Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.68 MB
Deduped: 7.34 MB
No deduping: 7.34 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.1 | 122.62 kB | 437.94 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Jul 8, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 96.51% (-0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d605114 | Docs | Datadog PR Page | Give us feedback!

@pr-commenter

pr-commenter Bot commented Jul 8, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-08 20:57:05

Comparing candidate commit d605114 in PR branch BridgeAR/2026-07-08-undici-proxy-tunnel-connect-test with baseline commit f8d1b6f in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2310 metrics, 48 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:appsec-appsec-enabled-24

  • unstable execution_time [-168.822ms; +230.136ms] or [-6.434%; +8.770%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-229526.199µs; +230022.799µs] or [-8.986%; +9.006%]

scenario:appsec-appsec-enabled-with-attacks-24

  • unstable execution_time [-168.382ms; +160.375ms] or [-5.459%; +5.199%]

scenario:appsec-appsec-enabled-with-attacks-26

  • unstable execution_time [-183.460ms; +186.236ms] or [-6.335%; +6.431%]

scenario:appsec-control-20

  • unstable execution_time [-123.785ms; +129.731ms] or [-7.520%; +7.881%]

scenario:appsec-control-24

  • unstable execution_time [-114.741ms; +111.465ms] or [-9.284%; +9.019%]

scenario:appsec-control-26

  • unstable execution_time [-122672.831µs; +124469.865µs] or [-9.975%; +10.121%]

scenario:appsec-iast-no-vulnerability-control-20

  • unstable execution_time [-11.702ms; +20.503ms] or [-4.550%; +7.972%]

scenario:appsec-iast-no-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-14209.039µs; +15171.839µs] or [-5.605%; +5.985%]

scenario:appsec-iast-no-vulnerability-iast-enabled-default-config-20

  • unstable execution_time [-10.818ms; +24.504ms] or [-4.142%; +9.382%]

scenario:appsec-iast-with-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-30703.584µs; +31821.372µs] or [-5.461%; +5.660%]

scenario:appsec-iast-with-vulnerability-iast-enabled-default-config-20

  • unstable execution_time [-19.190ms; +36.398ms] or [-3.498%; +6.635%]

scenario:child_process-shell-string-24

  • unstable cpu_usage_percentage [-6.680%; +3.928%]
  • unstable execution_time [-18.646ms; +26.062ms] or [-5.739%; +8.022%]
  • unstable throughput [-235787.889op/s; +192607.788op/s] or [-6.565%; +5.363%]

scenario:debugger-line-probe-with-snapshot-default-24

  • unstable cpu_user_time [-2080.451ms; +509.388ms] or [-23.344%; +5.716%]
  • unstable execution_time [-2120.168ms; +516.891ms] or [-22.011%; +5.366%]
  • unstable instructions [-18.0G instructions; +4.3G instructions] or [-24.615%; +5.941%]
  • unstable throughput [-190.479op/s; +595.773op/s] or [-5.540%; +17.327%]

scenario:debugger-line-probe-with-snapshot-minimal-24

  • unstable cpu_user_time [-1545.999ms; +484.625ms] or [-18.576%; +5.823%]
  • unstable execution_time [-1566.471ms; +481.505ms] or [-17.356%; +5.335%]
  • unstable instructions [-13.0G instructions; +4.3G instructions] or [-19.105%; +6.354%]
  • unstable throughput [-144.352op/s; +460.084op/s] or [-3.980%; +12.684%]

scenario:debugger-line-probe-with-snapshot-minimal-26

  • unstable cpu_user_time [-2018.146ms; +3323.694ms] or [-21.541%; +35.476%]
  • unstable execution_time [-1972.658ms; +3293.230ms] or [-19.524%; +32.595%]
  • unstable instructions [-18.1G instructions; +29.5G instructions] or [-23.213%; +37.912%]
  • unstable max_rss_usage [-6.458MB; +10.119MB] or [-4.062%; +6.366%]
  • unstable throughput [-724.960op/s; +420.371op/s] or [-22.322%; +12.944%]

scenario:debugger-line-probe-without-snapshot-26

  • unstable cpu_user_time [-2074.835ms; +3299.996ms] or [-22.247%; +35.384%]
  • unstable execution_time [-2101.295ms; +3294.136ms] or [-20.893%; +32.754%]
  • unstable instructions [-18.2G instructions; +29.6G instructions] or [-23.397%; +38.004%]
  • unstable max_rss_usage [-7.189MB; +10.917MB] or [-4.530%; +6.879%]
  • unstable throughput [-722.558op/s; +463.123op/s] or [-22.132%; +14.185%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-506.511ms; +196.114ms] or [-10.390%; +4.023%]
  • unstable execution_time [-504.006ms; +194.868ms] or [-10.182%; +3.937%]
  • unstable throughput [-68558.924op/s; +171837.718op/s] or [-4.036%; +10.117%]

scenario:plugin-claude-agent-sdk-compact-stream-scan-24

  • unstable cpu_usage_percentage [-5.958%; +4.243%]

scenario:plugin-graphql-long-with-depth-off-20

  • unstable max_rss_usage [-8.138MB; +5.034MB] or [-6.277%; +3.883%]

scenario:plugin-graphql-long-with-depth-on-max-20

  • unstable cpu_user_time [-769.025ms; +712.842ms] or [-5.981%; +5.544%]
  • unstable execution_time [-772.887ms; +712.467ms] or [-5.879%; +5.420%]
  • unstable throughput [-3.271op/s; +3.586op/s] or [-5.341%; +5.856%]

scenario:plugin-mongodb-core-binary-hash-20

  • unstable execution_time [-123.599ms; +221.199ms] or [-4.021%; +7.195%]

scenario:plugin-mongodb-core-plain-find-26

  • unstable cpu_usage_percentage [-6.487%; +4.100%]
  • unstable execution_time [-132.132ms; +208.655ms] or [-6.267%; +9.897%]
  • unstable throughput [-280041.707op/s; +179245.256op/s] or [-7.134%; +4.566%]

scenario:scope-manager-scope_enabled-20

  • unstable execution_time [-14.304ms; +26.615ms] or [-4.612%; +8.582%]
  • unstable throughput [-64355.448op/s; +37389.156op/s] or [-7.354%; +4.272%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-4.183MB; +6.192MB] or [-5.198%; +7.695%]

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.55%. Comparing base (f8d1b6f) to head (d605114).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9271      +/-   ##
==========================================
- Coverage   96.55%   96.55%   -0.01%     
==========================================
  Files         918      918              
  Lines      121410   121410              
  Branches    20900    21110     +210     
==========================================
- Hits       117229   117225       -4     
- Misses       4181     4185       +4     
Flag Coverage Δ
aiguard 53.62% <ø> (-0.05%) ⬇️
aiguard-integration 57.05% <ø> (ø)
apm-bucket-0 53.84% <ø> (-0.05%) ⬇️
apm-bucket-1 58.15% <ø> (-0.05%) ⬇️
apm-bucket-2 56.17% <ø> (-0.05%) ⬇️
apm-capabilities-tracing 60.27% <ø> (ø)
apm-integrations-aerospike 53.01% <ø> (-0.05%) ⬇️
apm-integrations-confluentinc-kafka-javascript 57.05% <ø> (-0.12%) ⬇️
apm-integrations-couchbase 53.32% <ø> (-0.05%) ⬇️
apm-integrations-http 58.03% <ø> (-0.05%) ⬇️
apm-integrations-kafkajs 57.77% <ø> (-0.07%) ⬇️
apm-integrations-next 54.30% <ø> (-0.05%) ⬇️
apm-integrations-prisma 54.23% <ø> (-0.05%) ⬇️
apm-integrations-tedious 53.10% <ø> (-0.05%) ⬇️
appsec 69.06% <ø> (-0.08%) ⬇️
appsec-express_fastify_graphql 65.67% <ø> (-0.05%) ⬇️
appsec-integration 45.59% <ø> (ø)
appsec-kafka_ldapjs_lodash 59.16% <ø> (-0.04%) ⬇️
appsec-mongodb-core_mongoose_mysql 62.32% <ø> (-0.04%) ⬇️
appsec-next 52.90% <ø> (-0.04%) ⬇️
appsec-node-serialize_passport_postgres 61.95% <ø> (-0.04%) ⬇️
appsec-sourcing_stripe_template 60.30% <ø> (-0.04%) ⬇️
debugger 65.73% <ø> (-0.02%) ⬇️
instrumentations-bucket-0 48.81% <ø> (-0.05%) ⬇️
instrumentations-bucket-1 55.02% <ø> (-0.05%) ⬇️
instrumentations-bucket-10 56.69% <ø> (-0.05%) ⬇️
instrumentations-bucket-11 48.80% <ø> (-0.05%) ⬇️
instrumentations-bucket-12 48.90% <ø> (-0.05%) ⬇️
instrumentations-bucket-13 48.73% <ø> (-0.05%) ⬇️
instrumentations-bucket-2 49.79% <ø> (-0.05%) ⬇️
instrumentations-bucket-3 53.89% <ø> (-0.05%) ⬇️
instrumentations-bucket-4 49.22% <ø> (-0.05%) ⬇️
instrumentations-bucket-5 53.06% <ø> (-0.05%) ⬇️
instrumentations-bucket-6 55.67% <ø> (-0.05%) ⬇️
instrumentations-bucket-7 53.65% <ø> (-0.05%) ⬇️
instrumentations-bucket-8 54.69% <ø> (-0.05%) ⬇️
instrumentations-bucket-9 56.16% <ø> (-0.04%) ⬇️
instrumentations-instrumentation-couchbase 48.23% <ø> (-0.05%) ⬇️
instrumentations-integration-esbuild 33.96% <ø> (ø)
llmobs-ai_anthropic_bedrock 57.79% <ø> (-0.04%) ⬇️
llmobs-bucket-1 57.04% <ø> (-0.04%) ⬇️
llmobs-openai 57.63% <ø> (-0.04%) ⬇️
llmobs-sdk 60.03% <ø> (-0.05%) ⬇️
llmobs-vertex-ai 54.27% <ø> (-0.05%) ⬇️
master-coverage 96.55% <ø> (?)
openfeature 54.66% <ø> (ø)
openfeature-unit 49.88% <ø> (-0.05%) ⬇️
platform-core_esbuild_instrumentations-misc 38.44% <ø> (-0.03%) ⬇️
platform-integration 62.24% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 37.23% <ø> (-0.03%) ⬇️
plugins-axios_body-parser_bullmq ?
plugins-bucket-0 53.23% <ø> (-0.05%) ⬇️
plugins-bucket-1 55.13% <ø> (ø)
plugins-bucket-11 55.63% <ø> (-0.05%) ⬇️
plugins-bucket-17 ?
plugins-bucket-18 57.12% <ø> (-4.00%) ⬇️
plugins-bucket-19 55.44% <ø> (-0.05%) ⬇️
plugins-bucket-20 57.51% <ø> (-0.05%) ⬇️
plugins-bucket-4 53.91% <ø> (-0.05%) ⬇️
plugins-bullmq_cassandra_cookie 57.46% <ø> (-0.05%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 52.37% <ø> (-0.05%) ⬇️
plugins-fetch_fs_generic-pool 54.60% <ø> (+0.03%) ⬆️
plugins-google-cloud-pubsub_grpc_handlebars 59.93% <ø> (-0.05%) ⬇️
plugins-hapi_hono_ioredis 55.92% <ø> (-0.05%) ⬇️
plugins-jest_knex_langgraph 51.72% <ø> (-0.05%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 53.49% <ø> (-0.05%) ⬇️
plugins-lodash_mariadb_memcached 54.27% <ø> (-0.05%) ⬇️
plugins-moleculer_mongodb_mongodb-core 57.35% <ø> (-0.05%) ⬇️
plugins-mongoose_multer_mysql 54.77% <ø> (-0.05%) ⬇️
plugins-mysql2_nats_node-serialize 56.27% <ø> (-0.05%) ⬇️
plugins-opensearch_passport-http_pino 55.12% <ø> (-0.05%) ⬇️
plugins-postgres_process_pug 54.35% <ø> (-0.05%) ⬇️
plugins-redis_router_sequelize 57.10% <ø> (-0.05%) ⬇️
plugins-test-and-upstream-rhea_undici_url 57.09% <ø> (-0.04%) ⬇️
plugins-valkey_vm_winston 53.90% <ø> (-0.05%) ⬇️
plugins-ws 54.86% <ø> (-0.05%) ⬇️
profiling 58.25% <ø> (-0.05%) ⬇️
serverless-aws-sdk-aws-sdk 50.71% <ø> (-0.04%) ⬇️
serverless-aws-sdk-bedrockruntime 50.73% <ø> (-0.05%) ⬇️
serverless-aws-sdk-client 52.01% <ø> (-0.05%) ⬇️
serverless-aws-sdk-dynamodb 51.83% <ø> (-0.01%) ⬇️
serverless-aws-sdk-eventbridge 46.27% <ø> (-0.05%) ⬇️
serverless-aws-sdk-kinesis 54.76% <ø> (-0.05%) ⬇️
serverless-aws-sdk-lambda 52.84% <ø> (-0.05%) ⬇️
serverless-aws-sdk-s3 51.58% <ø> (-0.05%) ⬇️
serverless-aws-sdk-serverless-peer-service 54.78% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sns 55.53% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sqs 55.96% <ø> (-0.05%) ⬇️
serverless-aws-sdk-stepfunctions 51.30% <ø> (-0.05%) ⬇️
serverless-aws-sdk-util 48.52% <ø> (-0.05%) ⬇️
serverless-bucket-0 55.28% <ø> (ø)
serverless-bucket-1 56.06% <ø> (-0.05%) ⬇️
test-optimization-cucumber 73.00% <ø> (+0.06%) ⬆️
test-optimization-cypress 66.41% <ø> (+0.01%) ⬆️
test-optimization-jest 73.91% <ø> (-0.05%) ⬇️
test-optimization-mocha 74.33% <ø> (+0.04%) ⬆️
test-optimization-playwright-playwright-atr 61.64% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-efd 61.83% <ø> (-0.01%) ⬇️
test-optimization-playwright-playwright-final-status 61.78% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-impacted-tests 61.50% <ø> (+0.15%) ⬆️
test-optimization-playwright-playwright-reporting 61.41% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-test-management 62.54% <ø> (-0.01%) ⬇️
test-optimization-playwright-playwright-test-span 61.54% <ø> (-0.08%) ⬇️
test-optimization-selenium 60.72% <ø> (-0.12%) ⬇️
test-optimization-testopt 59.19% <ø> (+0.08%) ⬆️
test-optimization-vitest 72.77% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BridgeAR
BridgeAR marked this pull request as ready for review July 8, 2026 21:17
@BridgeAR
BridgeAR requested a review from a team as a code owner July 8, 2026 21:17
@BridgeAR
BridgeAR requested review from bojbrook and removed request for a team July 8, 2026 21:17
@BridgeAR
BridgeAR marked this pull request as draft July 8, 2026 22:53
@BridgeAR
BridgeAR marked this pull request as ready for review July 9, 2026 07:47
@tlhunter
tlhunter merged commit 57c374e into master Jul 14, 2026
690 of 691 checks passed
@tlhunter
tlhunter deleted the BridgeAR/2026-07-08-undici-proxy-tunnel-connect-test branch July 14, 2026 19:16
This was referenced Jul 15, 2026
juan-fernandez pushed a commit that referenced this pull request Jul 16, 2026
undici 8.7.0 (nodejs/undici#5116) changed the default so a plain HTTP request
through an HTTP proxy forwards an absolute-form request instead of tunneling
via CONNECT. The ProxyAgent CONNECT-span regression test then sees no CONNECT
request at all and fails asserting a finished CONNECT span. Passing
proxyTunnel: true restores the tunnel; the option is a no-op on undici < 6.22.0,
where CONNECT was always used.

Refs: nodejs/undici#5116
juan-fernandez pushed a commit that referenced this pull request Jul 16, 2026
undici 8.7.0 (nodejs/undici#5116) changed the default so a plain HTTP request
through an HTTP proxy forwards an absolute-form request instead of tunneling
via CONNECT. The ProxyAgent CONNECT-span regression test then sees no CONNECT
request at all and fails asserting a finished CONNECT span. Passing
proxyTunnel: true restores the tunnel; the option is a no-op on undici < 6.22.0,
where CONNECT was always used.

Refs: nodejs/undici#5116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants