Skip to content

fix(ci): avoid branch-name command injection in image dispatch#8513

Merged
andrewlock merged 1 commit into
masterfrom
codex/propose-fix-for-ci-command-injection-vulnerability
Apr 27, 2026
Merged

fix(ci): avoid branch-name command injection in image dispatch#8513
andrewlock merged 1 commit into
masterfrom
codex/propose-fix-for-ci-command-injection-vulnerability

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Motivation

  • Prevent command injection and secret exfiltration risk when a labeled PR triggers the image-dispatch path by ensuring untrusted branch names are not interpolated directly into shell script bodies.

Description

  • In the Azure Pipelines job, read the PR source branch from an environment variable PR_SOURCE_BRANCH instead of embedding $(System.PullRequest.SourceBranch) directly into the script, and normalize it by stripping the refs/heads/ prefix with BRANCH_NAME="${BRANCH_NAME#refs/heads/}" before use.
  • Quote the REF assignment (REF="$(Build.SourceBranch)") to avoid accidental word-splitting during parsing.
  • Expose PR_SOURCE_BRANCH via the job env so the pipeline consumes an env var rather than untrusted inline interpolation.
  • In the dispatched GitHub Actions workflow, stop embedding �${{ github.event.inputs.branch_name }} directly in the script and instead pass the input through a step env variable BRANCH_NAME_INPUT and then sanitize/normalize that variable in-shell before generating the image_tag.

Testing

  • No automated tests were run for this change.

Codex Task

@andrewlock
andrewlock force-pushed the codex/propose-fix-for-ci-command-injection-vulnerability branch from ef13570 to 8380bed Compare April 23, 2026 16:39
@andrewlock andrewlock added area:builds project files, build scripts, pipelines, versioning, releases, packages AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos and removed codex aardvark labels Apr 23, 2026

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, I can't approve, because it was "me" 😅

@pr-commenter

pr-commenter Bot commented Apr 23, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-23 17:46:54

Comparing candidate commit 8380bed in PR branch codex/propose-fix-for-ci-command-injection-vulnerability with baseline commit 276cb7d in branch master.

Found 0 performance improvements and 1 performance regressions! Performance is the same for 26 metrics, 0 unstable metrics, 57 known flaky benchmarks, 30 flaky benchmarks without significant changes.

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 ----------------------------------'

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5988.948op/s; -5715.862op/s] or [-6.837%; -6.525%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0

  • 🟩 throughput [+7014.231op/s; +9704.131op/s] or [+5.896%; +8.157%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+301.305ms; +302.953ms] or [+149.518%; +150.336%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+384.510ms; +387.201ms] or [+303.787%; +305.913%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+398.744ms; +401.794ms] or [+352.873%; +355.572%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-16.070ms; -11.898ms] or [-7.505%; -5.557%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • 🟥 throughput [-256229.594op/s; -253058.712op/s] or [-26.162%; -25.839%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.168ms; -21.318ms] or [-11.670%; -9.507%]
  • 🟥 throughput [-79087.771op/s; -55496.823op/s] or [-8.449%; -5.929%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-139122.471op/s; -123070.343op/s] or [-19.989%; -17.683%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟩 throughput [+6682.414op/s; +9358.675op/s] or [+5.323%; +7.455%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+253983.981op/s; +321694.423op/s] or [+8.469%; +10.727%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-19.035ms; -14.689ms] or [-8.775%; -6.771%]
  • 🟩 throughput [+137650.038op/s; +193130.569op/s] or [+5.464%; +7.666%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟥 execution_time [+300.615ms; +301.126ms] or [+150.207%; +150.463%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟥 execution_time [+300.226ms; +303.613ms] or [+151.404%; +153.113%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟥 execution_time [+299.516ms; +301.969ms] or [+150.873%; +152.109%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+297.490ms; +298.316ms] or [+146.115%; +146.521%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+295.780ms; +298.299ms] or [+144.596%; +145.827%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+300.275ms; +301.523ms] or [+150.077%; +150.701%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟥 execution_time [+24.401µs; +48.016µs] or [+7.790%; +15.329%]
  • 🟥 throughput [-444.859op/s; -246.166op/s] or [-13.868%; -7.674%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.025ms; +300.687ms] or [+149.743%; +150.074%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • 🟥 execution_time [+409.592ms; +414.170ms] or [+445.039%; +450.013%]
  • 🟩 throughput [+1209.940op/s; +1353.217op/s] or [+9.942%; +11.120%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • unstable execution_time [+275.657ms; +315.670ms] or [+209.304%; +239.685%]
  • 🟩 throughput [+691.115op/s; +898.956op/s] or [+6.690%; +8.702%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.861KB; +2.866KB] or [+5.083%; +5.091%]
  • unstable execution_time [+282.135ms; +350.860ms] or [+129.723%; +161.322%]
  • 🟥 throughput [-537.951op/s; -470.550op/s] or [-48.744%; -42.636%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • unstable execution_time [+198.766ms; +331.968ms] or [+84.706%; +141.471%]
  • 🟥 throughput [-744.190op/s; -660.685op/s] or [-49.638%; -44.068%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+325.972ms; +334.543ms] or [+194.969%; +200.096%]
  • 🟥 throughput [-404.432op/s; -369.043op/s] or [-28.160%; -25.696%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1

  • 🟩 throughput [+20.575op/s; +48.891op/s] or [+5.914%; +14.054%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • 🟩 execution_time [-179.741µs; -144.327µs] or [-9.105%; -7.311%]
  • 🟩 throughput [+41.620op/s; +51.424op/s] or [+8.216%; +10.152%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.780ms; +304.093ms] or [+152.474%; +153.136%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+299.400ms; +300.939ms] or [+150.030%; +150.801%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+301.345ms; +304.513ms] or [+151.383%; +152.974%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.803ms; +303.202ms] or [+151.555%; +152.258%]
  • 🟩 throughput [+15527.437op/s; +17529.977op/s] or [+5.202%; +5.873%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+298.349ms; +299.779ms] or [+147.520%; +148.227%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+302.851ms; +306.298ms] or [+153.498%; +155.245%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+302.194ms; +303.818ms] or [+151.674%; +152.489%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+299.865ms; +302.236ms] or [+149.455%; +150.637%]
  • 🟩 throughput [+39505.661op/s; +45704.629op/s] or [+7.845%; +9.075%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+302.034ms; +304.845ms] or [+150.259%; +151.658%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.351ms; -12.669ms] or [-7.603%; -5.891%]
  • 🟩 throughput [+19219.424op/s; +26185.960op/s] or [+5.272%; +7.184%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+13.301µs; +54.668µs] or [+3.285%; +13.503%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-24.927KB; -24.907KB] or [-9.093%; -9.085%]
  • unstable execution_time [-56.688µs; -4.518µs] or [-11.204%; -0.893%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • unstable execution_time [+7.070µs; +11.362µs] or [+16.712%; +26.857%]
  • 🟥 throughput [-4996.257op/s; -3199.799op/s] or [-21.033%; -13.470%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • unstable execution_time [-15.144µs; -8.238µs] or [-23.496%; -12.781%]
  • 🟩 throughput [+2131.417op/s; +3569.823op/s] or [+13.077%; +21.902%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.555ms; +304.397ms] or [+152.928%; +153.859%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+302.953ms; +305.348ms] or [+154.202%; +155.421%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+299.217ms; +301.513ms] or [+149.795%; +150.944%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • 🟩 throughput [+34865.733op/s; +40302.822op/s] or [+6.599%; +7.628%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.273ms; +301.800ms] or [+149.659%; +150.420%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+302.193ms; +303.377ms] or [+151.747%; +152.342%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+303.804ms; +306.164ms] or [+154.070%; +155.267%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.796ms; +300.656ms] or [+149.540%; +149.969%]
  • 🟩 throughput [+61247543.334op/s; +61521963.084op/s] or [+44.604%; +44.804%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • unstable execution_time [+377.019ms; +411.028ms] or [+468.890%; +511.186%]
  • 🟩 throughput [+1054.748op/s; +1227.426op/s] or [+8.154%; +9.489%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+299.136ms; +300.075ms] or [+149.202%; +149.671%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+100088.910op/s; +108344.605op/s] or [+9.345%; +10.116%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0

  • 🟩 throughput [+95827.765op/s; +125537.529op/s] or [+7.417%; +9.717%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • 🟩 throughput [+69345.203op/s; +77859.313op/s] or [+6.887%; +7.733%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+43968.721op/s; +48918.809op/s] or [+7.984%; +8.883%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • 🟩 throughput [+79474.987op/s; +96896.854op/s] or [+8.879%; +10.826%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8513) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration72.91 ± (72.95 - 73.44) ms74.35 ± (74.62 - 75.34) ms+2.0%✅⬆️
.NET Framework 4.8 - Bailout
duration79.92 ± (79.57 - 80.11) ms79.43 ± (79.24 - 79.87) ms-0.6%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1080.20 ± (1077.76 - 1083.78) ms1077.04 ± (1078.73 - 1087.44) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.78 ± (22.71 - 22.84) ms22.96 ± (22.89 - 23.03) ms+0.8%✅⬆️
process.time_to_main_ms86.79 ± (86.45 - 87.13) ms87.45 ± (87.13 - 87.77) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.92 ± (10.91 - 10.92) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.79 ± (22.73 - 22.84) ms22.53 ± (22.48 - 22.58) ms-1.1%
process.time_to_main_ms88.16 ± (87.87 - 88.45) ms87.06 ± (86.81 - 87.32) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.94) MB10.96 ± (10.95 - 10.96) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.46 ± (209.53 - 211.38) ms212.81 ± (211.96 - 213.66) ms+1.1%✅⬆️
process.time_to_main_ms531.64 ± (530.14 - 533.14) ms532.22 ± (531.04 - 533.41) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.05 ± (48.03 - 48.08) MB47.93 ± (47.89 - 47.96) MB-0.3%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms21.33 ± (21.29 - 21.37) ms21.19 ± (21.15 - 21.24) ms-0.6%
process.time_to_main_ms74.06 ± (73.88 - 74.23) ms73.54 ± (73.28 - 73.81) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.63) MB10.63 ± (10.63 - 10.64) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.64 ± (21.58 - 21.69) ms20.98 ± (20.95 - 21.01) ms-3.0%
process.time_to_main_ms77.40 ± (77.10 - 77.70) ms73.43 ± (73.26 - 73.60) ms-5.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.73 - 10.74) MB10.75 ± (10.74 - 10.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.27 ± (382.20 - 386.34) ms381.31 ± (379.31 - 383.31) ms-0.8%
process.time_to_main_ms529.74 ± (528.24 - 531.24) ms534.17 ± (532.84 - 535.51) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.34 ± (49.31 - 49.37) MB49.35 ± (49.32 - 49.37) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.56 ± (19.52 - 19.60) ms19.86 ± (19.81 - 19.92) ms+1.5%✅⬆️
process.time_to_main_ms73.25 ± (73.06 - 73.44) ms75.45 ± (75.15 - 75.75) ms+3.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.65 ± (7.64 - 7.65) MB7.65 ± (7.65 - 7.66) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.53 ± (19.49 - 19.57) ms19.76 ± (19.70 - 19.82) ms+1.2%✅⬆️
process.time_to_main_ms74.20 ± (74.03 - 74.36) ms75.75 ± (75.49 - 76.01) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.69 - 7.71) MB7.71 ± (7.71 - 7.72) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.92 ± (295.97 - 299.87) ms302.11 ± (299.86 - 304.37) ms+1.4%✅⬆️
process.time_to_main_ms495.51 ± (494.33 - 496.68) ms488.97 ± (487.67 - 490.26) ms-1.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.46 ± (36.43 - 36.48) MB36.52 ± (36.49 - 36.54) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.2%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration205.17 ± (205.28 - 206.69) ms203.94 ± (203.99 - 205.22) ms-0.6%
.NET Framework 4.8 - Bailout
duration209.31 ± (209.10 - 210.27) ms210.68 ± (209.84 - 211.07) ms+0.7%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1204.51 ± (1206.24 - 1215.15) ms1206.59 ± (1206.12 - 1213.79) ms+0.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms198.65 ± (198.02 - 199.29) ms194.97 ± (194.46 - 195.49) ms-1.9%
process.time_to_main_ms85.85 ± (85.57 - 86.13) ms84.97 ± (84.70 - 85.24) ms-1.0%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.99 ± (15.97 - 16.00) MB16.10 ± (16.08 - 16.11) MB+0.7%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms197.71 ± (197.15 - 198.27) ms194.16 ± (193.64 - 194.68) ms-1.8%
process.time_to_main_ms87.34 ± (87.09 - 87.60) ms85.71 ± (85.45 - 85.97) ms-1.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.03 ± (16.01 - 16.05) MB16.12 ± (16.10 - 16.14) MB+0.5%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.1%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms389.54 ± (388.25 - 390.83) ms386.62 ± (385.30 - 387.93) ms-0.8%
process.time_to_main_ms537.25 ± (535.90 - 538.61) ms528.79 ± (527.50 - 530.08) ms-1.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.51 ± (57.33 - 57.70) MB57.26 ± (57.09 - 57.43) MB-0.4%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms201.06 ± (200.58 - 201.53) ms200.14 ± (199.61 - 200.68) ms-0.5%
process.time_to_main_ms74.25 ± (73.97 - 74.52) ms73.50 ± (73.28 - 73.71) ms-1.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.24 ± (16.22 - 16.26) MB16.31 ± (16.30 - 16.33) MB+0.4%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.3%
.NET 6 - Bailout
process.internal_duration_ms202.03 ± (201.52 - 202.53) ms199.12 ± (198.54 - 199.69) ms-1.4%
process.time_to_main_ms75.66 ± (75.42 - 75.89) ms74.26 ± (74.08 - 74.44) ms-1.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.28 ± (16.26 - 16.30) MB16.34 ± (16.32 - 16.36) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.7%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms593.51 ± (591.03 - 596.00) ms595.15 ± (592.40 - 597.90) ms+0.3%✅⬆️
process.time_to_main_ms529.75 ± (528.69 - 530.81) ms528.02 ± (526.88 - 529.17) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.00 ± (60.90 - 61.10) MB61.10 ± (61.00 - 61.20) MB+0.2%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.2%
.NET 8 - Baseline
process.internal_duration_ms200.29 ± (199.82 - 200.76) ms199.05 ± (198.41 - 199.69) ms-0.6%
process.time_to_main_ms73.42 ± (73.21 - 73.63) ms73.56 ± (73.21 - 73.91) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.62 ± (11.61 - 11.64) MB11.64 ± (11.62 - 11.66) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (18 - 19)-0.4%
.NET 8 - Bailout
process.internal_duration_ms199.87 ± (199.37 - 200.36) ms199.02 ± (198.51 - 199.53) ms-0.4%
process.time_to_main_ms74.80 ± (74.59 - 75.02) ms74.42 ± (74.21 - 74.62) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.67 ± (11.66 - 11.69) MB11.74 ± (11.72 - 11.75) MB+0.6%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.4%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms521.68 ± (517.17 - 526.19) ms522.71 ± (518.31 - 527.10) ms+0.2%✅⬆️
process.time_to_main_ms491.21 ± (490.27 - 492.15) ms493.40 ± (492.31 - 494.48) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.25 ± (50.20 - 50.30) MB50.26 ± (50.22 - 50.30) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (75ms)  : 69, 81
    master - mean (73ms)  : 69, 77

    section Bailout
    This PR (8513) - mean (80ms)  : 75, 84
    master - mean (80ms)  : 76, 84

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (1,083ms)  : 1018, 1148
    master - mean (1,081ms)  : 1038, 1124

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (117ms)  : 111, 124
    master - mean (117ms)  : 111, 123

    section Bailout
    This PR (8513) - mean (117ms)  : 111, 122
    master - mean (118ms)  : 112, 124

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (784ms)  : 754, 814
    master - mean (779ms)  : 749, 810

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (101ms)  : 96, 106
    master - mean (102ms)  : 98, 106

    section Bailout
    This PR (8513) - mean (100ms)  : 98, 103
    master - mean (106ms)  : 99, 112

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (944ms)  : 902, 985
    master - mean (942ms)  : 908, 976

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (104ms)  : 97, 110
    master - mean (101ms)  : 97, 104

    section Bailout
    This PR (8513) - mean (104ms)  : 99, 108
    master - mean (101ms)  : 99, 104

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (822ms)  : 786, 857
    master - mean (823ms)  : 788, 858

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (205ms)  : 196, 213
    master - mean (206ms)  : 196, 216

    section Bailout
    This PR (8513) - mean (210ms)  : 202, 219
    master - mean (210ms)  : 201, 219

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (1,210ms)  : 1155, 1264
    master - mean (1,211ms)  : 1144, 1277

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (289ms)  : 278, 301
    master - mean (294ms)  : 281, 308

    section Bailout
    This PR (8513) - mean (289ms)  : 278, 300
    master - mean (296ms)  : 281, 310

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (949ms)  : 922, 976
    master - mean (962ms)  : 927, 997

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (283ms)  : 272, 294
    master - mean (285ms)  : 277, 293

    section Bailout
    This PR (8513) - mean (282ms)  : 274, 290
    master - mean (287ms)  : 274, 300

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (1,152ms)  : 1110, 1194
    master - mean (1,155ms)  : 1116, 1194

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8513) - mean (284ms)  : 270, 297
    master - mean (285ms)  : 275, 294

    section Bailout
    This PR (8513) - mean (284ms)  : 273, 294
    master - mean (285ms)  : 276, 293

    section CallTarget+Inlining+NGEN
    This PR (8513) - mean (1,050ms)  : 985, 1115
    master - mean (1,048ms)  : 974, 1121

Loading

if echo "$LABELS" | grep -q "docker_image_artifacts"; then
BRANCH_NAME="$(System.PullRequest.SourceBranch)"
BRANCH_NAME="$PR_SOURCE_BRANCH"
BRANCH_NAME="${BRANCH_NAME#refs/heads/}"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FWIW, I'm pretty sure this line is not necessary, because this variable doesn't include the refs/heads/ prefix, but whatever

@andrewlock
andrewlock merged commit ccd344f into master Apr 27, 2026
145 of 146 checks passed
@andrewlock
andrewlock deleted the codex/propose-fix-for-ci-command-injection-vulnerability branch April 27, 2026 10:56
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants