Skip to content

[Tests] Remove empty metastruct info from snapshots#8150

Merged
daniel-romano-DD merged 4 commits intomasterfrom
dani/iast/snapshots_remove_empty_metastruct
Feb 4, 2026
Merged

[Tests] Remove empty metastruct info from snapshots#8150
daniel-romano-DD merged 4 commits intomasterfrom
dani/iast/snapshots_remove_empty_metastruct

Conversation

@daniel-romano-DD
Copy link
Contributor

@daniel-romano-DD daniel-romano-DD commented Feb 3, 2026

Summary of changes

Remove metastruct data from snapshots in APPSEC integration tests

Reason for change

Some tests where flakying because of the occasional unavailability of metastruct capability

Implementation details

Test coverage

Other details

@daniel-romano-DD daniel-romano-DD added area:tests unit tests, integration tests area:asm-iast labels Feb 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Snapshots difference summary

The following differences have been observed in committed snapshots. It is meant to help the reviewer.
The diff is simplistic, so please check some files anyway while we improve it.

159 occurrences of :

-    },
-    MetaStruct: {
-      iast: 

5 occurrences of :

-      _dd.iast.json.metastruct.test: true
[...]
-    },
-    MetaStruct: {
-      iast: 

1 occurrences of :

-      _dd.iast.json.metastruct.test: true,

7 occurrences of :

-    },
-    MetaStruct: {
-      iast: ,
-      _dd.stack: 

18 occurrences of :

-    },
-    MetaStruct: {
-      appsec: ,
-      _dd.stack: 

351 occurrences of :

-    },
-    MetaStruct: {
-      appsec: 

17 occurrences of :

-    },
-    MetaStruct: {
-      appsec: ,
-      iast: ,
-      _dd.stack: 

1 occurrences of :

-      _dd.appsec.json.metastruct.test: true,

@pr-commenter
Copy link

pr-commenter bot commented Feb 3, 2026

Benchmarks

Benchmark execution time: 2026-02-04 11:06:33

Comparing candidate commit 4ebab35 in PR branch dani/iast/snapshots_remove_empty_metastruct with baseline commit 723078c in branch master.

Found 7 performance improvements and 7 performance regressions! Performance is the same for 164 metrics, 14 unstable metrics.

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

  • 🟩 execution_time [-19.529ms; -19.449ms] or [-16.308%; -16.241%]

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

  • 🟥 execution_time [+14.017ms; +18.205ms] or [+7.035%; +9.137%]

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

  • 🟩 execution_time [-28.398ms; -21.910ms] or [-12.655%; -9.764%]

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

  • 🟩 execution_time [-82.340ms; -79.311ms] or [-41.469%; -39.944%]

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

  • 🟥 execution_time [+16.886ms; +22.220ms] or [+8.524%; +11.217%]

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

  • 🟥 execution_time [+19.381ms; +20.459ms] or [+10.692%; +11.287%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 throughput [-91.676op/s; -69.969op/s] or [-8.273%; -6.314%]

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

  • 🟥 execution_time [+8.395ms; +12.267ms] or [+5.331%; +7.791%]

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

  • 🟩 execution_time [-100.484µs; -93.329µs] or [-8.601%; -7.988%]
  • 🟩 throughput [+74.711op/s; +80.092op/s] or [+8.728%; +9.357%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟩 throughput [+27979.925op/s; +31035.326op/s] or [+7.367%; +8.171%]

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

  • 🟥 throughput [-3411.136op/s; -1397.220op/s] or [-16.706%; -6.843%]

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

  • 🟩 throughput [+23194051.925op/s; +24690220.600op/s] or [+10.724%; +11.416%]

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

  • 🟥 execution_time [+15.715ms; +18.594ms] or [+7.810%; +9.241%]

@dd-trace-dotnet-ci-bot
Copy link

dd-trace-dotnet-ci-bot bot commented Feb 3, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8150) 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
duration72.61 ± (72.60 - 72.92) ms73.03 ± (73.01 - 73.29) ms+0.6%✅⬆️
.NET Framework 4.8 - Bailout
duration77.06 ± (76.98 - 77.28) ms77.31 ± (77.24 - 77.64) ms+0.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1060.49 ± (1059.32 - 1065.11) ms1054.34 ± (1055.13 - 1060.58) ms-0.6%
.NET Core 3.1 - Baseline
process.internal_duration_ms23.03 ± (22.98 - 23.08) ms23.18 ± (23.14 - 23.22) ms+0.6%✅⬆️
process.time_to_main_ms92.32 ± (92.12 - 92.52) ms93.13 ± (92.94 - 93.33) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.55 ± (15.54 - 15.55) MB15.54 ± (15.54 - 15.54) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.85 ± (22.82 - 22.89) ms23.05 ± (23.00 - 23.10) ms+0.9%✅⬆️
process.time_to_main_ms93.93 ± (93.72 - 94.15) ms94.45 ± (94.23 - 94.67) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.58 ± (15.58 - 15.59) MB15.58 ± (15.57 - 15.58) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms270.68 ± (267.57 - 273.80) ms271.58 ± (268.78 - 274.38) ms+0.3%✅⬆️
process.time_to_main_ms522.56 ± (521.88 - 523.24) ms524.84 ± (524.10 - 525.58) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed53.16 ± (53.14 - 53.18) MB53.23 ± (53.21 - 53.26) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.63 ± (21.60 - 21.66) ms21.83 ± (21.79 - 21.88) ms+0.9%✅⬆️
process.time_to_main_ms80.17 ± (80.01 - 80.33) ms80.47 ± (80.29 - 80.65) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.23 ± (15.23 - 15.23) MB15.24 ± (15.24 - 15.25) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.44 ± (21.39 - 21.48) ms21.74 ± (21.68 - 21.79) ms+1.4%✅⬆️
process.time_to_main_ms80.70 ± (80.54 - 80.86) ms81.45 ± (81.24 - 81.66) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.35 ± (15.34 - 15.35) MB15.36 ± (15.36 - 15.36) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms262.11 ± (261.24 - 262.98) ms263.07 ± (261.93 - 264.22) ms+0.4%✅⬆️
process.time_to_main_ms495.26 ± (494.63 - 495.90) ms499.27 ± (498.42 - 500.12) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed54.00 ± (53.98 - 54.03) MB54.02 ± (53.99 - 54.05) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.83 ± (19.80 - 19.86) ms19.98 ± (19.95 - 20.01) ms+0.8%✅⬆️
process.time_to_main_ms78.76 ± (78.61 - 78.92) ms79.62 ± (79.46 - 79.77) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed12.26 ± (12.25 - 12.26) MB12.28 ± (12.27 - 12.28) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.81 ± (19.77 - 19.85) ms19.97 ± (19.93 - 20.01) ms+0.8%✅⬆️
process.time_to_main_ms79.73 ± (79.59 - 79.87) ms81.44 ± (81.25 - 81.63) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed12.32 ± (12.32 - 12.33) MB12.33 ± (12.33 - 12.34) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms188.66 ± (187.91 - 189.41) ms189.96 ± (189.16 - 190.76) ms+0.7%✅⬆️
process.time_to_main_ms476.02 ± (475.23 - 476.80) ms480.71 ± (479.94 - 481.48) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed41.29 ± (41.25 - 41.33) MB41.38 ± (41.34 - 41.42) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.2%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration198.10 ± (198.17 - 199.05) ms197.33 ± (197.34 - 198.24) ms-0.4%
.NET Framework 4.8 - Bailout
duration201.76 ± (201.60 - 202.48) ms201.45 ± (201.26 - 202.16) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1158.31 ± (1159.48 - 1165.90) ms1158.99 ± (1159.05 - 1165.27) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms195.04 ± (194.65 - 195.43) ms196.57 ± (196.19 - 196.95) ms+0.8%✅⬆️
process.time_to_main_ms90.71 ± (90.44 - 90.98) ms91.54 ± (91.27 - 91.81) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed20.65 ± (20.62 - 20.67) MB20.74 ± (20.72 - 20.76) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.2%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms194.47 ± (194.13 - 194.80) ms195.12 ± (194.73 - 195.51) ms+0.3%✅⬆️
process.time_to_main_ms91.85 ± (91.68 - 92.02) ms92.32 ± (92.13 - 92.52) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed20.75 ± (20.72 - 20.77) MB20.73 ± (20.71 - 20.76) MB-0.1%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.9%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms442.80 ± (439.56 - 446.03) ms445.40 ± (442.73 - 448.07) ms+0.6%✅⬆️
process.time_to_main_ms517.08 ± (516.28 - 517.88) ms518.66 ± (517.99 - 519.34) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed63.41 ± (63.29 - 63.53) MB63.70 ± (63.59 - 63.81) MB+0.5%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms199.95 ± (199.56 - 200.33) ms200.59 ± (200.11 - 201.08) ms+0.3%✅⬆️
process.time_to_main_ms78.69 ± (78.44 - 78.94) ms79.27 ± (79.06 - 79.49) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed20.94 ± (20.92 - 20.96) MB20.91 ± (20.89 - 20.93) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 20)+0.6%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms199.82 ± (199.40 - 200.25) ms200.15 ± (199.74 - 200.56) ms+0.2%✅⬆️
process.time_to_main_ms80.14 ± (79.97 - 80.32) ms80.17 ± (79.93 - 80.40) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed21.01 ± (20.98 - 21.03) MB21.02 ± (21.00 - 21.04) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 21)+0.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms466.59 ± (464.84 - 468.33) ms470.46 ± (468.58 - 472.33) ms+0.8%✅⬆️
process.time_to_main_ms492.37 ± (491.76 - 492.98) ms494.89 ± (494.21 - 495.56) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed62.91 ± (62.80 - 63.02) MB62.85 ± (62.74 - 62.95) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.0%
.NET 8 - Baseline
process.internal_duration_ms197.55 ± (197.18 - 197.91) ms198.27 ± (197.92 - 198.63) ms+0.4%✅⬆️
process.time_to_main_ms77.99 ± (77.79 - 78.19) ms79.13 ± (78.93 - 79.33) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.31 ± (16.29 - 16.33) MB16.34 ± (16.32 - 16.36) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms196.29 ± (195.99 - 196.59) ms198.67 ± (198.23 - 199.12) ms+1.2%✅⬆️
process.time_to_main_ms78.67 ± (78.52 - 78.82) ms79.99 ± (79.83 - 80.14) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.37 ± (16.35 - 16.40) MB16.43 ± (16.41 - 16.45) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.6%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms379.95 ± (378.59 - 381.31) ms378.27 ± (376.85 - 379.70) ms-0.4%
process.time_to_main_ms477.54 ± (476.78 - 478.31) ms478.39 ± (477.72 - 479.06) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed52.96 ± (52.90 - 53.02) MB52.97 ± (52.93 - 53.00) MB+0.0%✅⬆️
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 (8150) - mean (73ms)  : 71, 75
    master - mean (73ms)  : 71, 75

    section Bailout
    This PR (8150) - mean (77ms)  : 75, 80
    master - mean (77ms)  : 75, 79

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (1,058ms)  : 1019, 1097
    master - mean (1,062ms)  : 1021, 1104

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 (8150) - mean (124ms)  : 120, 129
    master - mean (123ms)  : 120, 126

    section Bailout
    This PR (8150) - mean (125ms)  : 122, 128
    master - mean (124ms)  : 121, 127

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (835ms)  : 791, 880
    master - mean (831ms)  : 780, 882

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8150) - mean (110ms)  : 106, 113
    master - mean (109ms)  : 105, 112

    section Bailout
    This PR (8150) - mean (110ms)  : 107, 113
    master - mean (109ms)  : 107, 111

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (802ms)  : 782, 822
    master - mean (797ms)  : 775, 818

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8150) - mean (108ms)  : 105, 111
    master - mean (107ms)  : 104, 110

    section Bailout
    This PR (8150) - mean (110ms)  : 107, 113
    master - mean (108ms)  : 106, 110

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (714ms)  : 694, 733
    master - mean (707ms)  : 689, 724

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 (8150) - mean (198ms)  : 193, 203
    master - mean (199ms)  : 194, 204

    section Bailout
    This PR (8150) - mean (202ms)  : 197, 206
    master - mean (202ms)  : 198, 206

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (1,162ms)  : 1117, 1207
    master - mean (1,163ms)  : 1116, 1209

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 (8150) - mean (298ms)  : 292, 305
    master - mean (295ms)  : 289, 302

    section Bailout
    This PR (8150) - mean (298ms)  : 291, 304
    master - mean (296ms)  : 292, 299

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (1,005ms)  : 961, 1049
    master - mean (1,000ms)  : 949, 1052

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8150) - mean (290ms)  : 282, 297
    master - mean (287ms)  : 281, 293

    section Bailout
    This PR (8150) - mean (290ms)  : 283, 296
    master - mean (289ms)  : 284, 295

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (1,012ms)  : 982, 1042
    master - mean (1,003ms)  : 964, 1043

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8150) - mean (289ms)  : 281, 296
    master - mean (287ms)  : 281, 292

    section Bailout
    This PR (8150) - mean (289ms)  : 283, 295
    master - mean (285ms)  : 282, 289

    section CallTarget+Inlining+NGEN
    This PR (8150) - mean (904ms)  : 876, 933
    master - mean (898ms)  : 860, 936

Loading

@daniel-romano-DD daniel-romano-DD marked this pull request as ready for review February 4, 2026 10:53
@daniel-romano-DD daniel-romano-DD requested a review from a team as a code owner February 4, 2026 10:53
@daniel-romano-DD daniel-romano-DD enabled auto-merge (squash) February 4, 2026 12:17
@daniel-romano-DD daniel-romano-DD changed the title [Tests] Remove emptry metastruct info from snapshots [Tests] Remove empty metastruct info from snapshots Feb 4, 2026
@daniel-romano-DD daniel-romano-DD enabled auto-merge (squash) February 4, 2026 12:20
Copy link
Member

@e-n-0 e-n-0 left a comment

Choose a reason for hiding this comment

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

Few comments.

Also if you don't want to use Metastruct anymore in the tests, the Mock Agent configuration should be changed to disabled metastruct. (And I'm not 100% sure but there was on some tests a wait of discoverably feature to wait for the agent config; so this could be maybe disabled when not needed for appsec tests)

#pragma warning restore SA1401 // Fields should be private

public AspNetBase(string sampleName, ITestOutputHelper outputHelper, string shutdownPath, string samplesDir = null, string testName = null, bool clearMetaStruct = false, bool allowAutoRedirect = true)
public AspNetBase(string sampleName, ITestOutputHelper outputHelper, string shutdownPath, string samplesDir = null, string testName = null, string clearMetaStruct = "", bool allowAutoRedirect = true)
Copy link
Member

Choose a reason for hiding this comment

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

is string clearMetaStruct = "" still used/relevant ?

Comment on lines -52 to -62
},
_dd.iast.json.metastruct.test: true
}
},
Metrics: {
process_id: 0,
_dd.top_level: 1.0,
_dd.tracer_kr: 1.0,
_sampling_priority_v1: 2.0
},
MetaStruct: {
iast:
Copy link
Member

Choose a reason for hiding this comment

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

I think this PR might makes these tests completely useless as metastruct won't be enabled anymore and tested?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree

@daniel-romano-DD daniel-romano-DD merged commit 4b0d645 into master Feb 4, 2026
140 checks passed
@daniel-romano-DD daniel-romano-DD deleted the dani/iast/snapshots_remove_empty_metastruct branch February 4, 2026 12:52
@github-actions github-actions bot added this to the vNext-v3 milestone Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:asm-iast area:tests unit tests, integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants