-
Notifications
You must be signed in to change notification settings - Fork 292
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
Add source line tags to test suites #7964
Add source line tags to test suites #7964
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 52 metrics, 11 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.083 s) : 0, 1082549
Total [baseline] (10.427 s) : 0, 10426943
Agent [candidate] (1.083 s) : 0, 1082504
Total [candidate] (10.376 s) : 0, 10375503
section appsec
Agent [baseline] (1.225 s) : 0, 1225086
Total [baseline] (10.682 s) : 0, 10682358
Agent [candidate] (1.217 s) : 0, 1217381
Total [candidate] (10.699 s) : 0, 10698902
section iast
Agent [baseline] (1.217 s) : 0, 1216653
Total [baseline] (11.005 s) : 0, 11004652
Agent [candidate] (1.211 s) : 0, 1210816
Total [candidate] (10.94 s) : 0, 10939849
section profiling
Agent [baseline] (1.28 s) : 0, 1279753
Total [baseline] (10.798 s) : 0, 10797825
Agent [candidate] (1.296 s) : 0, 1296075
Total [candidate] (10.753 s) : 0, 10752600
gantt
title petclinic - break down per module: candidate=1.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (687.935 ms) : 0, 687935
BytebuddyAgent [candidate] (687.461 ms) : 0, 687461
GlobalTracer [baseline] (315.694 ms) : 0, 315694
GlobalTracer [candidate] (315.592 ms) : 0, 315592
AppSec [baseline] (54.526 ms) : 0, 54526
AppSec [candidate] (54.435 ms) : 0, 54435
Remote Config [baseline] (681.636 µs) : 0, 682
Remote Config [candidate] (684.107 µs) : 0, 684
Telemetry [baseline] (9.982 ms) : 0, 9982
Telemetry [candidate] (10.588 ms) : 0, 10588
section appsec
BytebuddyAgent [baseline] (710.924 ms) : 0, 710924
BytebuddyAgent [candidate] (704.819 ms) : 0, 704819
GlobalTracer [baseline] (315.278 ms) : 0, 315278
GlobalTracer [candidate] (313.443 ms) : 0, 313443
AppSec [baseline] (166.537 ms) : 0, 166537
AppSec [candidate] (166.774 ms) : 0, 166774
Remote Config [baseline] (632.621 µs) : 0, 633
Remote Config [candidate] (643.738 µs) : 0, 644
Telemetry [baseline] (8.146 ms) : 0, 8146
Telemetry [candidate] (8.181 ms) : 0, 8181
IAST [baseline] (19.513 ms) : 0, 19513
IAST [candidate] (19.582 ms) : 0, 19582
section iast
BytebuddyAgent [baseline] (808.782 ms) : 0, 808782
BytebuddyAgent [candidate] (805.49 ms) : 0, 805490
GlobalTracer [baseline] (306.806 ms) : 0, 306806
GlobalTracer [candidate] (304.912 ms) : 0, 304912
AppSec [baseline] (57.308 ms) : 0, 57308
AppSec [candidate] (57.759 ms) : 0, 57759
Remote Config [baseline] (618.038 µs) : 0, 618
Remote Config [candidate] (620.451 µs) : 0, 620
Telemetry [baseline] (7.586 ms) : 0, 7586
Telemetry [candidate] (7.528 ms) : 0, 7528
IAST [baseline] (21.746 ms) : 0, 21746
IAST [candidate] (20.725 ms) : 0, 20725
section profiling
BytebuddyAgent [baseline] (681.835 ms) : 0, 681835
BytebuddyAgent [candidate] (690.807 ms) : 0, 690807
GlobalTracer [baseline] (398.663 ms) : 0, 398663
GlobalTracer [candidate] (403.885 ms) : 0, 403885
AppSec [baseline] (54.771 ms) : 0, 54771
AppSec [candidate] (55.315 ms) : 0, 55315
Remote Config [baseline] (668.129 µs) : 0, 668
Remote Config [candidate] (691.63 µs) : 0, 692
Telemetry [baseline] (12.105 ms) : 0, 12105
Telemetry [candidate] (12.081 ms) : 0, 12081
ProfilingAgent [baseline] (92.753 ms) : 0, 92753
ProfilingAgent [candidate] (93.671 ms) : 0, 93671
Profiling [baseline] (92.776 ms) : 0, 92776
Profiling [candidate] (93.695 ms) : 0, 93695
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.084 s) : 0, 1084163
Total [baseline] (8.581 s) : 0, 8580806
Agent [candidate] (1.099 s) : 0, 1098526
Total [candidate] (8.613 s) : 0, 8613300
section iast
Agent [baseline] (1.21 s) : 0, 1210412
Total [baseline] (9.157 s) : 0, 9157084
Agent [candidate] (1.208 s) : 0, 1207613
Total [candidate] (9.179 s) : 0, 9178960
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.207 s) : 0, 1206810
Total [baseline] (9.124 s) : 0, 9123669
Agent [candidate] (1.209 s) : 0, 1208527
Total [candidate] (9.1 s) : 0, 9100001
section iast_TELEMETRY_OFF
Agent [baseline] (1.205 s) : 0, 1205081
Total [baseline] (9.119 s) : 0, 9119499
Agent [candidate] (1.212 s) : 0, 1212019
Total [candidate] (9.145 s) : 0, 9145091
gantt
title insecure-bank - break down per module: candidate=1.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (688.083 ms) : 0, 688083
BytebuddyAgent [candidate] (698.09 ms) : 0, 698090
GlobalTracer [baseline] (315.976 ms) : 0, 315976
GlobalTracer [candidate] (319.605 ms) : 0, 319605
AppSec [baseline] (54.259 ms) : 0, 54259
AppSec [candidate] (54.841 ms) : 0, 54841
Remote Config [baseline] (689.802 µs) : 0, 690
Remote Config [candidate] (699.83 µs) : 0, 700
Telemetry [baseline] (11.384 ms) : 0, 11384
Telemetry [candidate] (11.337 ms) : 0, 11337
section iast
BytebuddyAgent [baseline] (805.463 ms) : 0, 805463
BytebuddyAgent [candidate] (803.092 ms) : 0, 803092
GlobalTracer [baseline] (304.989 ms) : 0, 304989
GlobalTracer [candidate] (304.511 ms) : 0, 304511
AppSec [baseline] (56.572 ms) : 0, 56572
AppSec [candidate] (56.904 ms) : 0, 56904
IAST [baseline] (21.579 ms) : 0, 21579
IAST [candidate] (21.2 ms) : 0, 21200
Remote Config [baseline] (609.583 µs) : 0, 610
Remote Config [candidate] (620.984 µs) : 0, 621
Telemetry [baseline] (7.437 ms) : 0, 7437
Telemetry [candidate] (7.518 ms) : 0, 7518
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (802.474 ms) : 0, 802474
BytebuddyAgent [candidate] (802.68 ms) : 0, 802680
GlobalTracer [baseline] (304.668 ms) : 0, 304668
GlobalTracer [candidate] (305.066 ms) : 0, 305066
AppSec [baseline] (56.625 ms) : 0, 56625
AppSec [candidate] (58.085 ms) : 0, 58085
IAST [baseline] (21.182 ms) : 0, 21182
IAST [candidate] (20.728 ms) : 0, 20728
Remote Config [baseline] (614.793 µs) : 0, 615
Remote Config [candidate] (605.511 µs) : 0, 606
Telemetry [baseline] (7.513 ms) : 0, 7513
Telemetry [candidate] (7.617 ms) : 0, 7617
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (800.098 ms) : 0, 800098
BytebuddyAgent [candidate] (806.498 ms) : 0, 806498
GlobalTracer [baseline] (304.316 ms) : 0, 304316
GlobalTracer [candidate] (304.68 ms) : 0, 304680
AppSec [baseline] (58.644 ms) : 0, 58644
AppSec [candidate] (56.764 ms) : 0, 56764
IAST [baseline] (20.33 ms) : 0, 20330
IAST [candidate] (21.288 ms) : 0, 21288
Remote Config [baseline] (621.555 µs) : 0, 622
Remote Config [candidate] (610.673 µs) : 0, 611
Telemetry [baseline] (7.369 ms) : 0, 7369
Telemetry [candidate] (8.273 ms) : 0, 8273
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.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section baseline
no_agent (1.359 ms) : 1340, 1379
. : milestone, 1359,
appsec (1.747 ms) : 1722, 1772
. : milestone, 1747,
appsec_no_iast (1.745 ms) : 1720, 1770
. : milestone, 1745,
iast (1.477 ms) : 1454, 1500
. : milestone, 1477,
profiling (1.493 ms) : 1470, 1516
. : milestone, 1493,
tracing (1.471 ms) : 1447, 1495
. : milestone, 1471,
section candidate
no_agent (1.354 ms) : 1335, 1373
. : milestone, 1354,
appsec (1.736 ms) : 1714, 1759
. : milestone, 1736,
appsec_no_iast (1.74 ms) : 1717, 1764
. : milestone, 1740,
iast (1.485 ms) : 1461, 1508
. : milestone, 1485,
profiling (1.525 ms) : 1501, 1549
. : milestone, 1525,
tracing (1.494 ms) : 1469, 1519
. : milestone, 1494,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section baseline
no_agent (374.803 µs) : 355, 394
. : milestone, 375,
iast (490.114 µs) : 469, 511
. : milestone, 490,
iast_FULL (646.699 µs) : 625, 668
. : milestone, 647,
iast_GLOBAL (517.251 µs) : 496, 539
. : milestone, 517,
iast_HARDCODED_SECRET_DISABLED (484.014 µs) : 463, 505
. : milestone, 484,
iast_INACTIVE (447.243 µs) : 427, 468
. : milestone, 447,
iast_TELEMETRY_OFF (477.735 µs) : 456, 499
. : milestone, 478,
tracing (442.493 µs) : 422, 463
. : milestone, 442,
section candidate
no_agent (370.877 µs) : 351, 391
. : milestone, 371,
iast (487.677 µs) : 466, 509
. : milestone, 488,
iast_FULL (643.798 µs) : 622, 665
. : milestone, 644,
iast_GLOBAL (519.799 µs) : 497, 543
. : milestone, 520,
iast_HARDCODED_SECRET_DISABLED (491.028 µs) : 470, 512
. : milestone, 491,
iast_INACTIVE (457.396 µs) : 436, 479
. : milestone, 457,
iast_TELEMETRY_OFF (474.061 µs) : 453, 495
. : milestone, 474,
tracing (446.765 µs) : 426, 468
. : milestone, 447,
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.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section baseline
no_agent (15.705 s) : 15705000, 15705000
. : milestone, 15705000,
appsec (15.289 s) : 15289000, 15289000
. : milestone, 15289000,
iast (18.632 s) : 18632000, 18632000
. : milestone, 18632000,
iast_GLOBAL (18.055 s) : 18055000, 18055000
. : milestone, 18055000,
profiling (15.24 s) : 15240000, 15240000
. : milestone, 15240000,
tracing (15.178 s) : 15178000, 15178000
. : milestone, 15178000,
section candidate
no_agent (15.789 s) : 15789000, 15789000
. : milestone, 15789000,
appsec (15.603 s) : 15603000, 15603000
. : milestone, 15603000,
iast (18.48 s) : 18480000, 18480000
. : milestone, 18480000,
iast_GLOBAL (18.178 s) : 18178000, 18178000
. : milestone, 18178000,
profiling (15.063 s) : 15063000, 15063000
. : milestone, 15063000,
tracing (15.303 s) : 15303000, 15303000
. : milestone, 15303000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.43.0-SNAPSHOT~286c855587, baseline=1.43.0-SNAPSHOT~92eab56ab4
dateFormat X
axisFormat %s
section baseline
no_agent (1.48 ms) : 1468, 1491
. : milestone, 1480,
appsec (2.346 ms) : 2304, 2389
. : milestone, 2346,
iast (2.081 ms) : 2029, 2134
. : milestone, 2081,
iast_GLOBAL (2.13 ms) : 2077, 2184
. : milestone, 2130,
profiling (1.942 ms) : 1899, 1984
. : milestone, 1942,
tracing (1.933 ms) : 1892, 1973
. : milestone, 1933,
section candidate
no_agent (1.474 ms) : 1462, 1486
. : milestone, 1474,
appsec (2.337 ms) : 2296, 2378
. : milestone, 2337,
iast (2.087 ms) : 2035, 2140
. : milestone, 2087,
iast_GLOBAL (2.135 ms) : 2082, 2188
. : milestone, 2135,
profiling (1.951 ms) : 1909, 1993
. : milestone, 1951,
tracing (1.929 ms) : 1889, 1970
. : milestone, 1929,
|
def methodLinesResolver = { it -> MethodLinesResolver.MethodLines.EMPTY } | ||
|
||
def linesResolver = Stub(LinesResolver) | ||
linesResolver.getMethodLines(null) >> LinesResolver.Lines.EMPTY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should use .getMethodLines(_)
to stub invocation for any argument.
def methodLinesResolver = Stub(MethodLinesResolver) | ||
methodLinesResolver.getLines(_ as Method) >> new MethodLinesResolver.MethodLines(DUMMY_TEST_METHOD_START, DUMMY_TEST_METHOD_END) | ||
def methodLinesResolver = Stub(LinesResolver) | ||
methodLinesResolver.getMethodLines(_ as Method) >> new LinesResolver.Lines(DUMMY_TEST_METHOD_START, DUMMY_TEST_METHOD_END) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect we might have to stub the getClassLines
method as well: the tested code expects that the return value is always non-null, so we'll probably get a bunch of NPEs in tests.
What Does This Do
test.source.start
andtest.source.end
tags to test suites0.2.2
Motivation
To show test suite source code in the Datadog platform the tracer needs to provide the source line tags.
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: SDTEST-276