Skip to content

Fix sealed analyzer, and fix regressions#7973

Merged
andrewlock merged 2 commits intomasterfrom
andrew/fix-sealed
Dec 18, 2025
Merged

Fix sealed analyzer, and fix regressions#7973
andrewlock merged 2 commits intomasterfrom
andrew/fix-sealed

Conversation

@andrewlock
Copy link
Member

Summary of changes

Fix the sealed analyzer so that it applies correctly, and fix regressions

Reason for change

We added a sealed analyzer, and tried to enable it by default for all types, but made a typo.

Implementation details

  • Fix the typo
  • Fix offending types

Test coverage

If it builds, we're ok

Other details

Removed an unused log object while I was at it

@andrewlock andrewlock requested review from a team as code owners December 18, 2025 13:46
@andrewlock andrewlock added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Dec 18, 2025
Copy link
Contributor

@daniel-romano-DD daniel-romano-DD left a comment

Choose a reason for hiding this comment

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

TY!

@andrewlock andrewlock enabled auto-merge (squash) December 18, 2025 14:06
@dd-trace-dotnet-ci-bot
Copy link

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7973) 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
duration73.36 ± (73.42 - 73.73) ms68.11 ± (68.14 - 68.32) ms-7.2%
.NET Framework 4.8 - Bailout
duration77.44 ± (77.33 - 77.67) ms72.22 ± (72.14 - 72.30) ms-6.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1043.73 ± (1051.54 - 1062.40) ms1005.86 ± (1006.51 - 1013.13) ms-3.6%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.52 ± (22.47 - 22.57) ms21.91 ± (21.88 - 21.93) ms-2.7%
process.time_to_main_ms83.69 ± (83.49 - 83.89) ms78.81 ± (78.64 - 78.98) ms-5.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.89 - 10.89) MB10.92 ± (10.92 - 10.93) MB+0.3%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.48 ± (22.44 - 22.52) ms21.78 ± (21.76 - 21.80) ms-3.1%
process.time_to_main_ms85.60 ± (85.40 - 85.80) ms79.62 ± (79.54 - 79.71) ms-7.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) MB10.94 ± (10.93 - 10.94) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms219.85 ± (218.54 - 221.16) ms210.71 ± (209.43 - 211.99) ms-4.2%
process.time_to_main_ms492.73 ± (491.98 - 493.49) ms473.77 ± (473.19 - 474.36) ms-3.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.99 ± (47.96 - 48.01) MB48.10 ± (48.08 - 48.13) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.39 ± (21.36 - 21.43) ms20.56 ± (20.53 - 20.59) ms-3.9%
process.time_to_main_ms73.31 ± (73.14 - 73.49) ms67.78 ± (67.66 - 67.91) ms-7.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.60 - 10.61) MB10.63 ± (10.62 - 10.63) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.31 ± (21.28 - 21.35) ms20.53 ± (20.51 - 20.55) ms-3.7%
process.time_to_main_ms74.28 ± (74.11 - 74.45) ms68.93 ± (68.87 - 68.99) ms-7.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.66 ± (10.65 - 10.66) MB10.66 ± (10.66 - 10.67) MB+0.0%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms206.90 ± (205.89 - 207.91) ms201.45 ± (200.40 - 202.50) ms-2.6%
process.time_to_main_ms457.80 ± (457.07 - 458.53) ms441.22 ± (440.59 - 441.84) ms-3.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.45 ± (48.42 - 48.48) MB48.41 ± (48.34 - 48.48) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.60 ± (19.57 - 19.63) ms18.86 ± (18.81 - 18.90) ms-3.8%
process.time_to_main_ms72.40 ± (72.27 - 72.54) ms66.81 ± (66.71 - 66.90) ms-7.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.67 - 7.68) MB7.66 ± (7.66 - 7.67) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.57 ± (19.52 - 19.62) ms18.85 ± (18.82 - 18.87) ms-3.7%
process.time_to_main_ms73.84 ± (73.67 - 74.00) ms68.15 ± (68.08 - 68.21) ms-7.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.72 - 7.74) MB7.71 ± (7.70 - 7.72) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms187.34 ± (186.55 - 188.13) ms179.38 ± (178.59 - 180.18) ms-4.2%
process.time_to_main_ms441.84 ± (441.19 - 442.49) ms424.51 ± (423.88 - 425.15) ms-3.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.35 ± (36.32 - 36.39) MB36.30 ± (36.28 - 36.33) 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
duration193.21 ± (193.02 - 193.76) ms194.28 ± (194.13 - 194.84) ms+0.6%✅⬆️
.NET Framework 4.8 - Bailout
duration197.35 ± (197.23 - 197.83) ms198.27 ± (197.97 - 198.64) ms+0.5%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1110.24 ± (1112.17 - 1120.23) ms1129.21 ± (1137.49 - 1152.95) ms+1.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms187.72 ± (187.36 - 188.08) ms188.97 ± (188.61 - 189.33) ms+0.7%✅⬆️
process.time_to_main_ms80.57 ± (80.34 - 80.80) ms81.49 ± (81.24 - 81.73) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.08 - 16.14) MB16.11 ± (16.09 - 16.13) MB+0.0%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)-0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms187.02 ± (186.72 - 187.31) ms188.96 ± (188.47 - 189.46) ms+1.0%✅⬆️
process.time_to_main_ms81.74 ± (81.59 - 81.89) ms83.03 ± (82.85 - 83.21) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.13 ± (16.11 - 16.16) MB16.14 ± (16.11 - 16.17) MB+0.1%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.4%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms395.67 ± (393.09 - 398.24) ms400.69 ± (397.64 - 403.74) ms+1.3%✅⬆️
process.time_to_main_ms476.54 ± (475.78 - 477.31) ms477.87 ± (477.13 - 478.62) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.35 ± (58.19 - 58.50) MB58.53 ± (58.38 - 58.67) MB+0.3%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.1%
.NET 6 - Baseline
process.internal_duration_ms192.47 ± (192.09 - 192.84) ms192.93 ± (192.52 - 193.35) ms+0.2%✅⬆️
process.time_to_main_ms70.07 ± (69.86 - 70.28) ms70.30 ± (70.10 - 70.50) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.93 ± (15.77 - 16.09) MB16.36 ± (16.34 - 16.38) MB+2.7%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)19 ± (19 - 19)+4.6%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms190.99 ± (190.65 - 191.33) ms191.64 ± (191.27 - 192.02) ms+0.3%✅⬆️
process.time_to_main_ms70.61 ± (70.52 - 70.70) ms71.25 ± (71.12 - 71.38) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.98 ± (15.82 - 16.13) MB16.18 ± (16.04 - 16.31) MB+1.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.0%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms408.83 ± (406.32 - 411.34) ms408.49 ± (405.81 - 411.17) ms-0.1%
process.time_to_main_ms444.75 ± (444.16 - 445.34) ms447.97 ± (447.26 - 448.68) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.79 ± (58.64 - 58.94) MB58.63 ± (58.48 - 58.78) MB-0.3%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (29 - 30)-0.1%
.NET 8 - Baseline
process.internal_duration_ms190.47 ± (190.08 - 190.86) ms190.71 ± (190.34 - 191.07) ms+0.1%✅⬆️
process.time_to_main_ms69.30 ± (69.12 - 69.48) ms70.08 ± (69.82 - 70.35) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.73 ± (11.70 - 11.75) MB11.74 ± (11.70 - 11.77) MB+0.1%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.7%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms188.79 ± (188.50 - 189.09) ms189.78 ± (189.52 - 190.04) ms+0.5%✅⬆️
process.time_to_main_ms70.23 ± (70.11 - 70.35) ms70.94 ± (70.83 - 71.06) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.75 - 11.81) MB11.79 ± (11.76 - 11.81) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.2%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms360.05 ± (358.30 - 361.80) ms365.13 ± (363.51 - 366.75) ms+1.4%✅⬆️
process.time_to_main_ms426.78 ± (426.05 - 427.51) ms430.72 ± (429.87 - 431.56) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.90 ± (47.87 - 47.93) MB47.98 ± (47.95 - 48.01) MB+0.2%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.1%
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 (7973) - mean (68ms)  : 67, 70
    master - mean (74ms)  : 71, 76

    section Bailout
    This PR (7973) - mean (72ms)  : 71, 73
    master - mean (77ms)  : 76, 79

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (1,010ms)  : 962, 1058
    master - mean (1,057ms)  : 976, 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 (7973) - mean (106ms)  : 103, 108
    master - mean (113ms)  : 110, 116

    section Bailout
    This PR (7973) - mean (106ms)  : 105, 108
    master - mean (115ms)  : 112, 118

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (710ms)  : 683, 737
    master - mean (745ms)  : 710, 780

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7973) - mean (93ms)  : 91, 95
    master - mean (101ms)  : 98, 104

    section Bailout
    This PR (7973) - mean (94ms)  : 93, 95
    master - mean (102ms)  : 100, 104

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (670ms)  : 651, 688
    master - mean (691ms)  : 667, 715

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7973) - mean (92ms)  : 90, 94
    master - mean (100ms)  : 97, 103

    section Bailout
    This PR (7973) - mean (93ms)  : 92, 94
    master - mean (101ms)  : 99, 103

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (630ms)  : 615, 646
    master - mean (660ms)  : 636, 683

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 (7973) - mean (194ms)  : 191, 198
    master - mean (193ms)  : 190, 197

    section Bailout
    This PR (7973) - mean (198ms)  : 195, 202
    master - mean (198ms)  : 195, 200

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (1,145ms)  : 1027, 1264
    master - mean (1,116ms)  : 1058, 1174

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 (7973) - mean (279ms)  : 272, 285
    master - mean (277ms)  : 272, 281

    section Bailout
    This PR (7973) - mean (281ms)  : 273, 288
    master - mean (277ms)  : 273, 282

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (917ms)  : 866, 967
    master - mean (905ms)  : 866, 945

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7973) - mean (271ms)  : 265, 278
    master - mean (271ms)  : 265, 276

    section Bailout
    This PR (7973) - mean (271ms)  : 266, 275
    master - mean (270ms)  : 265, 275

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (894ms)  : 839, 948
    master - mean (888ms)  : 847, 928

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7973) - mean (270ms)  : 264, 276
    master - mean (270ms)  : 260, 280

    section Bailout
    This PR (7973) - mean (270ms)  : 266, 274
    master - mean (268ms)  : 264, 272

    section CallTarget+Inlining+NGEN
    This PR (7973) - mean (828ms)  : 806, 849
    master - mean (819ms)  : 797, 842

Loading

@datadog-official
Copy link

datadog-official bot commented Dec 18, 2025

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

❄️ 1 New flaky test detected

NamedPipesSubmitsMetrics from Datadog.Trace.ClrProfiler.IntegrationTests.RuntimeMetricsTests (Datadog) (Fix with Cursor)

   at Datadog.Trace.TestHelpers.MockTracerAgent.NamedPipeAgent.HandleNamedPipeTraces(NamedPipeServerStream namedPipeServerStream, CancellationToken cancellationToken) in /_/tracer/test/Datadog.Trace.TestHelpers/MockTracerAgent.cs:line 1398]

ℹ️ Info

🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ec517ed | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@andrewlock andrewlock merged commit 147931a into master Dec 18, 2025
152 checks passed
@andrewlock andrewlock deleted the andrew/fix-sealed branch December 18, 2025 15:57
@github-actions github-actions bot added this to the vNext-v3 milestone Dec 18, 2025
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