Removing MetaStruct Check from TestDirectoryListingLeak#6404
Conversation
Snapshots difference summaryThe following differences have been observed in committed snapshots. It is meant to help the reviewer. 1 occurrences of : - },
- MetaStruct: {
- iast:
|
| newFixture.SetOutput(Output); | ||
|
|
||
| var datetimeOffset = DateTimeOffset.UtcNow; // Catch vulnerability at the startup of the app | ||
| await TryStartApp(newFixture); |
There was a problem hiding this comment.
Just wonder, should the default be to set new MockTracerAgent.AgentConfiguration { SpanMetaStructs = false } - I feel like we're just waiting for some more flake somewhere else otherwise 😄
There was a problem hiding this comment.
Good question 💀, so far these two seem to be the tests where we // Catch vulnerability at the startup of the app hence why this flake is happening(we missed that test in the last PR), if we do see another flake I'll have to check if ASM wants to do a change and where. cc @e-n-0
Datadog ReportBranch report: ✅ 0 Failed, 452859 Passed, 2747 Skipped, 20h 12m 31.18s Total 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 (6404) - mean (71ms) : 63, 78
. : milestone, 71,
master - mean (69ms) : 66, 73
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6404) - mean (985ms) : 960, 1010
. : milestone, 985,
master - mean (975ms) : 946, 1004
. : milestone, 975,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6404) - mean (108ms) : 105, 112
. : milestone, 108,
master - mean (108ms) : 105, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6404) - mean (677ms) : 663, 691
. : milestone, 677,
master - mean (680ms) : 667, 693
. : milestone, 680,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6404) - mean (92ms) : 90, 94
. : milestone, 92,
master - mean (91ms) : 90, 93
. : milestone, 91,
section CallTarget+Inlining+NGEN
This PR (6404) - mean (629ms) : 616, 642
. : milestone, 629,
master - mean (632ms) : 615, 649
. : milestone, 632,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6404) - mean (191ms) : 187, 194
. : milestone, 191,
master - mean (190ms) : 186, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6404) - mean (1,097ms) : 1062, 1132
. : milestone, 1097,
master - mean (1,091ms) : 1060, 1122
. : milestone, 1091,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6404) - mean (277ms) : 272, 281
. : milestone, 277,
master - mean (277ms) : 273, 281
. : milestone, 277,
section CallTarget+Inlining+NGEN
This PR (6404) - mean (868ms) : 841, 895
. : milestone, 868,
master - mean (867ms) : 844, 890
. : milestone, 867,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6404) - mean (266ms) : 262, 270
. : milestone, 266,
master - mean (267ms) : 262, 271
. : milestone, 267,
section CallTarget+Inlining+NGEN
This PR (6404) - mean (842ms) : 809, 875
. : milestone, 842,
master - mean (849ms) : 822, 876
. : milestone, 849,
|
Benchmarks Report for appsec 🐌Benchmarks for #6404 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 - Same speed ✔️ More allocations
|
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 58.65 KB | 62.02 KB | 3.38 KB | 5.76% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 253.21 KB | 264.8 KB | 11.59 KB | 4.58% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 61.3μs | 688ns | 6.84μs | 0 | 0 | 0 | 43.44 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 56.1μs | 270ns | 1.15μs | 0 | 0 | 0 | 42.64 KB |
| master | StringConcatBenchmark |
net472 | 37.9μs | 112ns | 386ns | 0 | 0 | 0 | 58.65 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 286μs | 4.78μs | 47.4μs | 0 | 0 | 0 | 253.43 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 307μs | 5.41μs | 53μs | 0 | 0 | 0 | 253.21 KB |
| master | StringConcatAspectBenchmark |
net472 | 292μs | 5.79μs | 56.2μs | 0 | 0 | 0 | 278.53 KB |
| #6404 | StringConcatBenchmark |
net6.0 | 63.4μs | 835ns | 8.35μs | 0 | 0 | 0 | 43.44 KB |
| #6404 | StringConcatBenchmark |
netcoreapp3.1 | 55μs | 300ns | 1.8μs | 0 | 0 | 0 | 42.64 KB |
| #6404 | StringConcatBenchmark |
net472 | 37.3μs | 85.4ns | 296ns | 0 | 0 | 0 | 62.02 KB |
| #6404 | StringConcatAspectBenchmark |
net6.0 | 317μs | 1.56μs | 9.77μs | 0 | 0 | 0 | 254.56 KB |
| #6404 | StringConcatAspectBenchmark |
netcoreapp3.1 | 363μs | 2.01μs | 17.5μs | 0 | 0 | 0 | 264.8 KB |
| #6404 | StringConcatAspectBenchmark |
net472 | 295μs | 6.12μs | 59.3μs | 0 | 0 | 0 | 278.53 KB |
Benchmarks Report for tracer 🐌Benchmarks for #6404 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‑net6.0 | 1.149 | 636.90 | 554.43 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net6.0 | 394ns | 0.665ns | 2.58ns | 0.00808 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 607ns | 1.15ns | 4.44ns | 0.00778 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 629ns | 1.58ns | 6.1ns | 0.0916 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 636ns | 1.09ns | 4.24ns | 0.00957 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 689ns | 1.02ns | 3.97ns | 0.00941 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 901ns | 3.72ns | 14.4ns | 0.104 | 0 | 0 | 658 B |
| #6404 | StartFinishSpan |
net6.0 | 395ns | 0.459ns | 1.78ns | 0.00804 | 0 | 0 | 576 B |
| #6404 | StartFinishSpan |
netcoreapp3.1 | 560ns | 0.858ns | 3.32ns | 0.00773 | 0 | 0 | 576 B |
| #6404 | StartFinishSpan |
net472 | 610ns | 2.31ns | 8.95ns | 0.0917 | 0 | 0 | 578 B |
| #6404 | StartFinishScope |
net6.0 | 554ns | 0.899ns | 3.48ns | 0.00974 | 0 | 0 | 696 B |
| #6404 | StartFinishScope |
netcoreapp3.1 | 759ns | 1.4ns | 5.42ns | 0.00951 | 0 | 0 | 696 B |
| #6404 | StartFinishScope |
net472 | 905ns | 1.71ns | 6.6ns | 0.104 | 0 | 0 | 658 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 | 648ns | 1.7ns | 6.6ns | 0.00959 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 946ns | 3.99ns | 15.4ns | 0.00904 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.12μs | 1.06ns | 3.95ns | 0.104 | 0 | 0 | 658 B |
| #6404 | RunOnMethodBegin |
net6.0 | 633ns | 0.669ns | 2.59ns | 0.00982 | 0 | 0 | 696 B |
| #6404 | RunOnMethodBegin |
netcoreapp3.1 | 1μs | 0.466ns | 1.74ns | 0.0091 | 0 | 0 | 696 B |
| #6404 | RunOnMethodBegin |
net472 | 1.11μs | 0.977ns | 3.79ns | 0.104 | 0 | 0 | 658 B |
## Summary of changes Same as #6395 this test is part of the same family and I just noticed it also sometimes flakes without the expected snapshot.
Summary of changes
Same as #6395 this test is part of the same family and I just noticed it also sometimes flakes without the expected snapshot.