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

ITR code coverage support #7367

Merged

Conversation

nikita-tkachenko-datadog
Copy link
Contributor

@nikita-tkachenko-datadog nikita-tkachenko-datadog commented Jul 29, 2024

What Does This Do

Updates the logic that calculates code coverage percentage (test.code_coverage.lines_pct tag in session and module events) to take into account tests skipped by ITR.

Motivation

Showing "correct" coverage percentage for sessions where ITR tests skipping is enabled.
Here "correct" means "as if no tests were skipped".

Additional Notes

When requesting the list of skippable tests from the backend, the tracer also receives coverage data for these tests: a bitmap of covered lines for every file covered.
The tracer uses this data to "backfill" the coverage obtained at runtime.

Contributor Checklist

Jira ticket: SDTEST-112

@nikita-tkachenko-datadog nikita-tkachenko-datadog added the comp: ci visibility Continuous Integration Visibility label Jul 29, 2024
@nikita-tkachenko-datadog nikita-tkachenko-datadog force-pushed the nikita-tkachenko/code-coverage-with-itr branch from 28a956d to 812e6a2 Compare July 29, 2024 16:10
@pr-commenter
Copy link

pr-commenter bot commented Jul 29, 2024

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master nikita-tkachenko/code-coverage-with-itr
git_commit_date 1725890539 1725897527
git_commit_sha 1d59e61 c0c0f53
release_version 1.40.0-SNAPSHOT~1d59e612a6 1.40.0-SNAPSHOT~c0c0f5394f
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1725899922 1725899922
ci_job_id 632289988 632289988
ci_pipeline_id 43877319 43877319
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 51 metrics, 12 unstable metrics.

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.058 s) : 0, 1058470
Total [baseline] (10.405 s) : 0, 10404701
Agent [candidate] (1.053 s) : 0, 1053180
Total [candidate] (10.35 s) : 0, 10349854
section appsec
Agent [baseline] (1.188 s) : 0, 1188350
Total [baseline] (10.578 s) : 0, 10577993
Agent [candidate] (1.183 s) : 0, 1182948
Total [candidate] (10.599 s) : 0, 10599115
section iast
Agent [baseline] (1.186 s) : 0, 1185643
Total [baseline] (10.818 s) : 0, 10818357
Agent [candidate] (1.183 s) : 0, 1183263
Total [candidate] (10.816 s) : 0, 10815824
section profiling
Agent [baseline] (1.252 s) : 0, 1252496
Total [baseline] (10.7 s) : 0, 10700059
Agent [candidate] (1.251 s) : 0, 1250650
Total [candidate] (10.667 s) : 0, 10666993
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.058 s -
Agent appsec 1.188 s 129.88 ms (12.3%)
Agent iast 1.186 s 127.173 ms (12.0%)
Agent profiling 1.252 s 194.026 ms (18.3%)
Total tracing 10.405 s -
Total appsec 10.578 s 173.292 ms (1.7%)
Total iast 10.818 s 413.656 ms (4.0%)
Total profiling 10.7 s 295.358 ms (2.8%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.053 s -
Agent appsec 1.183 s 129.768 ms (12.3%)
Agent iast 1.183 s 130.083 ms (12.4%)
Agent profiling 1.251 s 197.47 ms (18.7%)
Total tracing 10.35 s -
Total appsec 10.599 s 249.261 ms (2.4%)
Total iast 10.816 s 465.97 ms (4.5%)
Total profiling 10.667 s 317.139 ms (3.1%)
gantt
    title petclinic - break down per module: candidate=1.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (675.53 ms) : 0, 675530
BytebuddyAgent [candidate] (671.873 ms) : 0, 671873
GlobalTracer [baseline] (309.435 ms) : 0, 309435
GlobalTracer [candidate] (308.097 ms) : 0, 308097
AppSec [baseline] (51.601 ms) : 0, 51601
AppSec [candidate] (51.358 ms) : 0, 51358
Remote Config [baseline] (679.661 µs) : 0, 680
Remote Config [candidate] (688.945 µs) : 0, 689
Telemetry [baseline] (7.551 ms) : 0, 7551
Telemetry [candidate] (7.58 ms) : 0, 7580
section appsec
BytebuddyAgent [baseline] (693.267 ms) : 0, 693267
BytebuddyAgent [candidate] (689.262 ms) : 0, 689262
GlobalTracer [baseline] (302.296 ms) : 0, 302296
GlobalTracer [candidate] (300.584 ms) : 0, 300584
AppSec [baseline] (159.4 ms) : 0, 159400
AppSec [candidate] (159.573 ms) : 0, 159573
Remote Config [baseline] (631.38 µs) : 0, 631
Remote Config [candidate] (627.009 µs) : 0, 627
Telemetry [baseline] (8.192 ms) : 0, 8192
Telemetry [candidate] (9.547 ms) : 0, 9547
IAST [baseline] (21.884 ms) : 0, 21884
IAST [candidate] (19.613 ms) : 0, 19613
section iast
BytebuddyAgent [baseline] (788.776 ms) : 0, 788776
BytebuddyAgent [candidate] (786.85 ms) : 0, 786850
GlobalTracer [baseline] (298.397 ms) : 0, 298397
GlobalTracer [candidate] (298.778 ms) : 0, 298778
AppSec [baseline] (54.825 ms) : 0, 54825
AppSec [candidate] (51.594 ms) : 0, 51594
Remote Config [baseline] (596.707 µs) : 0, 597
Remote Config [candidate] (592.817 µs) : 0, 593
Telemetry [baseline] (7.425 ms) : 0, 7425
Telemetry [candidate] (7.304 ms) : 0, 7304
IAST [baseline] (21.916 ms) : 0, 21916
IAST [candidate] (24.443 ms) : 0, 24443
section profiling
BytebuddyAgent [baseline] (666.036 ms) : 0, 666036
BytebuddyAgent [candidate] (666.071 ms) : 0, 666071
GlobalTracer [baseline] (391.52 ms) : 0, 391520
GlobalTracer [candidate] (389.704 ms) : 0, 389704
AppSec [baseline] (52.541 ms) : 0, 52541
AppSec [candidate] (52.431 ms) : 0, 52431
Remote Config [baseline] (707.877 µs) : 0, 708
Remote Config [candidate] (681.191 µs) : 0, 681
Telemetry [baseline] (7.473 ms) : 0, 7473
Telemetry [candidate] (7.364 ms) : 0, 7364
ProfilingAgent [baseline] (96.367 ms) : 0, 96367
ProfilingAgent [candidate] (96.522 ms) : 0, 96522
Profiling [baseline] (96.391 ms) : 0, 96391
Profiling [candidate] (96.546 ms) : 0, 96546
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.057 s) : 0, 1057428
Total [baseline] (8.505 s) : 0, 8504932
Agent [candidate] (1.052 s) : 0, 1052101
Total [candidate] (8.502 s) : 0, 8501804
section iast
Agent [baseline] (1.175 s) : 0, 1174804
Total [baseline] (8.961 s) : 0, 8961435
Agent [candidate] (1.178 s) : 0, 1177604
Total [candidate] (8.97 s) : 0, 8969965
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.174 s) : 0, 1173569
Total [baseline] (8.945 s) : 0, 8944599
Agent [candidate] (1.174 s) : 0, 1174165
Total [candidate] (8.953 s) : 0, 8952973
section iast_TELEMETRY_OFF
Agent [baseline] (1.173 s) : 0, 1173083
Total [baseline] (8.953 s) : 0, 8952532
Agent [candidate] (1.173 s) : 0, 1172822
Total [candidate] (9.004 s) : 0, 9003701
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.057 s -
Agent iast 1.175 s 117.376 ms (11.1%)
Agent iast_HARDCODED_SECRET_DISABLED 1.174 s 116.141 ms (11.0%)
Agent iast_TELEMETRY_OFF 1.173 s 115.654 ms (10.9%)
Total tracing 8.505 s -
Total iast 8.961 s 456.503 ms (5.4%)
Total iast_HARDCODED_SECRET_DISABLED 8.945 s 439.667 ms (5.2%)
Total iast_TELEMETRY_OFF 8.953 s 447.601 ms (5.3%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.052 s -
Agent iast 1.178 s 125.503 ms (11.9%)
Agent iast_HARDCODED_SECRET_DISABLED 1.174 s 122.064 ms (11.6%)
Agent iast_TELEMETRY_OFF 1.173 s 120.72 ms (11.5%)
Total tracing 8.502 s -
Total iast 8.97 s 468.16 ms (5.5%)
Total iast_HARDCODED_SECRET_DISABLED 8.953 s 451.169 ms (5.3%)
Total iast_TELEMETRY_OFF 9.004 s 501.896 ms (5.9%)
gantt
    title insecure-bank - break down per module: candidate=1.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6

    dateFormat X
    axisFormat %s
section tracing
BytebuddyAgent [baseline] (674.995 ms) : 0, 674995
BytebuddyAgent [candidate] (670.941 ms) : 0, 670941
GlobalTracer [baseline] (309.231 ms) : 0, 309231
GlobalTracer [candidate] (308.235 ms) : 0, 308235
AppSec [baseline] (51.401 ms) : 0, 51401
AppSec [candidate] (51.277 ms) : 0, 51277
Remote Config [baseline] (680.799 µs) : 0, 681
Remote Config [candidate] (690.27 µs) : 0, 690
Telemetry [baseline] (7.446 ms) : 0, 7446
Telemetry [candidate] (7.375 ms) : 0, 7375
section iast
BytebuddyAgent [baseline] (781.848 ms) : 0, 781848
BytebuddyAgent [candidate] (782.924 ms) : 0, 782924
GlobalTracer [baseline] (296.27 ms) : 0, 296270
GlobalTracer [candidate] (296.972 ms) : 0, 296972
AppSec [baseline] (54.207 ms) : 0, 54207
AppSec [candidate] (52.618 ms) : 0, 52618
Remote Config [baseline] (600.702 µs) : 0, 601
Remote Config [candidate] (600.476 µs) : 0, 600
Telemetry [baseline] (7.395 ms) : 0, 7395
Telemetry [candidate] (7.285 ms) : 0, 7285
IAST [baseline] (20.86 ms) : 0, 20860
IAST [candidate] (23.543 ms) : 0, 23543
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (779.235 ms) : 0, 779235
BytebuddyAgent [candidate] (780.088 ms) : 0, 780088
GlobalTracer [baseline] (296.361 ms) : 0, 296361
GlobalTracer [candidate] (296.021 ms) : 0, 296021
AppSec [baseline] (50.613 ms) : 0, 50613
AppSec [candidate] (53.009 ms) : 0, 53009
Remote Config [baseline] (597.541 µs) : 0, 598
Remote Config [candidate] (593.603 µs) : 0, 594
Telemetry [baseline] (7.264 ms) : 0, 7264
Telemetry [candidate] (8.108 ms) : 0, 8108
IAST [baseline] (25.915 ms) : 0, 25915
IAST [candidate] (22.74 ms) : 0, 22740
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (778.981 ms) : 0, 778981
BytebuddyAgent [candidate] (778.98 ms) : 0, 778980
GlobalTracer [baseline] (296.272 ms) : 0, 296272
GlobalTracer [candidate] (296.397 ms) : 0, 296397
AppSec [baseline] (54.194 ms) : 0, 54194
AppSec [candidate] (53.756 ms) : 0, 53756
Remote Config [baseline] (591.14 µs) : 0, 591
Remote Config [candidate] (599.96 µs) : 0, 600
Telemetry [baseline] (7.244 ms) : 0, 7244
Telemetry [candidate] (8.017 ms) : 0, 8017
IAST [baseline] (22.178 ms) : 0, 22178
IAST [candidate] (21.44 ms) : 0, 21440
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
end_time 2024-09-09T16:09:18 2024-09-09T16:16:04
git_branch master nikita-tkachenko/code-coverage-with-itr
git_commit_date 1725890539 1725897527
git_commit_sha 1d59e61 c0c0f53
release_version 1.40.0-SNAPSHOT~1d59e612a6 1.40.0-SNAPSHOT~c0c0f5394f
start_time 2024-09-09T16:09:05 2024-09-09T16:15:51
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1725898908 1725898908
ci_job_id 632289989 632289989
ci_pipeline_id 43877319 43877319
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 9 metrics, 19 unstable metrics.

Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.332 ms) : 1314, 1351
.   : milestone, 1332,
appsec (1.738 ms) : 1715, 1762
.   : milestone, 1738,
appsec_no_iast (1.741 ms) : 1717, 1766
.   : milestone, 1741,
iast (1.472 ms) : 1450, 1494
.   : milestone, 1472,
profiling (1.468 ms) : 1444, 1491
.   : milestone, 1468,
tracing (1.479 ms) : 1455, 1502
.   : milestone, 1479,
section candidate
no_agent (1.348 ms) : 1329, 1366
.   : milestone, 1348,
appsec (1.732 ms) : 1708, 1756
.   : milestone, 1732,
appsec_no_iast (1.73 ms) : 1705, 1755
.   : milestone, 1730,
iast (1.49 ms) : 1466, 1513
.   : milestone, 1490,
profiling (1.468 ms) : 1445, 1491
.   : milestone, 1468,
tracing (1.466 ms) : 1442, 1491
.   : milestone, 1466,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.332 ms [1.314 ms, 1.351 ms] -
appsec 1.738 ms [1.715 ms, 1.762 ms] 405.788 µs (30.5%)
appsec_no_iast 1.741 ms [1.717 ms, 1.766 ms] 408.989 µs (30.7%)
iast 1.472 ms [1.45 ms, 1.494 ms] 139.566 µs (10.5%)
profiling 1.468 ms [1.444 ms, 1.491 ms] 135.217 µs (10.1%)
tracing 1.479 ms [1.455 ms, 1.502 ms] 146.169 µs (11.0%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.348 ms [1.329 ms, 1.366 ms] -
appsec 1.732 ms [1.708 ms, 1.756 ms] 384.034 µs (28.5%)
appsec_no_iast 1.73 ms [1.705 ms, 1.755 ms] 382.831 µs (28.4%)
iast 1.49 ms [1.466 ms, 1.513 ms] 142.326 µs (10.6%)
profiling 1.468 ms [1.445 ms, 1.491 ms] 120.407 µs (8.9%)
tracing 1.466 ms [1.442 ms, 1.491 ms] 118.939 µs (8.8%)
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6
    dateFormat X
    axisFormat %s
section baseline
no_agent (368.205 µs) : 349, 388
.   : milestone, 368,
iast (474.487 µs) : 453, 496
.   : milestone, 474,
iast_FULL (541.34 µs) : 520, 563
.   : milestone, 541,
iast_GLOBAL (495.847 µs) : 474, 517
.   : milestone, 496,
iast_HARDCODED_SECRET_DISABLED (476.845 µs) : 454, 500
.   : milestone, 477,
iast_INACTIVE (436.534 µs) : 416, 457
.   : milestone, 437,
iast_TELEMETRY_OFF (473.319 µs) : 451, 496
.   : milestone, 473,
tracing (432.274 µs) : 412, 452
.   : milestone, 432,
section candidate
no_agent (363.587 µs) : 344, 383
.   : milestone, 364,
iast (477.028 µs) : 455, 499
.   : milestone, 477,
iast_FULL (548.945 µs) : 528, 570
.   : milestone, 549,
iast_GLOBAL (506.534 µs) : 485, 528
.   : milestone, 507,
iast_HARDCODED_SECRET_DISABLED (478.238 µs) : 456, 500
.   : milestone, 478,
iast_INACTIVE (439.448 µs) : 418, 461
.   : milestone, 439,
iast_TELEMETRY_OFF (466.839 µs) : 444, 490
.   : milestone, 467,
tracing (431.968 µs) : 412, 452
.   : milestone, 432,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 368.205 µs [348.554 µs, 387.856 µs] -
iast 474.487 µs [452.856 µs, 496.118 µs] 106.282 µs (28.9%)
iast_FULL 541.34 µs [520.077 µs, 562.604 µs] 173.135 µs (47.0%)
iast_GLOBAL 495.847 µs [474.481 µs, 517.213 µs] 127.642 µs (34.7%)
iast_HARDCODED_SECRET_DISABLED 476.845 µs [454.094 µs, 499.596 µs] 108.64 µs (29.5%)
iast_INACTIVE 436.534 µs [416.117 µs, 456.95 µs] 68.329 µs (18.6%)
iast_TELEMETRY_OFF 473.319 µs [450.599 µs, 496.04 µs] 105.114 µs (28.5%)
tracing 432.274 µs [412.253 µs, 452.296 µs] 64.069 µs (17.4%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 363.587 µs [344.029 µs, 383.146 µs] -
iast 477.028 µs [455.032 µs, 499.024 µs] 113.441 µs (31.2%)
iast_FULL 548.945 µs [527.606 µs, 570.283 µs] 185.358 µs (51.0%)
iast_GLOBAL 506.534 µs [484.757 µs, 528.311 µs] 142.947 µs (39.3%)
iast_HARDCODED_SECRET_DISABLED 478.238 µs [456.312 µs, 500.163 µs] 114.651 µs (31.5%)
iast_INACTIVE 439.448 µs [418.269 µs, 460.626 µs] 75.86 µs (20.9%)
iast_TELEMETRY_OFF 466.839 µs [444.15 µs, 489.528 µs] 103.252 µs (28.4%)
tracing 431.968 µs [411.541 µs, 452.394 µs] 68.381 µs (18.8%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master nikita-tkachenko/code-coverage-with-itr
git_commit_date 1725890539 1725897527
git_commit_sha 1d59e61 c0c0f53
release_version 1.40.0-SNAPSHOT~1d59e612a6 1.40.0-SNAPSHOT~c0c0f5394f
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1725899477 1725899477
ci_job_id 632289990 632289990
ci_pipeline_id 43877319 43877319
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.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.453 ms) : 1442, 1464
.   : milestone, 1453,
appsec (2.217 ms) : 2182, 2252
.   : milestone, 2217,
iast (1.978 ms) : 1935, 2021
.   : milestone, 1978,
iast_GLOBAL (2.036 ms) : 1991, 2081
.   : milestone, 2036,
profiling (1.857 ms) : 1823, 1892
.   : milestone, 1857,
tracing (1.852 ms) : 1819, 1886
.   : milestone, 1852,
section candidate
no_agent (1.455 ms) : 1444, 1466
.   : milestone, 1455,
appsec (2.248 ms) : 2212, 2283
.   : milestone, 2248,
iast (1.98 ms) : 1937, 2023
.   : milestone, 1980,
iast_GLOBAL (2.034 ms) : 1990, 2079
.   : milestone, 2034,
profiling (1.863 ms) : 1829, 1897
.   : milestone, 1863,
tracing (1.836 ms) : 1803, 1869
.   : milestone, 1836,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.453 ms [1.442 ms, 1.464 ms] -
appsec 2.217 ms [2.182 ms, 2.252 ms] 764.598 µs (52.6%)
iast 1.978 ms [1.935 ms, 2.021 ms] 525.531 µs (36.2%)
iast_GLOBAL 2.036 ms [1.991 ms, 2.081 ms] 583.239 µs (40.1%)
profiling 1.857 ms [1.823 ms, 1.892 ms] 404.617 µs (27.8%)
tracing 1.852 ms [1.819 ms, 1.886 ms] 399.51 µs (27.5%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.455 ms [1.444 ms, 1.466 ms] -
appsec 2.248 ms [2.212 ms, 2.283 ms] 792.396 µs (54.5%)
iast 1.98 ms [1.937 ms, 2.023 ms] 524.603 µs (36.1%)
iast_GLOBAL 2.034 ms [1.99 ms, 2.079 ms] 579.072 µs (39.8%)
profiling 1.863 ms [1.829 ms, 1.897 ms] 407.91 µs (28.0%)
tracing 1.836 ms [1.803 ms, 1.869 ms] 380.537 µs (26.2%)
Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~c0c0f5394f, baseline=1.40.0-SNAPSHOT~1d59e612a6
    dateFormat X
    axisFormat %s
section baseline
no_agent (15.602 s) : 15602000, 15602000
.   : milestone, 15602000,
appsec (15.182 s) : 15182000, 15182000
.   : milestone, 15182000,
iast (18.811 s) : 18811000, 18811000
.   : milestone, 18811000,
iast_GLOBAL (17.809 s) : 17809000, 17809000
.   : milestone, 17809000,
profiling (15.924 s) : 15924000, 15924000
.   : milestone, 15924000,
tracing (14.855 s) : 14855000, 14855000
.   : milestone, 14855000,
section candidate
no_agent (15.38 s) : 15380000, 15380000
.   : milestone, 15380000,
appsec (15.16 s) : 15160000, 15160000
.   : milestone, 15160000,
iast (18.957 s) : 18957000, 18957000
.   : milestone, 18957000,
iast_GLOBAL (18.121 s) : 18121000, 18121000
.   : milestone, 18121000,
profiling (15.776 s) : 15776000, 15776000
.   : milestone, 15776000,
tracing (14.829 s) : 14829000, 14829000
.   : milestone, 14829000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.602 s [15.602 s, 15.602 s] -
appsec 15.182 s [15.182 s, 15.182 s] -420.0 ms (-2.7%)
iast 18.811 s [18.811 s, 18.811 s] 3.209 s (20.6%)
iast_GLOBAL 17.809 s [17.809 s, 17.809 s] 2.207 s (14.1%)
profiling 15.924 s [15.924 s, 15.924 s] 322.0 ms (2.1%)
tracing 14.855 s [14.855 s, 14.855 s] -747.0 ms (-4.8%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 15.38 s [15.38 s, 15.38 s] -
appsec 15.16 s [15.16 s, 15.16 s] -220.0 ms (-1.4%)
iast 18.957 s [18.957 s, 18.957 s] 3.577 s (23.3%)
iast_GLOBAL 18.121 s [18.121 s, 18.121 s] 2.741 s (17.8%)
profiling 15.776 s [15.776 s, 15.776 s] 396.0 ms (2.6%)
tracing 14.829 s [14.829 s, 14.829 s] -551.0 ms (-3.6%)

@nikita-tkachenko-datadog nikita-tkachenko-datadog force-pushed the nikita-tkachenko/code-coverage-with-itr branch from 7852e93 to 4a40e16 Compare August 21, 2024 13:58
Copy link
Contributor

Hi! 👋 Looks like you updated a Git Submodule.
If this was not intentional please make sure to:

1 similar comment
Copy link
Contributor

Hi! 👋 Looks like you updated a Git Submodule.
If this was not intentional please make sure to:

@nikita-tkachenko-datadog nikita-tkachenko-datadog force-pushed the nikita-tkachenko/code-coverage-with-itr branch 4 times, most recently from fdfc064 to 4530a48 Compare August 28, 2024 13:12

@Nonnull
public byte[] getCoverageData() {
return coverageData;
Copy link
Contributor

Choose a reason for hiding this comment

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

🟠 Code Quality Violation

Do not return an array that is a class member (...read more)

Avoid returning an array that was defined as a class member. If you want to return an array or the values of the array that is a class member, consider returning a copy of the array.

View in Datadog  Leave us feedback  Documentation


@Override
public boolean equals(Object o) {
if (this == o) return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Code Quality Violation

Suggested change
if (this == o) return true;
if (this == o) {return true};
single if statement should be wrapped in a brace (...read more)

Omitting braces {} is valid in multiple statements, such as, for loops, if statements, and while loops. However, enforcing the use of control braces throughout your codebase will make the code more consistent and can make it easier to add statements in the future.

View in Datadog  Leave us feedback  Documentation

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Code Quality Violation

Suggested change
if (o == null || getClass() != o.getClass()) return false;
if (o == null || getClass() != o.getClass()) {return false};
single if statement should be wrapped in a brace (...read more)

Omitting braces {} is valid in multiple statements, such as, for loops, if statements, and while loops. However, enforcing the use of control braces throughout your codebase will make the code more consistent and can make it easier to add statements in the future.

View in Datadog  Leave us feedback  Documentation

@nikita-tkachenko-datadog nikita-tkachenko-datadog changed the title Refactoring to prepare for ITR code coverage ITR code coverage support Sep 6, 2024
@nikita-tkachenko-datadog nikita-tkachenko-datadog marked this pull request as ready for review September 6, 2024 14:52
@nikita-tkachenko-datadog nikita-tkachenko-datadog merged commit ff190af into master Sep 10, 2024
156 checks passed
@nikita-tkachenko-datadog nikita-tkachenko-datadog deleted the nikita-tkachenko/code-coverage-with-itr branch September 10, 2024 10:20
@github-actions github-actions bot added this to the 1.40.0 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: ci visibility Continuous Integration Visibility run-tests: all Run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants