-
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
WIP: Validator #8151
base: master
Are you sure you want to change the base?
WIP: Validator #8151
Conversation
Note One way to capture this is to say that any class that overrides |
@mcculls to simplify a bit, wdyt about just adding |
Sure, that's also OK |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 4 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.057 s) : 0, 1056534
Total [baseline] (10.43 s) : 0, 10429621
Agent [candidate] (1.052 s) : 0, 1051680
Total [candidate] (10.463 s) : 0, 10462697
section appsec
Agent [baseline] (1.192 s) : 0, 1192117
Total [baseline] (10.702 s) : 0, 10702227
Agent [candidate] (1.19 s) : 0, 1189836
Total [candidate] (10.696 s) : 0, 10696277
section iast
Agent [baseline] (1.184 s) : 0, 1184171
Total [baseline] (10.968 s) : 0, 10967802
Agent [candidate] (1.192 s) : 0, 1191934
Total [candidate] (11.003 s) : 0, 11003435
section profiling
Agent [baseline] (1.271 s) : 0, 1270865
Total [baseline] (10.837 s) : 0, 10837328
Agent [candidate] (1.27 s) : 0, 1269791
Total [candidate] (10.762 s) : 0, 10761691
gantt
title petclinic - break down per module: candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (715.099 ms) : 0, 715099
BytebuddyAgent [candidate] (712.372 ms) : 0, 712372
GlobalTracer [baseline] (257.148 ms) : 0, 257148
GlobalTracer [candidate] (256.245 ms) : 0, 256245
AppSec [baseline] (55.176 ms) : 0, 55176
AppSec [candidate] (55.252 ms) : 0, 55252
Remote Config [baseline] (714.841 µs) : 0, 715
Remote Config [candidate] (724.967 µs) : 0, 725
Telemetry [baseline] (13.26 ms) : 0, 13260
Telemetry [candidate] (12.124 ms) : 0, 12124
section appsec
BytebuddyAgent [baseline] (733.185 ms) : 0, 733185
BytebuddyAgent [candidate] (731.221 ms) : 0, 731221
GlobalTracer [baseline] (254.202 ms) : 0, 254202
GlobalTracer [candidate] (254.094 ms) : 0, 254094
AppSec [baseline] (171.362 ms) : 0, 171362
AppSec [candidate] (170.926 ms) : 0, 170926
Remote Config [baseline] (660.321 µs) : 0, 660
Remote Config [candidate] (671.942 µs) : 0, 672
Telemetry [baseline] (8.027 ms) : 0, 8027
Telemetry [candidate] (8.055 ms) : 0, 8055
IAST [baseline] (19.27 ms) : 0, 19270
IAST [candidate] (19.568 ms) : 0, 19568
section iast
BytebuddyAgent [baseline] (833.183 ms) : 0, 833183
BytebuddyAgent [candidate] (838.356 ms) : 0, 838356
GlobalTracer [baseline] (247.06 ms) : 0, 247060
GlobalTracer [candidate] (249.336 ms) : 0, 249336
AppSec [baseline] (57.987 ms) : 0, 57987
AppSec [candidate] (58.378 ms) : 0, 58378
Remote Config [baseline] (667.023 µs) : 0, 667
Remote Config [candidate] (656.859 µs) : 0, 657
Telemetry [baseline] (8.617 ms) : 0, 8617
Telemetry [candidate] (8.614 ms) : 0, 8614
IAST [baseline] (21.551 ms) : 0, 21551
IAST [candidate] (21.39 ms) : 0, 21390
section profiling
ProfilingAgent [baseline] (95.531 ms) : 0, 95531
ProfilingAgent [candidate] (94.781 ms) : 0, 94781
BytebuddyAgent [baseline] (700.384 ms) : 0, 700384
BytebuddyAgent [candidate] (700.937 ms) : 0, 700937
GlobalTracer [baseline] (370.802 ms) : 0, 370802
GlobalTracer [candidate] (370.525 ms) : 0, 370525
AppSec [baseline] (53.979 ms) : 0, 53979
AppSec [candidate] (53.482 ms) : 0, 53482
Remote Config [baseline] (651.481 µs) : 0, 651
Remote Config [candidate] (651.762 µs) : 0, 652
Telemetry [baseline] (7.813 ms) : 0, 7813
Telemetry [candidate] (7.695 ms) : 0, 7695
Profiling [baseline] (95.555 ms) : 0, 95555
Profiling [candidate] (94.805 ms) : 0, 94805
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.057 s) : 0, 1057250
Total [baseline] (8.635 s) : 0, 8635241
Agent [candidate] (1.06 s) : 0, 1059557
Total [candidate] (8.622 s) : 0, 8622256
section iast
Agent [baseline] (1.18 s) : 0, 1179878
Total [baseline] (9.192 s) : 0, 9191551
Agent [candidate] (1.191 s) : 0, 1191058
Total [candidate] (9.24 s) : 0, 9240475
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.179 s) : 0, 1179327
Total [baseline] (9.186 s) : 0, 9185643
Agent [candidate] (1.177 s) : 0, 1177202
Total [candidate] (9.139 s) : 0, 9138811
section iast_TELEMETRY_OFF
Agent [baseline] (1.176 s) : 0, 1176427
Total [baseline] (9.174 s) : 0, 9173521
Agent [candidate] (1.177 s) : 0, 1177303
Total [candidate] (9.203 s) : 0, 9202524
gantt
title insecure-bank - break down per module: candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (716.054 ms) : 0, 716054
BytebuddyAgent [candidate] (717.189 ms) : 0, 717189
GlobalTracer [baseline] (257.356 ms) : 0, 257356
GlobalTracer [candidate] (257.725 ms) : 0, 257725
AppSec [baseline] (55.553 ms) : 0, 55553
AppSec [candidate] (55.29 ms) : 0, 55290
Remote Config [baseline] (717.301 µs) : 0, 717
Remote Config [candidate] (734.467 µs) : 0, 734
Telemetry [baseline] (12.618 ms) : 0, 12618
Telemetry [candidate] (13.519 ms) : 0, 13519
section iast
BytebuddyAgent [baseline] (829.733 ms) : 0, 829733
BytebuddyAgent [candidate] (837.671 ms) : 0, 837671
GlobalTracer [baseline] (246.694 ms) : 0, 246694
GlobalTracer [candidate] (248.683 ms) : 0, 248683
AppSec [baseline] (57.923 ms) : 0, 57923
AppSec [candidate] (58.48 ms) : 0, 58480
IAST [baseline] (21.274 ms) : 0, 21274
IAST [candidate] (21.723 ms) : 0, 21723
Remote Config [baseline] (641.923 µs) : 0, 642
Remote Config [candidate] (660.022 µs) : 0, 660
Telemetry [baseline] (8.554 ms) : 0, 8554
Telemetry [candidate] (8.702 ms) : 0, 8702
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (828.709 ms) : 0, 828709
BytebuddyAgent [candidate] (827.619 ms) : 0, 827619
GlobalTracer [baseline] (246.767 ms) : 0, 246767
GlobalTracer [candidate] (246.321 ms) : 0, 246321
AppSec [baseline] (58.137 ms) : 0, 58137
AppSec [candidate] (57.916 ms) : 0, 57916
IAST [baseline] (21.413 ms) : 0, 21413
IAST [candidate] (21.134 ms) : 0, 21134
Remote Config [baseline] (659.45 µs) : 0, 659
Remote Config [candidate] (677.498 µs) : 0, 677
Telemetry [baseline] (8.672 ms) : 0, 8672
Telemetry [candidate] (8.522 ms) : 0, 8522
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (826.585 ms) : 0, 826585
BytebuddyAgent [candidate] (826.791 ms) : 0, 826791
GlobalTracer [baseline] (246.841 ms) : 0, 246841
GlobalTracer [candidate] (246.851 ms) : 0, 246851
AppSec [baseline] (57.821 ms) : 0, 57821
AppSec [candidate] (58.239 ms) : 0, 58239
IAST [baseline] (21.088 ms) : 0, 21088
IAST [candidate] (21.25 ms) : 0, 21250
Remote Config [baseline] (649.568 µs) : 0, 650
Remote Config [candidate] (662.408 µs) : 0, 662
Telemetry [baseline] (8.446 ms) : 0, 8446
Telemetry [candidate] (8.509 ms) : 0, 8509
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 1 performance regressions! Performance is the same for 10 metrics, 17 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section baseline
no_agent (1.339 ms) : 1319, 1359
. : milestone, 1339,
appsec (1.725 ms) : 1702, 1748
. : milestone, 1725,
appsec_no_iast (1.73 ms) : 1705, 1755
. : milestone, 1730,
iast (1.505 ms) : 1482, 1528
. : milestone, 1505,
profiling (1.487 ms) : 1463, 1510
. : milestone, 1487,
tracing (1.466 ms) : 1441, 1490
. : milestone, 1466,
section candidate
no_agent (1.342 ms) : 1323, 1362
. : milestone, 1342,
appsec (1.73 ms) : 1706, 1753
. : milestone, 1730,
appsec_no_iast (1.759 ms) : 1737, 1781
. : milestone, 1759,
iast (1.488 ms) : 1465, 1510
. : milestone, 1488,
profiling (1.545 ms) : 1519, 1571
. : milestone, 1545,
tracing (1.454 ms) : 1429, 1479
. : milestone, 1454,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section baseline
no_agent (369.995 µs) : 350, 390
. : milestone, 370,
iast (487.784 µs) : 466, 510
. : milestone, 488,
iast_FULL (650.952 µs) : 629, 673
. : milestone, 651,
iast_GLOBAL (519.256 µs) : 497, 541
. : milestone, 519,
iast_HARDCODED_SECRET_DISABLED (487.141 µs) : 466, 509
. : milestone, 487,
iast_INACTIVE (444.578 µs) : 424, 466
. : milestone, 445,
iast_TELEMETRY_OFF (477.253 µs) : 455, 499
. : milestone, 477,
tracing (446.9 µs) : 426, 468
. : milestone, 447,
section candidate
no_agent (372.456 µs) : 353, 392
. : milestone, 372,
iast (490.391 µs) : 469, 512
. : milestone, 490,
iast_FULL (650.731 µs) : 629, 672
. : milestone, 651,
iast_GLOBAL (513.898 µs) : 492, 536
. : milestone, 514,
iast_HARDCODED_SECRET_DISABLED (484.432 µs) : 463, 506
. : milestone, 484,
iast_INACTIVE (441.893 µs) : 421, 463
. : milestone, 442,
iast_TELEMETRY_OFF (475.002 µs) : 454, 496
. : milestone, 475,
tracing (443.354 µs) : 422, 464
. : 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 tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section baseline
no_agent (1.468 ms) : 1457, 1480
. : milestone, 1468,
appsec (2.352 ms) : 2310, 2394
. : milestone, 2352,
iast (2.103 ms) : 2050, 2157
. : milestone, 2103,
iast_GLOBAL (2.139 ms) : 2085, 2192
. : milestone, 2139,
profiling (1.997 ms) : 1951, 2042
. : milestone, 1997,
tracing (1.932 ms) : 1892, 1973
. : milestone, 1932,
section candidate
no_agent (1.465 ms) : 1454, 1476
. : milestone, 1465,
appsec (2.346 ms) : 2304, 2388
. : milestone, 2346,
iast (2.091 ms) : 2038, 2144
. : milestone, 2091,
iast_GLOBAL (2.128 ms) : 2075, 2181
. : milestone, 2128,
profiling (1.963 ms) : 1919, 2006
. : milestone, 1963,
tracing (1.924 ms) : 1884, 1965
. : milestone, 1924,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.45.0-SNAPSHOT~31d07dacca, baseline=1.45.0-SNAPSHOT~a8b33d5c49
dateFormat X
axisFormat %s
section baseline
no_agent (14.736 s) : 14736000, 14736000
. : milestone, 14736000,
appsec (14.966 s) : 14966000, 14966000
. : milestone, 14966000,
iast (18.966 s) : 18966000, 18966000
. : milestone, 18966000,
iast_GLOBAL (17.9 s) : 17900000, 17900000
. : milestone, 17900000,
profiling (15.854 s) : 15854000, 15854000
. : milestone, 15854000,
tracing (15.256 s) : 15256000, 15256000
. : milestone, 15256000,
section candidate
no_agent (15.553 s) : 15553000, 15553000
. : milestone, 15553000,
appsec (14.968 s) : 14968000, 14968000
. : milestone, 14968000,
iast (18.888 s) : 18888000, 18888000
. : milestone, 18888000,
iast_GLOBAL (18.031 s) : 18031000, 18031000
. : milestone, 18031000,
profiling (14.849 s) : 14849000, 14849000
. : milestone, 14849000,
tracing (15.153 s) : 15153000, 15153000
. : milestone, 15153000,
|
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.
Side question: Why does it revert static import where I usually recommend using them?
@PerfectSlayer the validator doesn't fix anything, it just logs the issues it sees. All of the fixes were done by myself As for the import change, that's because the script looks for |
Is it a limitation of the script/library you use? As I would really push in the other side during review (using static import) 🤔 |
What Does This Do
Creates a validator to make sure classes behave as expected
Motivation
Additional Notes
Current output
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: [PROJ-IDENT]