Ensure module name is consistent between test.module, test.suite and test spans when build system is instrumented#6354
Merged
nikita-tkachenko-datadog merged 1 commit intoDec 13, 2023
Conversation
…test spans when build system is instrumented
nikita-tkachenko-datadog
marked this pull request as ready for review
December 12, 2023 20:35
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 46 metrics, 8 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.26.0-SNAPSHOT~9c0a0772ea, baseline=1.26.0-SNAPSHOT~1878db6329
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.041 s) : 0, 1041201
Total [baseline] (8.689 s) : 0, 8688948
Agent [candidate] (1.044 s) : 0, 1044116
Total [candidate] (8.691 s) : 0, 8691415
section iast
Agent [baseline] (1.158 s) : 0, 1157914
Total [baseline] (9.217 s) : 0, 9216585
Agent [candidate] (1.161 s) : 0, 1160968
Total [candidate] (9.258 s) : 0, 9257628
section iast_TELEMETRY_OFF
Agent [baseline] (1.151 s) : 0, 1150686
Total [baseline] (9.217 s) : 0, 9216980
Agent [candidate] (1.152 s) : 0, 1152484
Total [candidate] (9.225 s) : 0, 9225305
gantt
title insecure-bank - break down per module: candidate=1.26.0-SNAPSHOT~9c0a0772ea, baseline=1.26.0-SNAPSHOT~1878db6329
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (644.711 ms) : 0, 644711
BytebuddyAgent [candidate] (645.559 ms) : 0, 645559
GlobalTracer [baseline] (306.162 ms) : 0, 306162
GlobalTracer [candidate] (307.81 ms) : 0, 307810
AppSec [baseline] (48.339 ms) : 0, 48339
AppSec [candidate] (48.451 ms) : 0, 48451
Remote Config [baseline] (671.905 µs) : 0, 672
Remote Config [candidate] (673.576 µs) : 0, 674
Telemetry [baseline] (7.159 ms) : 0, 7159
Telemetry [candidate] (7.222 ms) : 0, 7222
section iast
BytebuddyAgent [baseline] (764.805 ms) : 0, 764805
BytebuddyAgent [candidate] (766.846 ms) : 0, 766846
GlobalTracer [baseline] (284.422 ms) : 0, 284422
GlobalTracer [candidate] (285.283 ms) : 0, 285283
AppSec [baseline] (46.323 ms) : 0, 46323
AppSec [candidate] (46.226 ms) : 0, 46226
IAST [baseline] (20.813 ms) : 0, 20813
IAST [candidate] (20.323 ms) : 0, 20323
Remote Config [baseline] (599.247 µs) : 0, 599
Remote Config [candidate] (616.837 µs) : 0, 617
Telemetry [baseline] (6.582 ms) : 0, 6582
Telemetry [candidate] (7.324 ms) : 0, 7324
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (757.999 ms) : 0, 757999
BytebuddyAgent [candidate] (758.277 ms) : 0, 758277
GlobalTracer [baseline] (284.624 ms) : 0, 284624
GlobalTracer [candidate] (285.275 ms) : 0, 285275
AppSec [baseline] (46.924 ms) : 0, 46924
AppSec [candidate] (46.985 ms) : 0, 46985
IAST [baseline] (19.157 ms) : 0, 19157
IAST [candidate] (19.21 ms) : 0, 19210
Remote Config [baseline] (587.282 µs) : 0, 587
Remote Config [candidate] (594.001 µs) : 0, 594
Telemetry [baseline] (7.192 ms) : 0, 7192
Telemetry [candidate] (7.928 ms) : 0, 7928
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.26.0-SNAPSHOT~9c0a0772ea, baseline=1.26.0-SNAPSHOT~1878db6329
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.042 s) : 0, 1042092
Total [baseline] (9.329 s) : 0, 9329135
Agent [candidate] (1.044 s) : 0, 1044052
Total [candidate] (9.301 s) : 0, 9300559
section appsec
Agent [baseline] (1.133 s) : 0, 1133312
Total [baseline] (9.451 s) : 0, 9451372
Agent [candidate] (1.131 s) : 0, 1130720
Total [candidate] (9.386 s) : 0, 9386257
section iast
Agent [baseline] (1.158 s) : 0, 1157885
Total [baseline] (9.53 s) : 0, 9529623
Agent [candidate] (1.16 s) : 0, 1160444
Total [candidate] (9.53 s) : 0, 9529904
section profiling
Agent [baseline] (1.234 s) : 0, 1234201
Total [baseline] (9.622 s) : 0, 9621844
Agent [candidate] (1.232 s) : 0, 1232136
Total [candidate] (9.604 s) : 0, 9603809
gantt
title petclinic - break down per module: candidate=1.26.0-SNAPSHOT~9c0a0772ea, baseline=1.26.0-SNAPSHOT~1878db6329
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (645.675 ms) : 0, 645675
BytebuddyAgent [candidate] (645.436 ms) : 0, 645436
GlobalTracer [baseline] (305.889 ms) : 0, 305889
GlobalTracer [candidate] (307.955 ms) : 0, 307955
AppSec [baseline] (48.404 ms) : 0, 48404
AppSec [candidate] (48.508 ms) : 0, 48508
Remote Config [baseline] (673.751 µs) : 0, 674
Remote Config [candidate] (670.426 µs) : 0, 670
Telemetry [baseline] (7.146 ms) : 0, 7146
Telemetry [candidate] (7.221 ms) : 0, 7221
section appsec
BytebuddyAgent [baseline] (647.685 ms) : 0, 647685
BytebuddyAgent [candidate] (645.122 ms) : 0, 645122
GlobalTracer [baseline] (307.263 ms) : 0, 307263
GlobalTracer [candidate] (306.883 ms) : 0, 306883
AppSec [baseline] (136.508 ms) : 0, 136508
AppSec [candidate] (136.515 ms) : 0, 136515
Remote Config [baseline] (644.585 µs) : 0, 645
Remote Config [candidate] (643.716 µs) : 0, 644
Telemetry [baseline] (6.816 ms) : 0, 6816
Telemetry [candidate] (7.421 ms) : 0, 7421
section iast
BytebuddyAgent [baseline] (765.17 ms) : 0, 765170
BytebuddyAgent [candidate] (766.361 ms) : 0, 766361
GlobalTracer [baseline] (284.297 ms) : 0, 284297
GlobalTracer [candidate] (285.361 ms) : 0, 285361
AppSec [baseline] (46.299 ms) : 0, 46299
AppSec [candidate] (46.362 ms) : 0, 46362
IAST [baseline] (19.93 ms) : 0, 19930
IAST [candidate] (19.418 ms) : 0, 19418
Remote Config [baseline] (595.403 µs) : 0, 595
Remote Config [candidate] (601.506 µs) : 0, 602
Telemetry [baseline] (7.234 ms) : 0, 7234
Telemetry [candidate] (8.008 ms) : 0, 8008
section profiling
BytebuddyAgent [baseline] (658.331 ms) : 0, 658331
BytebuddyAgent [candidate] (656.051 ms) : 0, 656051
GlobalTracer [baseline] (376.552 ms) : 0, 376552
GlobalTracer [candidate] (377.475 ms) : 0, 377475
AppSec [baseline] (48.739 ms) : 0, 48739
AppSec [candidate] (48.44 ms) : 0, 48440
Remote Config [baseline] (655.317 µs) : 0, 655
Remote Config [candidate] (660.192 µs) : 0, 660
Telemetry [baseline] (7.355 ms) : 0, 7355
Telemetry [candidate] (7.362 ms) : 0, 7362
ProfilingAgent [baseline] (88.084 ms) : 0, 88084
ProfilingAgent [candidate] (88.07 ms) : 0, 88070
Profiling [baseline] (88.109 ms) : 0, 88109
Profiling [candidate] (88.095 ms) : 0, 88095
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 8 metrics, 14 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.26.0-SNAPSHOT~9c0a0772ea, baseline=1.26.0-SNAPSHOT~1878db6329
dateFormat X
axisFormat %s
section baseline
no_agent (365.65 µs) : 345, 387
. : milestone, 366,
iast (469.392 µs) : 448, 490
. : milestone, 469,
iast_FULL (527.091 µs) : 507, 547
. : milestone, 527,
iast_INACTIVE (445.36 µs) : 424, 466
. : milestone, 445,
iast_TELEMETRY_OFF (463.238 µs) : 442, 484
. : milestone, 463,
tracing (439.054 µs) : 418, 460
. : milestone, 439,
section candidate
no_agent (356.776 µs) : 337, 376
. : milestone, 357,
iast (475.752 µs) : 455, 496
. : milestone, 476,
iast_FULL (533.143 µs) : 513, 554
. : milestone, 533,
iast_INACTIVE (446.975 µs) : 426, 468
. : milestone, 447,
iast_TELEMETRY_OFF (464.591 µs) : 444, 485
. : milestone, 465,
tracing (445.512 µs) : 425, 466
. : milestone, 446,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.26.0-SNAPSHOT~9c0a0772ea, baseline=1.26.0-SNAPSHOT~1878db6329
dateFormat X
axisFormat %s
section baseline
no_agent (1.346 ms) : 1327, 1365
. : milestone, 1346,
appsec (1.743 ms) : 1717, 1768
. : milestone, 1743,
iast (1.531 ms) : 1507, 1555
. : milestone, 1531,
profiling (1.531 ms) : 1505, 1558
. : milestone, 1531,
tracing (1.487 ms) : 1462, 1511
. : milestone, 1487,
section candidate
no_agent (1.348 ms) : 1329, 1367
. : milestone, 1348,
appsec (1.766 ms) : 1742, 1791
. : milestone, 1766,
iast (1.479 ms) : 1454, 1503
. : milestone, 1479,
profiling (1.542 ms) : 1516, 1569
. : milestone, 1542,
tracing (1.458 ms) : 1433, 1483
. : milestone, 1458,
|
romainkomorn-exdatadog
approved these changes
Dec 13, 2023
nikita-tkachenko-datadog
deleted the
nikita-tkachenko/test-module-name-fix
branch
December 13, 2023 10:01
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
Ensures that
test.moduletag value is consistent in test module, test suite and test spans, when using CI Visibility to instrument Maven or Gradle runs.Motivation
If a test suite or a test case belong to a module, it is expected that their
test.moduletag has the same value as the one the their parent module.Additional Notes
When instrumenting Maven or Gradle,
test.modulevalue computation is based on build system logic: for Gradle it is the path of a corresponding task (e.g.:module-name:test), for Maven - project name + plugin name + goal name.When running the tests in a child JVM, it is not possible to compute the same value, so previous version of the code computed module name by calculating current path relative to repository root.
The new version of the code propagates computed value from parent process to child process by setting a system property.
Jira ticket: CIVIS-8291