Do not report code coverage for skipped tests#7244
Merged
nikita-tkachenko-datadog merged 2 commits intoJun 26, 2024
Merged
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 49 metrics, 14 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.081 s) : 0, 1081211
Total [baseline] (10.451 s) : 0, 10451109
Agent [candidate] (1.072 s) : 0, 1071863
Total [candidate] (10.322 s) : 0, 10321606
section appsec
Agent [baseline] (1.181 s) : 0, 1180840
Total [baseline] (10.516 s) : 0, 10516399
Agent [candidate] (1.181 s) : 0, 1181371
Total [candidate] (10.492 s) : 0, 10492378
section iast
Agent [baseline] (1.173 s) : 0, 1172693
Total [baseline] (10.813 s) : 0, 10813056
Agent [candidate] (1.175 s) : 0, 1174510
Total [candidate] (10.674 s) : 0, 10673731
section profiling
Agent [baseline] (1.266 s) : 0, 1266033
Total [baseline] (10.635 s) : 0, 10634842
Agent [candidate] (1.282 s) : 0, 1282404
Total [candidate] (10.626 s) : 0, 10626458
gantt
title petclinic - break down per module: candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (675.978 ms) : 0, 675978
BytebuddyAgent [candidate] (670.989 ms) : 0, 670989
GlobalTracer [baseline] (310.72 ms) : 0, 310720
GlobalTracer [candidate] (307.446 ms) : 0, 307446
AppSec [baseline] (51.133 ms) : 0, 51133
AppSec [candidate] (50.301 ms) : 0, 50301
Remote Config [baseline] (738.139 µs) : 0, 738
Remote Config [candidate] (782.826 µs) : 0, 783
Telemetry [baseline] (7.757 ms) : 0, 7757
Telemetry [candidate] (7.644 ms) : 0, 7644
section appsec
BytebuddyAgent [baseline] (675.877 ms) : 0, 675877
BytebuddyAgent [candidate] (675.098 ms) : 0, 675098
GlobalTracer [baseline] (298.799 ms) : 0, 298799
GlobalTracer [candidate] (298.588 ms) : 0, 298588
AppSec [baseline] (153.748 ms) : 0, 153748
AppSec [candidate] (153.659 ms) : 0, 153659
Remote Config [baseline] (643.398 µs) : 0, 643
Remote Config [candidate] (641.002 µs) : 0, 641
Telemetry [baseline] (7.458 ms) : 0, 7458
Telemetry [candidate] (8.444 ms) : 0, 8444
IAST [baseline] (19.765 ms) : 0, 19765
IAST [candidate] (21.072 ms) : 0, 21072
section iast
BytebuddyAgent [baseline] (781.368 ms) : 0, 781368
BytebuddyAgent [candidate] (782.455 ms) : 0, 782455
GlobalTracer [baseline] (294.884 ms) : 0, 294884
GlobalTracer [candidate] (295.53 ms) : 0, 295530
AppSec [baseline] (47.266 ms) : 0, 47266
AppSec [candidate] (47.263 ms) : 0, 47263
Remote Config [baseline] (625.947 µs) : 0, 626
Remote Config [candidate] (569.377 µs) : 0, 569
Telemetry [baseline] (7.0 ms) : 0, 7000
Telemetry [candidate] (6.915 ms) : 0, 6915
IAST [baseline] (28.237 ms) : 0, 28237
IAST [candidate] (28.428 ms) : 0, 28428
section profiling
ProfilingAgent [baseline] (96.769 ms) : 0, 96769
ProfilingAgent [candidate] (98.487 ms) : 0, 98487
BytebuddyAgent [baseline] (664.217 ms) : 0, 664217
BytebuddyAgent [candidate] (672.745 ms) : 0, 672745
GlobalTracer [baseline] (388.256 ms) : 0, 388256
GlobalTracer [candidate] (392.509 ms) : 0, 392509
AppSec [baseline] (51.567 ms) : 0, 51567
AppSec [candidate] (52.61 ms) : 0, 52610
Remote Config [baseline] (664.853 µs) : 0, 665
Remote Config [candidate] (689.051 µs) : 0, 689
Telemetry [baseline] (7.441 ms) : 0, 7441
Telemetry [candidate] (7.554 ms) : 0, 7554
Profiling [baseline] (96.794 ms) : 0, 96794
Profiling [candidate] (98.512 ms) : 0, 98512
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.071 s) : 0, 1070812
Total [baseline] (8.576 s) : 0, 8576070
Agent [candidate] (1.063 s) : 0, 1063090
Total [candidate] (8.55 s) : 0, 8550273
section iast
Agent [baseline] (1.169 s) : 0, 1169230
Total [baseline] (9.004 s) : 0, 9003529
Agent [candidate] (1.172 s) : 0, 1171546
Total [candidate] (9.018 s) : 0, 9018295
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.171 s) : 0, 1170675
Total [baseline] (8.988 s) : 0, 8987504
Agent [candidate] (1.172 s) : 0, 1172173
Total [candidate] (8.974 s) : 0, 8974213
section iast_TELEMETRY_OFF
Agent [baseline] (1.166 s) : 0, 1166148
Total [baseline] (8.988 s) : 0, 8988013
Agent [candidate] (1.167 s) : 0, 1166645
Total [candidate] (8.969 s) : 0, 8968850
gantt
title insecure-bank - break down per module: candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (670.329 ms) : 0, 670329
BytebuddyAgent [candidate] (665.227 ms) : 0, 665227
GlobalTracer [baseline] (306.812 ms) : 0, 306812
GlobalTracer [candidate] (305.304 ms) : 0, 305304
AppSec [baseline] (50.64 ms) : 0, 50640
AppSec [candidate] (49.9 ms) : 0, 49900
Remote Config [baseline] (751.537 µs) : 0, 752
Remote Config [candidate] (802.54 µs) : 0, 803
Telemetry [baseline] (7.698 ms) : 0, 7698
Telemetry [candidate] (7.473 ms) : 0, 7473
section iast
BytebuddyAgent [baseline] (779.417 ms) : 0, 779417
BytebuddyAgent [candidate] (780.944 ms) : 0, 780944
GlobalTracer [baseline] (294.12 ms) : 0, 294120
GlobalTracer [candidate] (294.258 ms) : 0, 294258
AppSec [baseline] (47.219 ms) : 0, 47219
AppSec [candidate] (47.144 ms) : 0, 47144
IAST [baseline] (26.82 ms) : 0, 26820
IAST [candidate] (27.469 ms) : 0, 27469
Remote Config [baseline] (593.268 µs) : 0, 593
Remote Config [candidate] (617.316 µs) : 0, 617
Telemetry [baseline] (7.78 ms) : 0, 7780
Telemetry [candidate] (7.812 ms) : 0, 7812
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (779.123 ms) : 0, 779123
BytebuddyAgent [candidate] (779.527 ms) : 0, 779527
GlobalTracer [baseline] (294.841 ms) : 0, 294841
GlobalTracer [candidate] (294.773 ms) : 0, 294773
AppSec [baseline] (47.195 ms) : 0, 47195
AppSec [candidate] (47.364 ms) : 0, 47364
IAST [baseline] (28.754 ms) : 0, 28754
IAST [candidate] (28.849 ms) : 0, 28849
Remote Config [baseline] (567.813 µs) : 0, 568
Remote Config [candidate] (618.444 µs) : 0, 618
Telemetry [baseline] (6.871 ms) : 0, 6871
Telemetry [candidate] (7.659 ms) : 0, 7659
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (776.852 ms) : 0, 776852
BytebuddyAgent [candidate] (777.524 ms) : 0, 777524
GlobalTracer [baseline] (294.442 ms) : 0, 294442
GlobalTracer [candidate] (294.74 ms) : 0, 294740
AppSec [baseline] (47.102 ms) : 0, 47102
AppSec [candidate] (47.01 ms) : 0, 47010
IAST [baseline] (26.235 ms) : 0, 26235
IAST [candidate] (25.876 ms) : 0, 25876
Remote Config [baseline] (591.277 µs) : 0, 591
Remote Config [candidate] (588.736 µs) : 0, 589
Telemetry [baseline] (7.593 ms) : 0, 7593
Telemetry [candidate] (7.536 ms) : 0, 7536
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 17 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section baseline
no_agent (1.338 ms) : 1319, 1357
. : milestone, 1338,
appsec (1.734 ms) : 1710, 1758
. : milestone, 1734,
appsec_no_iast (1.707 ms) : 1682, 1733
. : milestone, 1707,
iast (1.476 ms) : 1453, 1499
. : milestone, 1476,
profiling (1.492 ms) : 1467, 1516
. : milestone, 1492,
tracing (1.456 ms) : 1431, 1481
. : milestone, 1456,
section candidate
no_agent (1.332 ms) : 1313, 1351
. : milestone, 1332,
appsec (1.719 ms) : 1696, 1742
. : milestone, 1719,
appsec_no_iast (1.715 ms) : 1689, 1740
. : milestone, 1715,
iast (1.5 ms) : 1477, 1522
. : milestone, 1500,
profiling (1.474 ms) : 1449, 1498
. : milestone, 1474,
tracing (1.447 ms) : 1422, 1471
. : milestone, 1447,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section baseline
no_agent (371.334 µs) : 352, 391
. : milestone, 371,
iast (493.27 µs) : 471, 515
. : milestone, 493,
iast_FULL (550.271 µs) : 529, 571
. : milestone, 550,
iast_GLOBAL (512.895 µs) : 490, 535
. : milestone, 513,
iast_HARDCODED_SECRET_DISABLED (481.038 µs) : 460, 502
. : milestone, 481,
iast_INACTIVE (455.156 µs) : 434, 476
. : milestone, 455,
iast_TELEMETRY_OFF (477.522 µs) : 456, 499
. : milestone, 478,
tracing (439.562 µs) : 419, 460
. : milestone, 440,
section candidate
no_agent (367.297 µs) : 348, 387
. : milestone, 367,
iast (480.524 µs) : 459, 502
. : milestone, 481,
iast_FULL (548.818 µs) : 528, 570
. : milestone, 549,
iast_GLOBAL (509.09 µs) : 487, 531
. : milestone, 509,
iast_HARDCODED_SECRET_DISABLED (493.436 µs) : 472, 515
. : milestone, 493,
iast_INACTIVE (458.649 µs) : 437, 481
. : milestone, 459,
iast_TELEMETRY_OFF (475.187 µs) : 454, 497
. : milestone, 475,
tracing (442.852 µs) : 422, 463
. : milestone, 443,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section baseline
no_agent (15.358 s) : 15358000, 15358000
. : milestone, 15358000,
appsec (15.392 s) : 15392000, 15392000
. : milestone, 15392000,
iast (18.581 s) : 18581000, 18581000
. : milestone, 18581000,
iast_GLOBAL (17.768 s) : 17768000, 17768000
. : milestone, 17768000,
profiling (15.777 s) : 15777000, 15777000
. : milestone, 15777000,
tracing (14.93 s) : 14930000, 14930000
. : milestone, 14930000,
section candidate
no_agent (15.522 s) : 15522000, 15522000
. : milestone, 15522000,
appsec (14.893 s) : 14893000, 14893000
. : milestone, 14893000,
iast (19.069 s) : 19069000, 19069000
. : milestone, 19069000,
iast_GLOBAL (17.688 s) : 17688000, 17688000
. : milestone, 17688000,
profiling (15.306 s) : 15306000, 15306000
. : milestone, 15306000,
tracing (14.99 s) : 14990000, 14990000
. : milestone, 14990000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.36.0-SNAPSHOT~d1925c8358, baseline=1.36.0-SNAPSHOT~b6b3c7f32f
dateFormat X
axisFormat %s
section baseline
no_agent (1.469 ms) : 1458, 1481
. : milestone, 1469,
appsec (2.215 ms) : 2181, 2249
. : milestone, 2215,
iast (1.973 ms) : 1932, 2015
. : milestone, 1973,
iast_GLOBAL (2.013 ms) : 1972, 2054
. : milestone, 2013,
profiling (1.874 ms) : 1840, 1908
. : milestone, 1874,
tracing (1.843 ms) : 1811, 1875
. : milestone, 1843,
section candidate
no_agent (1.469 ms) : 1457, 1480
. : milestone, 1469,
appsec (2.225 ms) : 2191, 2260
. : milestone, 2225,
iast (1.98 ms) : 1939, 2021
. : milestone, 1980,
iast_GLOBAL (2.01 ms) : 1969, 2050
. : milestone, 2010,
profiling (1.868 ms) : 1834, 1901
. : milestone, 1868,
tracing (1.84 ms) : 1807, 1873
. : milestone, 1840,
|
anmarchenko
reviewed
Jun 26, 2024
| metricCollector.add(CiVisibilityCountMetric.CODE_COVERAGE_IS_EMPTY, 1); | ||
|
|
||
| // do not process coverage reports for skipped tests | ||
| if (span.getTag(Tags.TEST_STATUS) != TestStatus.skip) { |
Member
There was a problem hiding this comment.
should we add a test for that?
Contributor
Author
There was a problem hiding this comment.
yup, that makes sense, added
anmarchenko
approved these changes
Jun 26, 2024
nikita-tkachenko-datadog
deleted the
nikita-tkachenko/do-not-report-cov-for-skipped-tests
branch
June 26, 2024 20:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Updates code coverage processing logic so that code coverage is not processed/reported for skipped tests.
Motivation
If a test is skipped, code coverage is likely to be empty or incomplete. The backend has no use for this coverage, at least as of now, so we can save some resources by not processing it and not reporting it.
Jira ticket: SDTEST-493