Skip to content

unify the target to build integration tests across platforms#8535

Merged
vandonr merged 7 commits into
masterfrom
vandonr/fix2
Apr 30, 2026
Merged

unify the target to build integration tests across platforms#8535
vandonr merged 7 commits into
masterfrom
vandonr/fix2

Conversation

@vandonr

@vandonr vandonr commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Remove platform specific "BuildOsxIntegrationTests" etc. in favor of a single one that handles the things to skip internally.

Reason for change

make instructions simpler, and behavior consistent with the other targets

Implementation details

Test coverage

Other details

patterns: '**/*-$(targetPlatform).msi'

- script: tracer\build.cmd BuildAspNetIntegrationTests -Framework $(framework)
displayName: BuildWindowsIntegrationTests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is a typo fix

.DependsOn(CopyNativeFilesForTests)
.DependsOn(CopyServerlessArtifacts);

Target BuildAndRunLinuxIntegrationTests => _ => _

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this target was not building the samples. It now does (as part of the unified command), though I doubt it sees much use.

Comment thread tracer/build/_build/Build.Steps.cs Outdated
.After(CompileManagedSrc)
.After(CompileManagedTestHelpers)
.After(BuildRunnerTool)
.OnlyWhenStatic(() => IsLinux || IsOsx)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

as the name implies. Necessary to put this in the common target and let this check skip it on windows

.DependsOn(CleanTestLogs)
.Description("Runs the linux dd-dotnet integration tests")
.Requires(() => !IsWin)
.OnlyWhenStatic(() => IsLinux)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think it makes any sense to run this target on OSX ?

@vandonr vandonr added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Apr 28, 2026
@vandonr
vandonr marked this pull request as ready for review April 28, 2026 15:18
@vandonr
vandonr requested review from a team as code owners April 28, 2026 15:18
@pr-commenter

pr-commenter Bot commented Apr 28, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-29 16:41:09

Comparing candidate commit 6304f2b in PR branch vandonr/fix2 with baseline commit bc123ee in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 59 known flaky benchmarks, 28 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 ----------------------------------'

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 [+10161.746op/s; +12445.485op/s] or [+8.541%; +10.461%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+306.589ms; +312.501ms] or [+152.140%; +155.074%]
  • 🟥 throughput [-44.162op/s; -40.592op/s] or [-7.946%; -7.303%]

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

  • 🟥 execution_time [+378.594ms; +381.888ms] or [+299.113%; +301.715%]
  • 🟩 throughput [+104.602op/s; +108.582op/s] or [+13.791%; +14.316%]

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

  • 🟥 execution_time [+393.762ms; +395.433ms] or [+348.465%; +349.943%]

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 [-15.959ms; -11.757ms] or [-7.453%; -5.491%]

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 [-268931.467op/s; -265677.541op/s] or [-27.459%; -27.127%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.802ms; -21.946ms] or [-11.952%; -9.787%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-125226.027op/s; -109164.146op/s] or [-17.993%; -15.685%]

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

  • 🟩 throughput [+7804.200op/s; +10442.102op/s] or [+6.217%; +8.318%]

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

  • 🟩 throughput [+378100.448op/s; +408751.126op/s] or [+12.607%; +13.630%]

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

  • 🟩 execution_time [-18.767ms; -14.407ms] or [-8.651%; -6.641%]
  • 🟩 throughput [+191139.643op/s; +244762.629op/s] or [+7.587%; +9.715%]

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

  • 🟥 execution_time [+300.067ms; +300.769ms] or [+149.933%; +150.284%]

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

  • 🟥 execution_time [+299.874ms; +303.031ms] or [+151.227%; +152.819%]

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

  • 🟥 execution_time [+299.759ms; +302.184ms] or [+150.995%; +152.217%]

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

  • 🟥 execution_time [+298.206ms; +298.823ms] or [+146.467%; +146.770%]

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

  • 🟥 execution_time [+296.100ms; +297.943ms] or [+144.753%; +145.654%]

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

  • 🟥 execution_time [+301.204ms; +302.461ms] or [+150.541%; +151.170%]

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

  • 🟥 execution_time [+24.664µs; +48.310µs] or [+7.874%; +15.423%]
  • 🟥 throughput [-447.032op/s; -248.142op/s] or [-13.935%; -7.735%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.346ms; +301.029ms] or [+149.903%; +150.244%]

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

  • 🟥 execution_time [+415.366ms; +420.115ms] or [+451.312%; +456.472%]
  • 🟩 throughput [+1038.624op/s; +1178.074op/s] or [+8.535%; +9.680%]

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

  • unstable execution_time [+288.844ms; +328.459ms] or [+219.317%; +249.396%]
  • 🟩 throughput [+666.065op/s; +865.843op/s] or [+6.448%; +8.382%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+361.182ms; +403.802ms] or [+166.068%; +185.664%]
  • 🟥 throughput [-541.907op/s; -503.787op/s] or [-49.102%; -45.648%]

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

  • unstable execution_time [+207.516ms; +340.742ms] or [+88.435%; +145.210%]
  • 🟥 throughput [-676.163op/s; -592.603op/s] or [-45.100%; -39.527%]

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

  • 🟥 execution_time [+343.332ms; +353.371ms] or [+205.352%; +211.357%]
  • 🟥 throughput [-400.791op/s; -365.371op/s] or [-27.907%; -25.440%]

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

  • 🟩 execution_time [-150.462µs; -109.557µs] or [-7.622%; -5.550%]
  • 🟩 throughput [+31.908op/s; +42.533op/s] or [+6.299%; +8.396%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+299.684ms; +301.227ms] or [+150.915%; +151.692%]

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

  • 🟥 execution_time [+300.352ms; +308.273ms] or [+150.507%; +154.476%]

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

  • 🟥 execution_time [+301.209ms; +304.389ms] or [+151.315%; +152.912%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.947ms; +304.173ms] or [+152.130%; +152.746%]

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

  • 🟥 execution_time [+298.069ms; +300.115ms] or [+147.382%; +148.393%]

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

  • 🟥 execution_time [+304.449ms; +308.048ms] or [+154.308%; +156.132%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+297.669ms; +300.297ms] or [+149.403%; +150.722%]

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

  • 🟥 execution_time [+300.307ms; +302.686ms] or [+149.675%; +150.861%]
  • 🟩 throughput [+43661.043op/s; +48044.102op/s] or [+8.670%; +9.540%]

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

  • 🟥 execution_time [+300.684ms; +303.167ms] or [+149.587%; +150.823%]

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

  • 🟩 execution_time [-16.973ms; -13.332ms] or [-7.892%; -6.199%]

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

  • 🟩 allocated_mem [-19.605KB; -19.585KB] or [-7.152%; -7.144%]
  • unstable execution_time [-53.851µs; -2.483µs] or [-10.643%; -0.491%]

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

  • unstable execution_time [-52.797µs; +5.134µs] or [-9.149%; +0.890%]

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

  • 🟥 execution_time [+7.529µs; +11.727µs] or [+17.797%; +27.719%]
  • 🟥 throughput [-5169.546op/s; -3387.415op/s] or [-21.762%; -14.260%]

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

  • unstable execution_time [-13.550µs; -6.158µs] or [-21.023%; -9.554%]
  • 🟩 throughput [+1612.574op/s; +3175.149op/s] or [+9.894%; +19.481%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.179ms; +303.079ms] or [+152.738%; +153.193%]

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

  • 🟥 execution_time [+302.151ms; +304.599ms] or [+153.794%; +155.040%]

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

  • 🟥 execution_time [+300.130ms; +302.324ms] or [+150.252%; +151.351%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-20825.447op/s; -19284.547op/s] or [-5.765%; -5.338%]

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

  • 🟩 throughput [+38453.850op/s; +41209.461op/s] or [+7.279%; +7.800%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.908ms; +302.723ms] or [+149.976%; +150.880%]

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

  • 🟥 execution_time [+301.333ms; +307.201ms] or [+151.315%; +154.262%]

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

  • 🟥 execution_time [+302.750ms; +305.292ms] or [+153.535%; +154.825%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.260ms; +300.987ms] or [+149.772%; +150.134%]
  • 🟩 throughput [+65839939.431op/s; +66110822.262op/s] or [+47.949%; +48.146%]

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

  • unstable execution_time [+377.395ms; +413.030ms] or [+469.358%; +513.677%]
  • 🟩 throughput [+992.482op/s; +1160.310op/s] or [+7.672%; +8.970%]

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

  • 🟥 execution_time [+299.715ms; +300.664ms] or [+149.491%; +149.964%]
  • 🟩 throughput [+18350227.754op/s; +19290399.136op/s] or [+8.128%; +8.544%]

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

  • 🟩 throughput [+96355.111op/s; +105497.079op/s] or [+8.996%; +9.850%]

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

  • 🟩 throughput [+61178.275op/s; +80494.999op/s] or [+7.081%; +9.317%]

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

  • 🟩 throughput [+94816.104op/s; +124230.238op/s] or [+7.339%; +9.616%]

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

  • 🟩 throughput [+77361.905op/s; +86309.345op/s] or [+7.683%; +8.572%]

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

  • 🟩 throughput [+46511.718op/s; +52155.503op/s] or [+8.446%; +9.470%]

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

  • 🟩 throughput [+27379.771op/s; +36929.741op/s] or [+6.128%; +8.266%]

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

  • 🟩 throughput [+56249.148op/s; +74473.917op/s] or [+6.284%; +8.321%]

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.OptimizedCharSlice netcoreapp3.1
  • 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 net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense overall thanks, just a couple of questions/suggestions

Comment thread tracer/build/_build/Build.cs Outdated
Comment thread tracer/build/_build/Build.Steps.cs Outdated
.Where(path => !((string)path).Contains(Projects.DebuggerIntegrationTests))
.Where(project => Solution.GetProject(project).GetTargetFrameworks().Contains(Framework))
;
.GlobFiles("test/*.IntegrationTests/*.csproj")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the linux/osx target was getting all csproj. It turns out it makes no difference now.

Comment thread tracer/build/_build/Build.Steps.cs Outdated
;
.GlobFiles("test/*.IntegrationTests/*.csproj")
.Where(path => !path.Contains(Projects.DebuggerIntegrationTests))
.Where(project => Solution.GetProject(project).TryGetTargetFrameworks()?.Contains(Framework) ?? true);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

linux/osx didn't have this guard, not sure it's actually useful

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well it means you don't build the projects for every target framework, just the one you're running right?🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes but do we actually have projects that target only specific frameworks in the integration tests ? Not a lot I'd think. Maybe only in the paths that are excluded in linux and osx ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well it means you don't build the projects for every target framework, just the one you're running right?🤔

This was an incorrect statement anyway 😅

we actually have projects that target only specific frameworks in the integration tests

Yes. And without this guard I think this would break?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it worked well on the osx target without it 🤷

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(it meanse you don't build projects which don't target your selected framework, right ?)
Also, I (the AI) changed it to the "try" version, and I kept it that way because I thought it made sense

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(it meanse you don't build projects which don't target your selected framework, right ?)

Yep

Also, I (the AI) changed it to the "try" version, and I kept it that way because I thought it made sense

Yeah, probably 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also, I (the AI) changed it to the "try" version, and I kept it that way because I thought it made sense

Yeah, probably 😄

wow this place really is a minefield, I think that change broke something in the CI

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was not wise on this one

}

DotnetBuild(projects, framework: Framework);
DotnetBuild(projects, framework: Framework, noRestore: IsWin);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

no idea why windows had norestore and not linux/macOS. I kept it as is, but maybe we want norestore for all ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I kept it as is

Wise

For the record, I don't remember why we can't use noRestore on Linux, but almost certainly "something breaks" if you try 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

either that, or it was added to the generic target (used only for windows) because it was an optim, and the person forgot to reflect it in the linux/osx target ^^

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8535) 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
duration75.75 ± (75.56 - 76.07) ms75.45 ± (75.13 - 75.80) ms-0.4%
.NET Framework 4.8 - Bailout
duration78.63 ± (78.59 - 79.09) ms78.91 ± (78.87 - 79.43) ms+0.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1080.55 ± (1077.44 - 1085.09) ms1079.07 ± (1078.16 - 1084.84) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.96 ± (22.89 - 23.03) ms23.07 ± (23.00 - 23.14) ms+0.5%✅⬆️
process.time_to_main_ms88.18 ± (87.83 - 88.53) ms88.54 ± (88.15 - 88.94) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.91 ± (10.91 - 10.91) MB-0.0%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.42 ± (22.38 - 22.45) ms22.49 ± (22.45 - 22.52) ms+0.3%✅⬆️
process.time_to_main_ms85.79 ± (85.59 - 85.99) ms86.44 ± (86.23 - 86.65) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.88 - 10.89) MB10.95 ± (10.94 - 10.95) MB+0.5%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms214.21 ± (213.41 - 215.01) ms212.91 ± (211.98 - 213.85) ms-0.6%
process.time_to_main_ms529.00 ± (527.64 - 530.37) ms529.06 ± (527.83 - 530.29) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.85 ± (47.82 - 47.88) MB47.94 ± (47.92 - 47.97) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.8%
.NET 6 - Baseline
process.internal_duration_ms21.67 ± (21.60 - 21.73) ms21.44 ± (21.37 - 21.50) ms-1.1%
process.time_to_main_ms76.00 ± (75.67 - 76.32) ms76.05 ± (75.74 - 76.36) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.64 ± (10.63 - 10.64) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.42 ± (21.36 - 21.47) ms20.92 ± (20.89 - 20.96) ms-2.3%
process.time_to_main_ms75.15 ± (74.90 - 75.40) ms74.01 ± (73.85 - 74.17) ms-1.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.72 - 10.73) MB10.76 ± (10.75 - 10.76) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms380.48 ± (378.49 - 382.47) ms381.21 ± (379.11 - 383.32) ms+0.2%✅⬆️
process.time_to_main_ms529.95 ± (528.70 - 531.21) ms535.06 ± (533.56 - 536.56) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.18 ± (49.15 - 49.20) MB49.42 ± (49.39 - 49.45) MB+0.5%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms19.57 ± (19.54 - 19.61) ms19.86 ± (19.81 - 19.92) ms+1.5%✅⬆️
process.time_to_main_ms72.97 ± (72.82 - 73.13) ms74.98 ± (74.69 - 75.26) ms+2.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.68) MB7.66 ± (7.65 - 7.66) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.00 ± (19.95 - 20.06) ms19.98 ± (19.93 - 20.03) ms-0.1%
process.time_to_main_ms76.75 ± (76.45 - 77.05) ms77.34 ± (77.09 - 77.59) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.73 - 7.74) MB7.71 ± (7.70 - 7.71) MB-0.3%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms299.46 ± (297.27 - 301.65) ms299.43 ± (297.12 - 301.73) ms-0.0%
process.time_to_main_ms491.31 ± (490.23 - 492.39) ms493.30 ± (492.14 - 494.46) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.49 ± (36.46 - 36.51) MB36.52 ± (36.50 - 36.55) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.1%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration203.19 ± (203.30 - 204.63) ms202.72 ± (202.84 - 203.75) ms-0.2%
.NET Framework 4.8 - Bailout
duration206.72 ± (206.65 - 207.75) ms206.59 ± (206.61 - 207.60) ms-0.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1204.13 ± (1204.12 - 1211.12) ms1204.33 ± (1203.97 - 1210.16) ms+0.0%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms197.31 ± (196.69 - 197.92) ms196.54 ± (195.99 - 197.09) ms-0.4%
process.time_to_main_ms85.66 ± (85.33 - 85.99) ms85.34 ± (85.05 - 85.63) ms-0.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.06 ± (16.04 - 16.08) MB15.97 ± (15.95 - 15.99) MB-0.5%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms196.71 ± (196.16 - 197.27) ms195.82 ± (195.34 - 196.30) ms-0.5%
process.time_to_main_ms86.88 ± (86.65 - 87.12) ms86.60 ± (86.36 - 86.85) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.07 - 16.10) MB16.05 ± (16.03 - 16.06) MB-0.3%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.1%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms394.37 ± (393.12 - 395.62) ms392.65 ± (391.41 - 393.88) ms-0.4%
process.time_to_main_ms535.10 ± (533.86 - 536.33) ms534.21 ± (532.87 - 535.56) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.53 ± (58.41 - 58.66) MB58.22 ± (58.05 - 58.38) MB-0.5%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
.NET 6 - Baseline
process.internal_duration_ms201.71 ± (201.16 - 202.25) ms203.79 ± (203.08 - 204.49) ms+1.0%✅⬆️
process.time_to_main_ms74.24 ± (73.98 - 74.49) ms75.52 ± (75.20 - 75.83) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.29 ± (16.27 - 16.31) MB16.27 ± (16.25 - 16.29) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (19 - 20)+2.2%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms201.03 ± (200.47 - 201.60) ms205.10 ± (204.30 - 205.90) ms+2.0%✅⬆️
process.time_to_main_ms75.21 ± (74.98 - 75.43) ms76.79 ± (76.45 - 77.12) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.34 ± (16.32 - 16.36) MB16.31 ± (16.29 - 16.33) MB-0.2%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.7%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms593.14 ± (590.35 - 595.93) ms592.68 ± (589.92 - 595.43) ms-0.1%
process.time_to_main_ms534.30 ± (533.12 - 535.47) ms536.62 ± (535.39 - 537.84) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed60.90 ± (60.80 - 61.01) MB60.88 ± (60.79 - 60.98) MB-0.0%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.0%
.NET 8 - Baseline
process.internal_duration_ms199.26 ± (198.80 - 199.72) ms199.99 ± (199.49 - 200.49) ms+0.4%✅⬆️
process.time_to_main_ms73.53 ± (73.29 - 73.77) ms73.53 ± (73.29 - 73.77) ms+0.0%✅⬆️
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.65) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (18 - 19)+0.0%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms196.86 ± (196.37 - 197.35) ms199.90 ± (199.30 - 200.51) ms+1.5%✅⬆️
process.time_to_main_ms73.95 ± (73.76 - 74.14) ms74.87 ± (74.59 - 75.15) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.69 ± (11.67 - 11.71) MB11.71 ± (11.69 - 11.72) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+1.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms517.49 ± (514.73 - 520.26) ms522.73 ± (519.59 - 525.87) ms+1.0%✅⬆️
process.time_to_main_ms489.46 ± (488.40 - 490.53) ms492.82 ± (491.70 - 493.94) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.19 ± (50.15 - 50.22) MB50.33 ± (50.30 - 50.37) MB+0.3%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.4%✅⬆️
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 (8535) - mean (75ms)  : 70, 81
    master - mean (76ms)  : 72, 79

    section Bailout
    This PR (8535) - mean (79ms)  : 75, 83
    master - mean (79ms)  : 75, 82

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (1,081ms)  : 1034, 1129
    master - mean (1,081ms)  : 1024, 1138

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 (8535) - mean (119ms)  : 110, 127
    master - mean (118ms)  : 112, 125

    section Bailout
    This PR (8535) - mean (116ms)  : 113, 119
    master - mean (115ms)  : 112, 118

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (781ms)  : 751, 811
    master - mean (780ms)  : 755, 805

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8535) - mean (104ms)  : 98, 110
    master - mean (104ms)  : 98, 111

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

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (943ms)  : 910, 976
    master - mean (939ms)  : 900, 977

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8535) - mean (103ms)  : 97, 109
    master - mean (101ms)  : 96, 105

    section Bailout
    This PR (8535) - mean (105ms)  : 101, 110
    master - mean (105ms)  : 99, 110

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (826ms)  : 789, 862
    master - mean (824ms)  : 783, 864

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 (8535) - mean (203ms)  : 197, 210
    master - mean (204ms)  : 194, 214

    section Bailout
    This PR (8535) - mean (207ms)  : 200, 214
    master - mean (207ms)  : 199, 215

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (1,207ms)  : 1163, 1251
    master - mean (1,208ms)  : 1156, 1259

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 (8535) - mean (291ms)  : 281, 301
    master - mean (293ms)  : 280, 306

    section Bailout
    This PR (8535) - mean (292ms)  : 281, 303
    master - mean (294ms)  : 283, 305

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (963ms)  : 930, 996
    master - mean (966ms)  : 929, 1002

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8535) - mean (289ms)  : 274, 305
    master - mean (286ms)  : 272, 299

    section Bailout
    This PR (8535) - mean (292ms)  : 273, 311
    master - mean (286ms)  : 273, 299

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (1,160ms)  : 1119, 1200
    master - mean (1,158ms)  : 1114, 1202

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8535) - mean (284ms)  : 274, 295
    master - mean (283ms)  : 273, 292

    section Bailout
    This PR (8535) - mean (286ms)  : 274, 298
    master - mean (281ms)  : 273, 289

    section CallTarget+Inlining+NGEN
    This PR (8535) - mean (1,048ms)  : 1001, 1094
    master - mean (1,040ms)  : 991, 1089

Loading

@bouwkast bouwkast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice thank you!

@vandonr
vandonr merged commit a65b390 into master Apr 30, 2026
139 checks passed
@vandonr
vandonr deleted the vandonr/fix2 branch April 30, 2026 09:42
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants