-
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
Try fix macos unit test crash #5384
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 328209 Passed, 1602 Skipped, 53m 18.34s Wall Time |
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 (5384) - mean (76ms) : 67, 84
. : milestone, 76,
master - mean (75ms) : 65, 85
. : milestone, 75,
section CallTarget+Inlining+NGEN
This PR (5384) - mean (1,009ms) : 988, 1030
. : milestone, 1009,
master - mean (1,005ms) : 979, 1030
. : milestone, 1005,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5384) - mean (112ms) : 108, 115
. : milestone, 112,
master - mean (110ms) : 107, 113
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (5384) - mean (728ms) : 705, 751
. : milestone, 728,
master - mean (720ms) : 698, 742
. : milestone, 720,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5384) - mean (95ms) : 92, 99
. : milestone, 95,
master - mean (95ms) : 90, 99
. : milestone, 95,
section CallTarget+Inlining+NGEN
This PR (5384) - mean (681ms) : 660, 702
. : milestone, 681,
master - mean (678ms) : 652, 704
. : milestone, 678,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5384) - mean (189ms) : 186, 192
. : milestone, 189,
master - mean (188ms) : 185, 192
. : milestone, 188,
section CallTarget+Inlining+NGEN
This PR (5384) - mean (1,084ms) : 1060, 1107
. : milestone, 1084,
master - mean (1,077ms) : 1050, 1104
. : milestone, 1077,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5384) - mean (273ms) : 268, 278
. : milestone, 273,
master - mean (272ms) : 266, 279
. : milestone, 272,
section CallTarget+Inlining+NGEN
This PR (5384) - mean (876ms) : 848, 904
. : milestone, 876,
master - mean (882ms) : 849, 916
. : milestone, 882,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5384) - mean (262ms) : 258, 266
. : milestone, 262,
master - mean (261ms) : 257, 265
. : milestone, 261,
section CallTarget+Inlining+NGEN
This PR (5384) - mean (860ms) : 829, 890
. : milestone, 860,
master - mean (856ms) : 834, 878
. : milestone, 856,
|
Benchmarks Report for tracer 🐌Benchmarks for #5384 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472 | 1.139 | 1,053.55 | 924.70 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 477ns | 0.952ns | 3.69ns | 0.00779 | 0 | 0 | 552 B |
master | StartFinishSpan |
netcoreapp3.1 | 696ns | 1.36ns | 5.25ns | 0.00753 | 0 | 0 | 552 B |
master | StartFinishSpan |
net472 | 766ns | 1.12ns | 4.33ns | 0.0877 | 0 | 0 | 554 B |
master | StartFinishScope |
net6.0 | 680ns | 1.02ns | 3.95ns | 0.00946 | 0 | 0 | 672 B |
master | StartFinishScope |
netcoreapp3.1 | 850ns | 1.39ns | 5.39ns | 0.00888 | 0 | 0 | 672 B |
master | StartFinishScope |
net472 | 1.05μs | 2.41ns | 9.35ns | 0.101 | 0 | 0 | 634 B |
#5384 | StartFinishSpan |
net6.0 | 480ns | 0.81ns | 3.14ns | 0.00768 | 0 | 0 | 552 B |
#5384 | StartFinishSpan |
netcoreapp3.1 | 687ns | 0.984ns | 3.68ns | 0.00744 | 0 | 0 | 552 B |
#5384 | StartFinishSpan |
net472 | 757ns | 1.65ns | 6.4ns | 0.088 | 0 | 0 | 554 B |
#5384 | StartFinishScope |
net6.0 | 682ns | 0.878ns | 3.4ns | 0.00948 | 0 | 0 | 672 B |
#5384 | StartFinishScope |
netcoreapp3.1 | 819ns | 1.21ns | 4.37ns | 0.00905 | 0 | 0 | 672 B |
#5384 | StartFinishScope |
net472 | 923ns | 1.97ns | 7.63ns | 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 | 641ns | 1.4ns | 5.41ns | 0.00933 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 982ns | 1.92ns | 7.42ns | 0.00887 | 0 | 0 | 672 B |
master | RunOnMethodBegin |
net472 | 1.11μs | 2.85ns | 11ns | 0.1 | 0 | 0 | 634 B |
#5384 | RunOnMethodBegin |
net6.0 | 658ns | 1.18ns | 4.57ns | 0.0096 | 0 | 0 | 672 B |
#5384 | RunOnMethodBegin |
netcoreapp3.1 | 1.03μs | 1.57ns | 6.07ns | 0.00901 | 0 | 0 | 672 B |
#5384 | RunOnMethodBegin |
net472 | 1.14μs | 2.05ns | 7.93ns | 0.1 | 0 | 0 | 634 B |
Benchmarks Report for appsec 🐌Benchmarks for #5384 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecWafBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Iast.StringAspectsBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 1.905 | 284,000.00 | 540,900.00 |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 203.83 KB | 265.75 KB | 61.92 KB | 30.38% |
Benchmark | Base Allocated | Diff Allocated | Change | Change % |
---|---|---|---|---|
Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 61.6 KB | 57.16 KB | -4.44 KB | -7.21% |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StringConcatBenchmark |
net6.0 | 61.6μs | 666ns | 6.53μs | 0 | 0 | 0 | 43.44 KB |
master | StringConcatBenchmark |
netcoreapp3.1 | 64.3μs | 820ns | 8.16μs | 0 | 0 | 0 | 42.64 KB |
master | StringConcatBenchmark |
net472 | 38.2μs | 95ns | 343ns | 0 | 0 | 0 | 61.6 KB |
master | StringConcatAspectBenchmark |
net6.0 | 285μs | 1.32μs | 4.74μs | 0 | 0 | 0 | 203.83 KB |
master | StringConcatAspectBenchmark |
netcoreapp3.1 | 329μs | 1.53μs | 11.5μs | 0 | 0 | 0 | 204.89 KB |
master | StringConcatAspectBenchmark |
net472 | 262μs | 5.35μs | 51.1μs | 0 | 0 | 0 | 221.18 KB |
#5384 | StringConcatBenchmark |
net6.0 | 61.5μs | 731ns | 7.24μs | 0 | 0 | 0 | 43.44 KB |
#5384 | StringConcatBenchmark |
netcoreapp3.1 | 60.1μs | 813ns | 7.84μs | 0 | 0 | 0 | 42.64 KB |
#5384 | StringConcatBenchmark |
net472 | 39μs | 215ns | 1.29μs | 0 | 0 | 0 | 57.16 KB |
#5384 | StringConcatAspectBenchmark |
net6.0 | 544μs | 2.97μs | 17.1μs | 0 | 0 | 0 | 265.75 KB |
#5384 | StringConcatAspectBenchmark |
netcoreapp3.1 | 317μs | 1.38μs | 4.98μs | 0 | 0 | 0 | 204.11 KB |
#5384 | StringConcatAspectBenchmark |
net472 | 265μs | 5.09μs | 48.6μs | 0 | 0 | 0 | 221.18 KB |
Throughput/Crank Report:zap:Throughput results for AspNetCoreSimpleController comparing the following branches/commits: Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red. Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards! gantt
title Throughput Linux x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5384) (11.308M) : 0, 11308294
master (11.488M) : 0, 11487640
benchmarks/2.9.0 (11.392M) : 0, 11391935
section Automatic
This PR (5384) (7.813M) : 0, 7812873
master (7.846M) : 0, 7845687
benchmarks/2.9.0 (8.262M) : 0, 8262391
section Trace stats
This PR (5384) (8.091M) : 0, 8090623
master (8.313M) : 0, 8313072
section Manual
This PR (5384) (9.784M) : 0, 9783654
master (9.948M) : 0, 9947556
section Manual + Automatic
This PR (5384) (7.298M) : 0, 7298425
master (7.411M) : 0, 7411345
section Version Conflict
This PR (5384) (6.617M) : 0, 6617179
master (6.757M) : 0, 6757124
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5384) (9.519M) : 0, 9519430
master (9.676M) : 0, 9675896
benchmarks/2.9.0 (9.682M) : 0, 9682370
section Automatic
This PR (5384) (6.700M) : 0, 6699513
master (6.648M) : 0, 6648346
section Trace stats
This PR (5384) (6.861M) : 0, 6861430
master (6.856M) : 0, 6855794
section Manual
This PR (5384) (7.987M) : 0, 7987436
master (8.399M) : 0, 8399398
section Manual + Automatic
This PR (5384) (6.010M) : 0, 6010057
master (6.231M) : 0, 6231131
section Version Conflict
This PR (5384) (5.647M) : 0, 5646693
master (5.698M) : 0, 5698324
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5384) (8.834M) : 0, 8834216
master (8.706M) : 0, 8706036
benchmarks/2.9.0 (8.781M) : 0, 8781024
section Automatic
This PR (5384) (6.172M) : 0, 6171616
master (6.118M) : 0, 6118101
benchmarks/2.9.0 (6.470M) : 0, 6470482
section Trace stats
This PR (5384) (6.431M) : 0, 6430891
master (6.327M) : 0, 6327387
section Manual
This PR (5384) (7.683M) : 0, 7683218
master (7.824M) : 0, 7823664
section Manual + Automatic
This PR (5384) (5.955M) : 0, 5955085
master (5.891M) : 0, 5890564
section Version Conflict
This PR (5384) (5.343M) : 0, 5342638
master (5.248M) : 0, 5248258
|
Summary of changes
Avoid tests belonging to multiple
[Collection]
sReason for change
We started seeing the crashes after this PR:
So suspect it was the issue. According to xunit/xunit#2497:
so probably shouldn't do that
Implementation details
Remove the duplicate Collection attribute by removing from the child and moving it to the base. The
[SecuritySequentialTests]
collection already disables serializationTest coverage
🤞
Other details