Skip to content
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

[WIP] Add file attribute to JUnit reports #8216

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sarahchen6
Copy link
Contributor

What Does This Do

Continues experimentation from #8143. Instead of using two custom extensions, it uses one extension to output sourcefile information into sourceFiles.xml, then uses this information in collect_results.sh to reformat the XML files. A solution to keep all logic in collect_results.sh without the use of any extension is in the works....

Motivation

The eventual goal of this PR is to add the source file attribute to the elements in the JUnit XML report that is produced after tests are run. This will eventually allow us to assign codeowner data. However, this PR is experimental.

Additional Notes

Contributor Checklist

Jira ticket: https://datadoghq.atlassian.net/browse/LANGPLAT-147

@pr-commenter
Copy link

pr-commenter bot commented Jan 15, 2025

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master sarahchen6/add-files-to-junit-reports-3
git_commit_date 1736974387 1736975032
git_commit_sha 0da31f6 2d66a23
release_version 1.46.0-SNAPSHOT~0da31f6ae9 1.46.0-SNAPSHOT~2d66a235f6
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1736977420 1736977420
ci_job_id 768153506 768153506
ci_pipeline_id 53129493 53129493
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
module Agent Agent
parent None None
variant iast iast

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 58 metrics, 5 unstable metrics.

Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.054 s) : 0, 1054449
Total [baseline] (8.627 s) : 0, 8627400
Agent [candidate] (1.052 s) : 0, 1052322
Total [candidate] (8.612 s) : 0, 8611809
section iast
Agent [baseline] (1.199 s) : 0, 1198803
Total [baseline] (9.269 s) : 0, 9268667
Agent [candidate] (1.179 s) : 0, 1179425
Total [candidate] (9.206 s) : 0, 9205973
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.188 s) : 0, 1187790
Total [baseline] (9.2 s) : 0, 9199665
Agent [candidate] (1.185 s) : 0, 1184925
Total [candidate] (9.237 s) : 0, 9236842
section iast_TELEMETRY_OFF
Agent [baseline] (1.191 s) : 0, 1191176
Total [baseline] (9.2 s) : 0, 9199985
Agent [candidate] (1.192 s) : 0, 1191570
Total [candidate] (9.219 s) : 0, 9218589
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.054 s -
Agent iast 1.199 s 144.354 ms (13.7%)
Agent iast_HARDCODED_SECRET_DISABLED 1.188 s 133.341 ms (12.6%)
Agent iast_TELEMETRY_OFF 1.191 s 136.727 ms (13.0%)
Total tracing 8.627 s -
Total iast 9.269 s 641.267 ms (7.4%)
Total iast_HARDCODED_SECRET_DISABLED 9.2 s 572.265 ms (6.6%)
Total iast_TELEMETRY_OFF 9.2 s 572.585 ms (6.6%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.052 s -
Agent iast 1.179 s 127.102 ms (12.1%)
Agent iast_HARDCODED_SECRET_DISABLED 1.185 s 132.603 ms (12.6%)
Agent iast_TELEMETRY_OFF 1.192 s 139.248 ms (13.2%)
Total tracing 8.612 s -
Total iast 9.206 s 594.164 ms (6.9%)
Total iast_HARDCODED_SECRET_DISABLED 9.237 s 625.033 ms (7.3%)
Total iast_TELEMETRY_OFF 9.219 s 606.78 ms (7.0%)
gantt
    title insecure-bank - break down per module: candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (713.6 ms) : 0, 713600
BytebuddyAgent [candidate] (713.229 ms) : 0, 713229
GlobalTracer [baseline] (255.427 ms) : 0, 255427
GlobalTracer [candidate] (255.086 ms) : 0, 255086
AppSec [baseline] (55.949 ms) : 0, 55949
AppSec [candidate] (56.043 ms) : 0, 56043
Remote Config [baseline] (714.343 µs) : 0, 714
Remote Config [candidate] (722.739 µs) : 0, 723
Telemetry [baseline] (13.764 ms) : 0, 13764
Telemetry [candidate] (12.256 ms) : 0, 12256
section iast
BytebuddyAgent [baseline] (843.442 ms) : 0, 843442
BytebuddyAgent [candidate] (829.594 ms) : 0, 829594
GlobalTracer [baseline] (249.301 ms) : 0, 249301
GlobalTracer [candidate] (246.236 ms) : 0, 246236
AppSec [baseline] (58.789 ms) : 0, 58789
AppSec [candidate] (57.679 ms) : 0, 57679
Remote Config [baseline] (697.935 µs) : 0, 698
Remote Config [candidate] (656.998 µs) : 0, 657
Telemetry [baseline] (9.117 ms) : 0, 9117
Telemetry [candidate] (8.785 ms) : 0, 8785
IAST [baseline] (22.287 ms) : 0, 22287
IAST [candidate] (21.45 ms) : 0, 21450
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (835.811 ms) : 0, 835811
BytebuddyAgent [candidate] (832.427 ms) : 0, 832427
GlobalTracer [baseline] (247.492 ms) : 0, 247492
GlobalTracer [candidate] (248.198 ms) : 0, 248198
AppSec [baseline] (58.231 ms) : 0, 58231
AppSec [candidate] (58.102 ms) : 0, 58102
Remote Config [baseline] (672.088 µs) : 0, 672
Remote Config [candidate] (661.807 µs) : 0, 662
Telemetry [baseline] (8.781 ms) : 0, 8781
Telemetry [candidate] (8.84 ms) : 0, 8840
IAST [baseline] (21.715 ms) : 0, 21715
IAST [candidate] (21.658 ms) : 0, 21658
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (839.41 ms) : 0, 839410
BytebuddyAgent [candidate] (839.912 ms) : 0, 839912
GlobalTracer [baseline] (247.709 ms) : 0, 247709
GlobalTracer [candidate] (247.687 ms) : 0, 247687
AppSec [baseline] (58.075 ms) : 0, 58075
AppSec [candidate] (58.214 ms) : 0, 58214
Remote Config [baseline] (684.673 µs) : 0, 685
Remote Config [candidate] (674.441 µs) : 0, 674
Telemetry [baseline] (8.726 ms) : 0, 8726
Telemetry [candidate] (8.732 ms) : 0, 8732
IAST [baseline] (21.296 ms) : 0, 21296
IAST [candidate] (21.167 ms) : 0, 21167
Loading
Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.055 s) : 0, 1054885
Total [baseline] (10.409 s) : 0, 10408614
Agent [candidate] (1.055 s) : 0, 1055284
Total [candidate] (10.48 s) : 0, 10479513
section appsec
Agent [baseline] (1.192 s) : 0, 1192018
Total [baseline] (10.692 s) : 0, 10692291
Agent [candidate] (1.19 s) : 0, 1190496
Total [candidate] (10.697 s) : 0, 10696777
section iast
Agent [baseline] (1.19 s) : 0, 1189514
Total [baseline] (10.987 s) : 0, 10986920
Agent [candidate] (1.182 s) : 0, 1181759
Total [candidate] (10.971 s) : 0, 10971176
section profiling
Agent [baseline] (1.252 s) : 0, 1251661
Total [baseline] (10.75 s) : 0, 10749687
Agent [candidate] (1.262 s) : 0, 1261636
Total [candidate] (10.81 s) : 0, 10809716
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.055 s -
Agent appsec 1.192 s 137.133 ms (13.0%)
Agent iast 1.19 s 134.629 ms (12.8%)
Agent profiling 1.252 s 196.776 ms (18.7%)
Total tracing 10.409 s -
Total appsec 10.692 s 283.678 ms (2.7%)
Total iast 10.987 s 578.306 ms (5.6%)
Total profiling 10.75 s 341.073 ms (3.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.055 s -
Agent appsec 1.19 s 135.212 ms (12.8%)
Agent iast 1.182 s 126.475 ms (12.0%)
Agent profiling 1.262 s 206.352 ms (19.6%)
Total tracing 10.48 s -
Total appsec 10.697 s 217.264 ms (2.1%)
Total iast 10.971 s 491.664 ms (4.7%)
Total profiling 10.81 s 330.203 ms (3.2%)
gantt
    title petclinic - break down per module: candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (713.29 ms) : 0, 713290
BytebuddyAgent [candidate] (713.193 ms) : 0, 713193
GlobalTracer [baseline] (255.405 ms) : 0, 255405
GlobalTracer [candidate] (255.409 ms) : 0, 255409
AppSec [baseline] (56.074 ms) : 0, 56074
AppSec [candidate] (55.909 ms) : 0, 55909
Remote Config [baseline] (716.168 µs) : 0, 716
Remote Config [candidate] (720.049 µs) : 0, 720
Telemetry [baseline] (14.477 ms) : 0, 14477
Telemetry [candidate] (14.994 ms) : 0, 14994
section appsec
BytebuddyAgent [baseline] (733.227 ms) : 0, 733227
BytebuddyAgent [candidate] (732.356 ms) : 0, 732356
GlobalTracer [baseline] (253.48 ms) : 0, 253480
GlobalTracer [candidate] (253.349 ms) : 0, 253349
AppSec [baseline] (171.325 ms) : 0, 171325
AppSec [candidate] (171.11 ms) : 0, 171110
Remote Config [baseline] (671.797 µs) : 0, 672
Remote Config [candidate] (667.761 µs) : 0, 668
Telemetry [baseline] (8.193 ms) : 0, 8193
Telemetry [candidate] (8.229 ms) : 0, 8229
IAST [baseline] (20.279 ms) : 0, 20279
IAST [candidate] (19.581 ms) : 0, 19581
section iast
BytebuddyAgent [baseline] (836.952 ms) : 0, 836952
BytebuddyAgent [candidate] (831.457 ms) : 0, 831457
GlobalTracer [baseline] (248.201 ms) : 0, 248201
GlobalTracer [candidate] (246.408 ms) : 0, 246408
AppSec [baseline] (58.286 ms) : 0, 58286
AppSec [candidate] (57.979 ms) : 0, 57979
Remote Config [baseline] (669.402 µs) : 0, 669
Remote Config [candidate] (654.535 µs) : 0, 655
Telemetry [baseline] (8.825 ms) : 0, 8825
Telemetry [candidate] (8.745 ms) : 0, 8745
IAST [baseline] (21.573 ms) : 0, 21573
IAST [candidate] (21.521 ms) : 0, 21521
section profiling
ProfilingAgent [baseline] (95.444 ms) : 0, 95444
ProfilingAgent [candidate] (95.401 ms) : 0, 95401
BytebuddyAgent [baseline] (701.342 ms) : 0, 701342
BytebuddyAgent [candidate] (708.397 ms) : 0, 708397
GlobalTracer [baseline] (349.332 ms) : 0, 349332
GlobalTracer [candidate] (352.218 ms) : 0, 352218
AppSec [baseline] (54.313 ms) : 0, 54313
AppSec [candidate] (53.794 ms) : 0, 53794
Remote Config [baseline] (655.828 µs) : 0, 656
Remote Config [candidate] (661.335 µs) : 0, 661
Telemetry [baseline] (8.8 ms) : 0, 8800
Telemetry [candidate] (8.925 ms) : 0, 8925
Profiling [baseline] (95.467 ms) : 0, 95467
Profiling [candidate] (95.424 ms) : 0, 95424
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
end_time 2025-01-15T21:13:42 2025-01-15T21:20:45
git_branch master sarahchen6/add-files-to-junit-reports-3
git_commit_date 1736974387 1736975032
git_commit_sha 0da31f6 2d66a23
release_version 1.46.0-SNAPSHOT~0da31f6ae9 1.46.0-SNAPSHOT~2d66a235f6
start_time 2025-01-15T21:13:29 2025-01-15T21:20:31
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1736976403 1736976403
ci_job_id 768153507 768153507
ci_pipeline_id 53129493 53129493
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
variant iast iast

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 16 unstable metrics.

Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9
    dateFormat X
    axisFormat %s
section baseline
no_agent (375.988 µs) : 356, 396
.   : milestone, 376,
iast (503.73 µs) : 482, 525
.   : milestone, 504,
iast_FULL (745.639 µs) : 724, 768
.   : milestone, 746,
iast_GLOBAL (556.919 µs) : 534, 580
.   : milestone, 557,
iast_HARDCODED_SECRET_DISABLED (511.798 µs) : 490, 534
.   : milestone, 512,
iast_INACTIVE (459.87 µs) : 438, 481
.   : milestone, 460,
iast_TELEMETRY_OFF (488.811 µs) : 467, 510
.   : milestone, 489,
tracing (448.207 µs) : 427, 469
.   : milestone, 448,
section candidate
no_agent (377.927 µs) : 358, 397
.   : milestone, 378,
iast (502.362 µs) : 481, 524
.   : milestone, 502,
iast_FULL (744.474 µs) : 723, 766
.   : milestone, 744,
iast_GLOBAL (548.182 µs) : 527, 570
.   : milestone, 548,
iast_HARDCODED_SECRET_DISABLED (509.854 µs) : 488, 532
.   : milestone, 510,
iast_INACTIVE (461.041 µs) : 440, 482
.   : milestone, 461,
iast_TELEMETRY_OFF (495.993 µs) : 474, 518
.   : milestone, 496,
tracing (445.386 µs) : 425, 466
.   : milestone, 445,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 375.988 µs [355.615 µs, 396.361 µs] -
iast 503.73 µs [481.985 µs, 525.474 µs] 127.742 µs (34.0%)
iast_FULL 745.639 µs [723.523 µs, 767.755 µs] 369.651 µs (98.3%)
iast_GLOBAL 556.919 µs [533.998 µs, 579.84 µs] 180.931 µs (48.1%)
iast_HARDCODED_SECRET_DISABLED 511.798 µs [489.697 µs, 533.898 µs] 135.81 µs (36.1%)
iast_INACTIVE 459.87 µs [438.287 µs, 481.453 µs] 83.882 µs (22.3%)
iast_TELEMETRY_OFF 488.811 µs [467.48 µs, 510.142 µs] 112.823 µs (30.0%)
tracing 448.207 µs [427.323 µs, 469.092 µs] 72.219 µs (19.2%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 377.927 µs [358.48 µs, 397.375 µs] -
iast 502.362 µs [480.752 µs, 523.971 µs] 124.434 µs (32.9%)
iast_FULL 744.474 µs [722.541 µs, 766.407 µs] 366.546 µs (97.0%)
iast_GLOBAL 548.182 µs [526.676 µs, 569.688 µs] 170.254 µs (45.0%)
iast_HARDCODED_SECRET_DISABLED 509.854 µs [488.006 µs, 531.703 µs] 131.927 µs (34.9%)
iast_INACTIVE 461.041 µs [439.673 µs, 482.408 µs] 83.113 µs (22.0%)
iast_TELEMETRY_OFF 495.993 µs [473.903 µs, 518.083 µs] 118.066 µs (31.2%)
tracing 445.386 µs [424.711 µs, 466.061 µs] 67.458 µs (17.8%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.364 ms) : 1345, 1383
.   : milestone, 1364,
appsec (1.74 ms) : 1716, 1764
.   : milestone, 1740,
appsec_no_iast (1.763 ms) : 1740, 1787
.   : milestone, 1763,
iast (1.5 ms) : 1476, 1524
.   : milestone, 1500,
profiling (1.51 ms) : 1486, 1535
.   : milestone, 1510,
tracing (1.48 ms) : 1455, 1506
.   : milestone, 1480,
section candidate
no_agent (1.346 ms) : 1327, 1366
.   : milestone, 1346,
appsec (1.756 ms) : 1730, 1781
.   : milestone, 1756,
appsec_no_iast (1.749 ms) : 1726, 1772
.   : milestone, 1749,
iast (1.504 ms) : 1480, 1528
.   : milestone, 1504,
profiling (1.522 ms) : 1499, 1546
.   : milestone, 1522,
tracing (1.475 ms) : 1450, 1499
.   : milestone, 1475,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.364 ms [1.345 ms, 1.383 ms] -
appsec 1.74 ms [1.716 ms, 1.764 ms] 375.854 µs (27.6%)
appsec_no_iast 1.763 ms [1.74 ms, 1.787 ms] 399.2 µs (29.3%)
iast 1.5 ms [1.476 ms, 1.524 ms] 135.722 µs (10.0%)
profiling 1.51 ms [1.486 ms, 1.535 ms] 146.106 µs (10.7%)
tracing 1.48 ms [1.455 ms, 1.506 ms] 116.105 µs (8.5%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.346 ms [1.327 ms, 1.366 ms] -
appsec 1.756 ms [1.73 ms, 1.781 ms] 409.285 µs (30.4%)
appsec_no_iast 1.749 ms [1.726 ms, 1.772 ms] 402.535 µs (29.9%)
iast 1.504 ms [1.48 ms, 1.528 ms] 157.568 µs (11.7%)
profiling 1.522 ms [1.499 ms, 1.546 ms] 176.023 µs (13.1%)
tracing 1.475 ms [1.45 ms, 1.499 ms] 128.396 µs (9.5%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master sarahchen6/add-files-to-junit-reports-3
git_commit_date 1736974387 1736975032
git_commit_sha 0da31f6 2d66a23
release_version 1.46.0-SNAPSHOT~0da31f6ae9 1.46.0-SNAPSHOT~2d66a235f6
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1736976971 1736976971
ci_job_id 768153508 768153508
ci_pipeline_id 53129493 53129493
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
variant appsec appsec

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics.

Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.474 ms) : 1463, 1486
.   : milestone, 1474,
appsec (2.37 ms) : 2327, 2413
.   : milestone, 2370,
iast (2.12 ms) : 2066, 2175
.   : milestone, 2120,
iast_GLOBAL (2.168 ms) : 2112, 2223
.   : milestone, 2168,
profiling (1.977 ms) : 1934, 2021
.   : milestone, 1977,
tracing (1.959 ms) : 1917, 2000
.   : milestone, 1959,
section candidate
no_agent (1.478 ms) : 1466, 1490
.   : milestone, 1478,
appsec (2.375 ms) : 2332, 2418
.   : milestone, 2375,
iast (2.117 ms) : 2063, 2172
.   : milestone, 2117,
iast_GLOBAL (2.16 ms) : 2106, 2215
.   : milestone, 2160,
profiling (1.976 ms) : 1932, 2019
.   : milestone, 1976,
tracing (1.966 ms) : 1924, 2008
.   : milestone, 1966,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.474 ms [1.463 ms, 1.486 ms] -
appsec 2.37 ms [2.327 ms, 2.413 ms] 896.08 µs (60.8%)
iast 2.12 ms [2.066 ms, 2.175 ms] 645.827 µs (43.8%)
iast_GLOBAL 2.168 ms [2.112 ms, 2.223 ms] 693.222 µs (47.0%)
profiling 1.977 ms [1.934 ms, 2.021 ms] 503.167 µs (34.1%)
tracing 1.959 ms [1.917 ms, 2.0 ms] 484.201 µs (32.8%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.478 ms [1.466 ms, 1.49 ms] -
appsec 2.375 ms [2.332 ms, 2.418 ms] 896.99 µs (60.7%)
iast 2.117 ms [2.063 ms, 2.172 ms] 639.459 µs (43.3%)
iast_GLOBAL 2.16 ms [2.106 ms, 2.215 ms] 682.537 µs (46.2%)
profiling 1.976 ms [1.932 ms, 2.019 ms] 497.834 µs (33.7%)
tracing 1.966 ms [1.924 ms, 2.008 ms] 487.758 µs (33.0%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~2d66a235f6, baseline=1.46.0-SNAPSHOT~0da31f6ae9
    dateFormat X
    axisFormat %s
section baseline
no_agent (14.982 s) : 14982000, 14982000
.   : milestone, 14982000,
appsec (14.915 s) : 14915000, 14915000
.   : milestone, 14915000,
iast (19.077 s) : 19077000, 19077000
.   : milestone, 19077000,
iast_GLOBAL (17.686 s) : 17686000, 17686000
.   : milestone, 17686000,
profiling (15.203 s) : 15203000, 15203000
.   : milestone, 15203000,
tracing (14.983 s) : 14983000, 14983000
.   : milestone, 14983000,
section candidate
no_agent (14.784 s) : 14784000, 14784000
.   : milestone, 14784000,
appsec (15.226 s) : 15226000, 15226000
.   : milestone, 15226000,
iast (18.949 s) : 18949000, 18949000
.   : milestone, 18949000,
iast_GLOBAL (17.956 s) : 17956000, 17956000
.   : milestone, 17956000,
profiling (14.963 s) : 14963000, 14963000
.   : milestone, 14963000,
tracing (14.722 s) : 14722000, 14722000
.   : milestone, 14722000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.982 s [14.982 s, 14.982 s] -
appsec 14.915 s [14.915 s, 14.915 s] -67.0 ms (-0.4%)
iast 19.077 s [19.077 s, 19.077 s] 4.095 s (27.3%)
iast_GLOBAL 17.686 s [17.686 s, 17.686 s] 2.704 s (18.0%)
profiling 15.203 s [15.203 s, 15.203 s] 221.0 ms (1.5%)
tracing 14.983 s [14.983 s, 14.983 s] 1.0 ms (0.0%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.784 s [14.784 s, 14.784 s] -
appsec 15.226 s [15.226 s, 15.226 s] 442.0 ms (3.0%)
iast 18.949 s [18.949 s, 18.949 s] 4.165 s (28.2%)
iast_GLOBAL 17.956 s [17.956 s, 17.956 s] 3.172 s (21.5%)
profiling 14.963 s [14.963 s, 14.963 s] 179.0 ms (1.2%)
tracing 14.722 s [14.722 s, 14.722 s] -62.0 ms (-0.4%)


// print to sourceFiles.xml only if source file has not already been added
if (!sourceFiles.containsKey(testClassName)) {
File sourceFile = new File(root + "/build/test-results/sourceFiles.xml");
Copy link
Member

Choose a reason for hiding this comment

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

It seems we're not outputting here XML, but some custom format? We should use something like .dat or .txt here rather than .xml.

@@ -2,3 +2,20 @@ apply plugin: 'datadog.dependency-locking'

apply from: "$rootDir/gradle/java_deps.gradle"
apply from: "$rootDir/gradle/java_no_deps.gradle"

tasks.named("test") {
Copy link
Member

Choose a reason for hiding this comment

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

There's more test tasks than these two. You may use something like:

tasks.withType(Test).configureEach {
  finalizedBy("myCustomTask")
}

to make sure this runs after all of them.

@@ -0,0 +1,48 @@
package datadog.context;
Copy link
Member

Choose a reason for hiding this comment

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

The extension should probably live at ./utils/test-utils.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants