-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove direct reference to Samples.AspNetCore.RazorPages from integration test project #5402
Remove direct reference to Samples.AspNetCore.RazorPages from integration test project #5402
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 334463 Passed, 1519 Skipped, 45m 44.44s Wall Time |
Thank you! Just one small comment. Instead of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THANK YOU
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing the following branches/commits: 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 shown in red. The following thresholds were used for comparing the execution times:
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). gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5402) - mean (74ms) : 65, 83
. : milestone, 74,
master - mean (74ms) : 66, 82
. : milestone, 74,
section CallTarget+Inlining+NGEN
This PR (5402) - mean (995ms) : 968, 1022
. : milestone, 995,
master - mean (1,005ms) : 978, 1032
. : milestone, 1005,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5402) - mean (110ms) : 107, 113
. : milestone, 110,
master - mean (109ms) : 106, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (5402) - mean (717ms) : 693, 741
. : milestone, 717,
master - mean (720ms) : 692, 747
. : milestone, 720,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5402) - mean (95ms) : 91, 99
. : milestone, 95,
master - mean (95ms) : 92, 98
. : milestone, 95,
section CallTarget+Inlining+NGEN
This PR (5402) - mean (671ms) : 647, 694
. : milestone, 671,
master - mean (674ms) : 651, 696
. : milestone, 674,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5402) - mean (187ms) : 182, 192
. : milestone, 187,
master - mean (189ms) : 186, 192
. : milestone, 189,
section CallTarget+Inlining+NGEN
This PR (5402) - mean (1,074ms) : 1049, 1099
. : milestone, 1074,
master - mean (1,085ms) : 1059, 1111
. : milestone, 1085,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5402) - mean (270ms) : 264, 275
. : milestone, 270,
master - mean (273ms) : 268, 278
. : milestone, 273,
section CallTarget+Inlining+NGEN
This PR (5402) - mean (870ms) : 839, 901
. : milestone, 870,
master - mean (875ms) : 850, 900
. : milestone, 875,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5402) - mean (260ms) : 256, 264
. : milestone, 260,
master - mean (262ms) : 258, 266
. : milestone, 262,
section CallTarget+Inlining+NGEN
This PR (5402) - mean (854ms) : 830, 879
. : milestone, 854,
master - mean (859ms) : 831, 888
. : milestone, 859,
|
Benchmarks Report for tracer 🐌Benchmarks for #5402 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.RedisBenchmark.SendReceive‑net6.0 | 1.156 | 1,319.86 | 1,526.04 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.32μs | 0.76ns | 2.84ns | 0.0165 | 0 | 0 | 1.18 KB |
master | SendReceive |
netcoreapp3.1 | 1.85μs | 0.771ns | 2.89ns | 0.0157 | 0 | 0 | 1.18 KB |
master | SendReceive |
net472 | 2.25μs | 1.67ns | 6.45ns | 0.187 | 0 | 0 | 1.18 KB |
#5402 | SendReceive |
net6.0 | 1.53μs | 0.702ns | 2.63ns | 0.0167 | 0 | 0 | 1.18 KB |
#5402 | SendReceive |
netcoreapp3.1 | 1.84μs | 0.606ns | 2.27ns | 0.0157 | 0 | 0 | 1.18 KB |
#5402 | SendReceive |
net472 | 2.26μs | 0.938ns | 3.51ns | 0.187 | 0 | 0 | 1.18 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 2.72μs | 0.583ns | 2.18ns | 0.0218 | 0 | 0 | 1.55 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.91μs | 1.77ns | 6.37ns | 0.0215 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
net472 | 4.38μs | 1.98ns | 7.15ns | 0.315 | 0 | 0 | 1.99 KB |
#5402 | EnrichedLog |
net6.0 | 2.72μs | 1.17ns | 4.39ns | 0.0219 | 0 | 0 | 1.55 KB |
#5402 | EnrichedLog |
netcoreapp3.1 | 4μs | 1.2ns | 4.32ns | 0.0218 | 0 | 0 | 1.6 KB |
#5402 | EnrichedLog |
net472 | 4.3μs | 1.39ns | 5.4ns | 0.315 | 0 | 0 | 1.99 KB |
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 522ns | 0.579ns | 2.24ns | 0.00757 | 0 | 0 | 552 B |
master | StartFinishSpan |
netcoreapp3.1 | 685ns | 1.01ns | 3.92ns | 0.00759 | 0 | 0 | 552 B |
master | StartFinishSpan |
net472 | 746ns | 1.47ns | 5.7ns | 0.0877 | 0 | 0 | 554 B |
master | StartFinishScope |
net6.0 | 546ns | 0.706ns | 2.64ns | 0.00931 | 0 | 0 | 672 B |
master | StartFinishScope |
netcoreapp3.1 | 908ns | 1.24ns | 4.66ns | 0.0092 | 0 | 0 | 672 B |
master | StartFinishScope |
net472 | 900ns | 1.73ns | 6.69ns | 0.101 | 0 | 0 | 634 B |
#5402 | StartFinishSpan |
net6.0 | 578ns | 0.923ns | 3.57ns | 0.00778 | 0 | 0 | 552 B |
#5402 | StartFinishSpan |
netcoreapp3.1 | 679ns | 1.07ns | 4.14ns | 0.00741 | 0 | 0 | 552 B |
#5402 | StartFinishSpan |
net472 | 737ns | 1.7ns | 6.37ns | 0.0877 | 0 | 0 | 554 B |
#5402 | StartFinishScope |
net6.0 | 593ns | 1.35ns | 5.22ns | 0.00928 | 0 | 0 | 672 B |
#5402 | StartFinishScope |
netcoreapp3.1 | 856ns | 1.37ns | 5.32ns | 0.0089 | 0 | 0 | 672 B |
#5402 | StartFinishScope |
net472 | 918ns | 1.68ns | 6.5ns | 0.101 | 0 | 0 | 634 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 644ns | 0.935ns | 3.62ns | 0.00945 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 927ns | 1.07ns | 4.16ns | 0.00897 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
net472 | 1.12μs | 1.99ns | 7.7ns | 0.1 | 0 | 0 | 634 B |
#5402 | RunOnMethodBegin |
net6.0 | 587ns | 0.893ns | 3.46ns | 0.00946 | 0 | 0 | 672 B |
#5402 | RunOnMethodBegin |
netcoreapp3.1 | 1.03μs | 1.94ns | 7.5ns | 0.00925 | 0 | 0 | 672 B |
#5402 | RunOnMethodBegin |
net472 | 1.1μs | 1.65ns | 6.39ns | 0.101 | 0 | 0 | 634 B |
6c8b5c4
to
9aef0fe
Compare
…tion test project This was originally added because I couldn't get the Razor Pages unit tests to work directly. I don't know why, because they _do_ work now
9aef0fe
to
fa42d01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Summary of changes
Removes the direct reference to Samples.AspNetCore.RazorPages from Datadog.Trace.IntegrationTests
Reason for change
It makes the build more complicated, it adds coupling between tests that we may not want, and it's overall not necessary.
Implementation details
Remove the reference, add explicit Razor Pages to the test project directly
Test coverage
Unchanged
Other details
I tried linking in files from the test app instead, but that required updating a bunch of the files (the sample apps aren't covered by the same analyzers, so requires moving a bunch of stuff around). It would also mean the separate tests are coupled too.