-
Notifications
You must be signed in to change notification settings - Fork 318
Convert muzzle plugin to kotlin #9439
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
Conversation
d61742d to
830d487
Compare
|
🎯 Code Coverage 🔗 Commit SHA: 435d92c | Docs | Was this helpful? Give us feedback! |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 51 metrics, 8 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.064 s) : 0, 1063770
Total [baseline] (8.698 s) : 0, 8697935
Agent [candidate] (1.06 s) : 0, 1059759
Total [candidate] (8.617 s) : 0, 8616657
section iast
Agent [baseline] (1.189 s) : 0, 1189296
Total [baseline] (9.308 s) : 0, 9307663
Agent [candidate] (1.196 s) : 0, 1195729
Total [candidate] (9.32 s) : 0, 9320113
gantt
title insecure-bank - break down per module: candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.457 ms) : 0, 1457
crashtracking [candidate] (1.454 ms) : 0, 1454
BytebuddyAgent [baseline] (734.439 ms) : 0, 734439
BytebuddyAgent [candidate] (731.913 ms) : 0, 731913
GlobalTracer [baseline] (252.733 ms) : 0, 252733
GlobalTracer [candidate] (251.818 ms) : 0, 251818
AppSec [baseline] (30.682 ms) : 0, 30682
AppSec [candidate] (30.472 ms) : 0, 30472
Debugger [baseline] (6.42 ms) : 0, 6420
Debugger [candidate] (6.384 ms) : 0, 6384
Remote Config [baseline] (694.621 µs) : 0, 695
Remote Config [candidate] (691.475 µs) : 0, 691
Telemetry [baseline] (16.294 ms) : 0, 16294
Telemetry [candidate] (15.969 ms) : 0, 15969
section iast
crashtracking [baseline] (1.459 ms) : 0, 1459
crashtracking [candidate] (1.457 ms) : 0, 1457
BytebuddyAgent [baseline] (852.019 ms) : 0, 852019
BytebuddyAgent [candidate] (857.77 ms) : 0, 857770
GlobalTracer [baseline] (245.927 ms) : 0, 245927
GlobalTracer [candidate] (247.36 ms) : 0, 247360
IAST [baseline] (29.632 ms) : 0, 29632
IAST [candidate] (28.802 ms) : 0, 28802
AppSec [baseline] (24.591 ms) : 0, 24591
AppSec [candidate] (24.586 ms) : 0, 24586
Debugger [baseline] (6.048 ms) : 0, 6048
Debugger [candidate] (6.013 ms) : 0, 6013
Remote Config [baseline] (591.793 µs) : 0, 592
Remote Config [candidate] (584.131 µs) : 0, 584
Telemetry [baseline] (8.076 ms) : 0, 8076
Telemetry [candidate] (8.189 ms) : 0, 8189
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.059 s) : 0, 1059450
Total [baseline] (10.714 s) : 0, 10713696
Agent [candidate] (1.075 s) : 0, 1075134
Total [candidate] (10.72 s) : 0, 10720186
section appsec
Agent [baseline] (1.232 s) : 0, 1231711
Total [baseline] (10.896 s) : 0, 10895530
Agent [candidate] (1.235 s) : 0, 1234946
Total [candidate] (11.026 s) : 0, 11025734
section iast
Agent [baseline] (1.188 s) : 0, 1188416
Total [baseline] (11.007 s) : 0, 11007416
Agent [candidate] (1.195 s) : 0, 1194609
Total [candidate] (11.092 s) : 0, 11091934
section profiling
Agent [baseline] (1.215 s) : 0, 1215176
Total [baseline] (10.955 s) : 0, 10954980
Agent [candidate] (1.206 s) : 0, 1206280
Total [candidate] (10.859 s) : 0, 10859230
gantt
title petclinic - break down per module: candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.451 ms) : 0, 1451
crashtracking [candidate] (1.488 ms) : 0, 1488
BytebuddyAgent [baseline] (731.16 ms) : 0, 731160
BytebuddyAgent [candidate] (742.389 ms) : 0, 742389
GlobalTracer [baseline] (251.722 ms) : 0, 251722
GlobalTracer [candidate] (255.313 ms) : 0, 255313
AppSec [baseline] (30.379 ms) : 0, 30379
AppSec [candidate] (31.07 ms) : 0, 31070
Debugger [baseline] (6.373 ms) : 0, 6373
Debugger [candidate] (6.468 ms) : 0, 6468
Remote Config [baseline] (692.989 µs) : 0, 693
Remote Config [candidate] (704.778 µs) : 0, 705
Telemetry [baseline] (16.507 ms) : 0, 16507
Telemetry [candidate] (16.41 ms) : 0, 16410
section appsec
crashtracking [baseline] (1.463 ms) : 0, 1463
crashtracking [candidate] (1.443 ms) : 0, 1443
BytebuddyAgent [baseline] (753.622 ms) : 0, 753622
BytebuddyAgent [candidate] (756.037 ms) : 0, 756037
GlobalTracer [baseline] (245.152 ms) : 0, 245152
GlobalTracer [candidate] (245.491 ms) : 0, 245491
IAST [baseline] (23.716 ms) : 0, 23716
IAST [candidate] (23.622 ms) : 0, 23622
AppSec [baseline] (171.454 ms) : 0, 171454
AppSec [candidate] (171.241 ms) : 0, 171241
Debugger [baseline] (6.03 ms) : 0, 6030
Debugger [candidate] (6.793 ms) : 0, 6793
Remote Config [baseline] (653.918 µs) : 0, 654
Remote Config [candidate] (623.673 µs) : 0, 624
Telemetry [baseline] (8.369 ms) : 0, 8369
Telemetry [candidate] (8.522 ms) : 0, 8522
section iast
crashtracking [baseline] (1.451 ms) : 0, 1451
crashtracking [candidate] (1.457 ms) : 0, 1457
BytebuddyAgent [baseline] (850.848 ms) : 0, 850848
BytebuddyAgent [candidate] (856.994 ms) : 0, 856994
GlobalTracer [baseline] (245.307 ms) : 0, 245307
GlobalTracer [candidate] (245.763 ms) : 0, 245763
IAST [baseline] (30.399 ms) : 0, 30399
IAST [candidate] (30.203 ms) : 0, 30203
AppSec [baseline] (24.62 ms) : 0, 24620
AppSec [candidate] (24.426 ms) : 0, 24426
Debugger [baseline] (6.016 ms) : 0, 6016
Debugger [candidate] (6.044 ms) : 0, 6044
Remote Config [baseline] (612.669 µs) : 0, 613
Remote Config [candidate] (589.454 µs) : 0, 589
Telemetry [baseline] (8.123 ms) : 0, 8123
Telemetry [candidate] (8.107 ms) : 0, 8107
section profiling
crashtracking [baseline] (1.435 ms) : 0, 1435
crashtracking [candidate] (1.435 ms) : 0, 1435
BytebuddyAgent [baseline] (764.931 ms) : 0, 764931
BytebuddyAgent [candidate] (759.903 ms) : 0, 759903
GlobalTracer [baseline] (234.605 ms) : 0, 234605
GlobalTracer [candidate] (232.43 ms) : 0, 232430
AppSec [baseline] (31.364 ms) : 0, 31364
AppSec [candidate] (31.127 ms) : 0, 31127
Debugger [baseline] (8.985 ms) : 0, 8985
Debugger [candidate] (7.445 ms) : 0, 7445
Remote Config [baseline] (719.534 µs) : 0, 720
Remote Config [candidate] (702.55 µs) : 0, 703
Telemetry [baseline] (13.428 ms) : 0, 13428
Telemetry [candidate] (14.908 ms) : 0, 14908
ProfilingAgent [baseline] (108.453 ms) : 0, 108453
ProfilingAgent [candidate] (107.446 ms) : 0, 107446
Profiling [baseline] (109.115 ms) : 0, 109115
Profiling [candidate] (108.102 ms) : 0, 108102
LoadParameters
See matching parameters
SummaryFound 4 performance improvements and 1 performance regressions! Performance is the same for 7 metrics, 12 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section baseline
no_agent (36.877 ms) : 36585, 37168
. : milestone, 36877,
appsec (47.186 ms) : 46772, 47599
. : milestone, 47186,
code_origins (46.3 ms) : 45909, 46691
. : milestone, 46300,
iast (44.31 ms) : 43944, 44675
. : milestone, 44310,
profiling (49.719 ms) : 49236, 50201
. : milestone, 49719,
tracing (44.579 ms) : 44208, 44949
. : milestone, 44579,
section candidate
no_agent (36.803 ms) : 36498, 37108
. : milestone, 36803,
appsec (49.512 ms) : 49075, 49949
. : milestone, 49512,
code_origins (46.523 ms) : 46108, 46937
. : milestone, 46523,
iast (42.953 ms) : 42590, 43317
. : milestone, 42953,
profiling (47.281 ms) : 46861, 47701
. : milestone, 47281,
tracing (42.548 ms) : 42186, 42910
. : milestone, 42548,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section baseline
no_agent (4.268 ms) : 4220, 4316
. : milestone, 4268,
iast (9.715 ms) : 9540, 9889
. : milestone, 9715,
iast_FULL (13.971 ms) : 13690, 14252
. : milestone, 13971,
iast_GLOBAL (10.349 ms) : 10149, 10550
. : milestone, 10349,
profiling (9.017 ms) : 8874, 9159
. : milestone, 9017,
tracing (7.997 ms) : 7872, 8121
. : milestone, 7997,
section candidate
no_agent (4.287 ms) : 4240, 4333
. : milestone, 4287,
iast (9.282 ms) : 9130, 9434
. : milestone, 9282,
iast_FULL (14.308 ms) : 14020, 14597
. : milestone, 14308,
iast_GLOBAL (10.381 ms) : 10180, 10583
. : milestone, 10381,
profiling (9.309 ms) : 9142, 9477
. : milestone, 9309,
tracing (7.714 ms) : 7605, 7822
. : milestone, 7714,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 2 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section baseline
no_agent (1.469 ms) : 1458, 1480
. : milestone, 1469,
appsec (2.506 ms) : 2453, 2560
. : milestone, 2506,
iast (2.197 ms) : 2134, 2261
. : milestone, 2197,
iast_GLOBAL (2.242 ms) : 2178, 2306
. : milestone, 2242,
profiling (2.467 ms) : 2240, 2695
. : milestone, 2467,
tracing (2.011 ms) : 1961, 2060
. : milestone, 2011,
section candidate
no_agent (1.472 ms) : 1461, 1484
. : milestone, 1472,
appsec (3.724 ms) : 3506, 3942
. : milestone, 3724,
iast (2.205 ms) : 2141, 2269
. : milestone, 2205,
iast_GLOBAL (2.242 ms) : 2178, 2306
. : milestone, 2242,
profiling (2.04 ms) : 1989, 2092
. : milestone, 2040,
tracing (2.023 ms) : 1974, 2073
. : milestone, 2023,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.53.0-SNAPSHOT~435d92cfcd, baseline=1.54.0-SNAPSHOT~f7aa6d2c5e
dateFormat X
axisFormat %s
section baseline
no_agent (15.013 s) : 15013000, 15013000
. : milestone, 15013000,
appsec (15.002 s) : 15002000, 15002000
. : milestone, 15002000,
iast (18.573 s) : 18573000, 18573000
. : milestone, 18573000,
iast_GLOBAL (18.077 s) : 18077000, 18077000
. : milestone, 18077000,
profiling (15.997 s) : 15997000, 15997000
. : milestone, 15997000,
tracing (14.969 s) : 14969000, 14969000
. : milestone, 14969000,
section candidate
no_agent (15.322 s) : 15322000, 15322000
. : milestone, 15322000,
appsec (14.809 s) : 14809000, 14809000
. : milestone, 14809000,
iast (18.488 s) : 18488000, 18488000
. : milestone, 18488000,
iast_GLOBAL (17.876 s) : 17876000, 17876000
. : milestone, 17876000,
profiling (15.982 s) : 15982000, 15982000
. : milestone, 15982000,
tracing (14.803 s) : 14803000, 14803000
. : milestone, 14803000,
|
|
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
buildSrc/src/main/kotlin/datadog/gradle/plugin/muzzle/VersionSet.kt
Outdated
Show resolved
Hide resolved
sarahchen6
left a comment
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 reviewed this PR by comparing the new kotlin files to the previous groovy implementations. Looks like all of the classes and logic were transferred directly over. Nice! Thanks!
|
Couple of issues I don't see with the original plugin: (This also fails for |
|
I also noticed that the Those projects are all intermediate modules which don't have any source sets/code - I suspect there's a check missing in the new plugin that should be skipping these projects. |
…he JavaPlugin applied This can happen on empty parent projects.
|
@mcculls thank for catching those ! I'm not sure what made the build green in the first place.
|
mcculls
left a comment
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.
LGTM - thanks!
What Does This Do
Port the
MuzzlePluginwritten in groovy to Kotlin. Also spread the single source file to its constituents.Motivation
Significantly better IDE support, this will improve maintainability.
In a previous PR this plugin was refactored to use lazy configuration API, this PR don't change that. However, it improves in a few places.
Additional Notes
Review strategy suggestion: go commit by commit, as I migrated piece of code one by one.
Related to
MuzzlePlugin#9315Conversion method:
Contributor Checklist
type:and (comp:orinst:) labels in addition to any usefull labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]