-
Notifications
You must be signed in to change notification settings - Fork 293
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
Fix forked JVM args duplication when auto-configuring Gradle test tasks #6151
Merged
nikita-tkachenko-datadog
merged 1 commit into
master
from
nikita-tkachenko/fix-gradle-auto-configuration-duplicate-args
Nov 6, 2023
Merged
Fix forked JVM args duplication when auto-configuring Gradle test tasks #6151
nikita-tkachenko-datadog
merged 1 commit into
master
from
nikita-tkachenko/fix-gradle-auto-configuration-duplicate-args
Nov 6, 2023
Conversation
This file contains 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
nikita-tkachenko-datadog
added
type: bug
comp: ci visibility
Continuous Integration Visibility
labels
Nov 3, 2023
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 54 cases. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.23.0-SNAPSHOT~13a0984681, baseline=1.23.0-SNAPSHOT~0345c95db1
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.041 s) : 0, 1041063
Total [baseline] (9.468 s) : 0, 9467670
Agent [candidate] (1.039 s) : 0, 1038985
Total [candidate] (9.323 s) : 0, 9323119
section appsec
Agent [baseline] (1.114 s) : 0, 1114135
Total [baseline] (9.389 s) : 0, 9389432
Agent [candidate] (1.121 s) : 0, 1121377
Total [candidate] (9.442 s) : 0, 9442436
section iast
Agent [baseline] (1.152 s) : 0, 1152029
Total [baseline] (9.589 s) : 0, 9589029
Agent [candidate] (1.157 s) : 0, 1157014
Total [candidate] (9.57 s) : 0, 9570221
section profiling
Agent [baseline] (1.22 s) : 0, 1220228
Total [baseline] (9.523 s) : 0, 9523299
Agent [candidate] (1.22 s) : 0, 1219646
Total [candidate] (9.637 s) : 0, 9637064
gantt
title petclinic - break down per module: candidate=1.23.0-SNAPSHOT~13a0984681, baseline=1.23.0-SNAPSHOT~0345c95db1
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (649.644 ms) : 0, 649644
BytebuddyAgent [candidate] (647.55 ms) : 0, 647550
GlobalTracer [baseline] (295.646 ms) : 0, 295646
GlobalTracer [candidate] (295.852 ms) : 0, 295852
AppSec [baseline] (49.058 ms) : 0, 49058
AppSec [candidate] (48.876 ms) : 0, 48876
Remote Config [baseline] (698.643 µs) : 0, 699
Remote Config [candidate] (706.886 µs) : 0, 707
Telemetry [baseline] (11.426 ms) : 0, 11426
Telemetry [candidate] (11.571 ms) : 0, 11571
section appsec
BytebuddyAgent [baseline] (642.448 ms) : 0, 642448
BytebuddyAgent [candidate] (646.366 ms) : 0, 646366
GlobalTracer [baseline] (291.78 ms) : 0, 291780
GlobalTracer [candidate] (294.328 ms) : 0, 294328
AppSec [baseline] (138.264 ms) : 0, 138264
AppSec [candidate] (138.719 ms) : 0, 138719
Remote Config [baseline] (640.554 µs) : 0, 641
Remote Config [candidate] (644.04 µs) : 0, 644
Telemetry [baseline] (6.838 ms) : 0, 6838
Telemetry [candidate] (6.877 ms) : 0, 6877
section iast
BytebuddyAgent [baseline] (764.928 ms) : 0, 764928
BytebuddyAgent [candidate] (770.391 ms) : 0, 770391
GlobalTracer [baseline] (275.356 ms) : 0, 275356
GlobalTracer [candidate] (276.42 ms) : 0, 276420
AppSec [baseline] (46.974 ms) : 0, 46974
AppSec [candidate] (46.875 ms) : 0, 46875
Remote Config [baseline] (590.608 µs) : 0, 591
Remote Config [candidate] (587.347 µs) : 0, 587
Telemetry [baseline] (13.4 ms) : 0, 13400
Telemetry [candidate] (11.494 ms) : 0, 11494
IAST [baseline] (16.422 ms) : 0, 16422
IAST [candidate] (16.505 ms) : 0, 16505
section profiling
BytebuddyAgent [baseline] (656.109 ms) : 0, 656109
BytebuddyAgent [candidate] (656.22 ms) : 0, 656220
GlobalTracer [baseline] (358.951 ms) : 0, 358951
GlobalTracer [candidate] (359.204 ms) : 0, 359204
AppSec [baseline] (49.955 ms) : 0, 49955
AppSec [candidate] (48.975 ms) : 0, 48975
Remote Config [baseline] (643.19 µs) : 0, 643
Remote Config [candidate] (648.192 µs) : 0, 648
Telemetry [baseline] (11.386 ms) : 0, 11386
Telemetry [candidate] (11.321 ms) : 0, 11321
ProfilingAgent [baseline] (88.808 ms) : 0, 88808
ProfilingAgent [candidate] (89.076 ms) : 0, 89076
Profiling [baseline] (88.832 ms) : 0, 88832
Profiling [candidate] (89.1 ms) : 0, 89100
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.23.0-SNAPSHOT~13a0984681, baseline=1.23.0-SNAPSHOT~0345c95db1
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.042 s) : 0, 1042246
Total [baseline] (8.838 s) : 0, 8838402
Agent [candidate] (1.037 s) : 0, 1037265
Total [candidate] (8.829 s) : 0, 8829090
section iast
Agent [baseline] (1.148 s) : 0, 1148099
Total [baseline] (9.361 s) : 0, 9360673
Agent [candidate] (1.161 s) : 0, 1161498
Total [candidate] (9.375 s) : 0, 9375139
section iast_TELEMETRY_OFF
Agent [baseline] (1.139 s) : 0, 1139000
Total [baseline] (9.284 s) : 0, 9283668
Agent [candidate] (1.148 s) : 0, 1147810
Total [candidate] (9.308 s) : 0, 9308413
gantt
title insecure-bank - break down per module: candidate=1.23.0-SNAPSHOT~13a0984681, baseline=1.23.0-SNAPSHOT~0345c95db1
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (649.995 ms) : 0, 649995
BytebuddyAgent [candidate] (646.557 ms) : 0, 646557
GlobalTracer [baseline] (295.791 ms) : 0, 295791
GlobalTracer [candidate] (295.185 ms) : 0, 295185
AppSec [baseline] (49.466 ms) : 0, 49466
AppSec [candidate] (49.015 ms) : 0, 49015
Remote Config [baseline] (702.509 µs) : 0, 703
Remote Config [candidate] (693.927 µs) : 0, 694
Telemetry [baseline] (11.499 ms) : 0, 11499
Telemetry [candidate] (11.343 ms) : 0, 11343
section iast
BytebuddyAgent [baseline] (763.62 ms) : 0, 763620
BytebuddyAgent [candidate] (772.954 ms) : 0, 772954
GlobalTracer [baseline] (273.567 ms) : 0, 273567
GlobalTracer [candidate] (277.072 ms) : 0, 277072
AppSec [baseline] (47.372 ms) : 0, 47372
AppSec [candidate] (47.091 ms) : 0, 47091
IAST [baseline] (16.054 ms) : 0, 16054
IAST [candidate] (15.674 ms) : 0, 15674
Remote Config [baseline] (571.414 µs) : 0, 571
Remote Config [candidate] (595.188 µs) : 0, 595
Telemetry [baseline] (12.636 ms) : 0, 12636
Telemetry [candidate] (13.372 ms) : 0, 13372
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (755.734 ms) : 0, 755734
BytebuddyAgent [candidate] (761.548 ms) : 0, 761548
GlobalTracer [baseline] (272.895 ms) : 0, 272895
GlobalTracer [candidate] (276.046 ms) : 0, 276046
AppSec [baseline] (46.585 ms) : 0, 46585
AppSec [candidate] (46.93 ms) : 0, 46930
IAST [baseline] (17.186 ms) : 0, 17186
IAST [candidate] (15.482 ms) : 0, 15482
Remote Config [baseline] (562.555 µs) : 0, 563
Remote Config [candidate] (575.013 µs) : 0, 575
Telemetry [baseline] (11.767 ms) : 0, 11767
Telemetry [candidate] (12.732 ms) : 0, 12732
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 22 cases. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.23.0-SNAPSHOT~13a0984681, baseline=1.23.0-SNAPSHOT~0345c95db1
dateFormat X
axisFormat %s
section baseline
no_agent (1.348 ms) : 1329, 1367
. : milestone, 1348,
appsec (1.713 ms) : 1688, 1737
. : milestone, 1713,
iast (1.492 ms) : 1467, 1516
. : milestone, 1492,
profiling (1.498 ms) : 1471, 1524
. : milestone, 1498,
tracing (1.479 ms) : 1455, 1504
. : milestone, 1479,
section candidate
no_agent (1.357 ms) : 1338, 1377
. : milestone, 1357,
appsec (1.695 ms) : 1671, 1720
. : milestone, 1695,
iast (1.493 ms) : 1469, 1517
. : milestone, 1493,
profiling (1.484 ms) : 1457, 1511
. : milestone, 1484,
tracing (1.455 ms) : 1431, 1480
. : milestone, 1455,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.23.0-SNAPSHOT~13a0984681, baseline=1.23.0-SNAPSHOT~0345c95db1
dateFormat X
axisFormat %s
section baseline
no_agent (368.18 µs) : 348, 388
. : milestone, 368,
iast (462.848 µs) : 442, 484
. : milestone, 463,
iast_FULL (525.567 µs) : 505, 546
. : milestone, 526,
iast_INACTIVE (440.772 µs) : 419, 463
. : milestone, 441,
iast_TELEMETRY_OFF (464.555 µs) : 443, 486
. : milestone, 465,
tracing (435.69 µs) : 415, 457
. : milestone, 436,
section candidate
no_agent (361.058 µs) : 341, 381
. : milestone, 361,
iast (464.888 µs) : 444, 486
. : milestone, 465,
iast_FULL (528.933 µs) : 508, 550
. : milestone, 529,
iast_INACTIVE (439.006 µs) : 418, 460
. : milestone, 439,
iast_TELEMETRY_OFF (465.111 µs) : 445, 486
. : milestone, 465,
tracing (445.898 µs) : 424, 468
. : milestone, 446,
|
romainkomorn-exdatadog
approved these changes
Nov 6, 2023
nikita-tkachenko-datadog
deleted the
nikita-tkachenko/fix-gradle-auto-configuration-duplicate-args
branch
November 6, 2023 09:33
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
Fixes Gradle test tasks configurator: to run the forked JVM with the tracer, it modifies JVM arguments of Gradle test tasks.
It did so by calling
Test.jvmArgs()
, which appended the new arguments to the existing ones.Since the compiled list of arguments already contains the existing ones, it should replace rather than be added to the list of existing args.
So the code was updated to call
Test.setJvmArgs()
, which has the desired semantics.Motivation
Duplicating some args (e.g.
--patch-module
) can cause the forked JVM to fail.Jira ticket: CIVIS-7901