-
Notifications
You must be signed in to change notification settings - Fork 283
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
Added test suite level visibility for JUnit 3.8 test cases #6320
Merged
nikita-tkachenko-datadog
merged 1 commit into
master
from
nikita-tkachenko/fix-junit-38-test-cases
Dec 7, 2023
Merged
Added test suite level visibility for JUnit 3.8 test cases #6320
nikita-tkachenko-datadog
merged 1 commit into
master
from
nikita-tkachenko/fix-junit-38-test-cases
Dec 7, 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
the
comp: ci visibility
Continuous Integration Visibility
label
Dec 5, 2023
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 47 metrics, 7 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.26.0-SNAPSHOT~5b2777a951, baseline=1.26.0-SNAPSHOT~d3754fe8b0
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.049 s) : 0, 1049279
Total [baseline] (8.702 s) : 0, 8701842
Agent [candidate] (1.051 s) : 0, 1051134
Total [candidate] (8.686 s) : 0, 8685890
section iast
Agent [baseline] (1.159 s) : 0, 1159249
Total [baseline] (9.258 s) : 0, 9258365
Agent [candidate] (1.161 s) : 0, 1160975
Total [candidate] (9.267 s) : 0, 9267147
section iast_TELEMETRY_OFF
Agent [baseline] (1.155 s) : 0, 1154957
Total [baseline] (9.237 s) : 0, 9237253
Agent [candidate] (1.155 s) : 0, 1154951
Total [candidate] (9.244 s) : 0, 9243632
gantt
title insecure-bank - break down per module: candidate=1.26.0-SNAPSHOT~5b2777a951, baseline=1.26.0-SNAPSHOT~d3754fe8b0
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (649.773 ms) : 0, 649773
BytebuddyAgent [candidate] (650.923 ms) : 0, 650923
GlobalTracer [baseline] (308.363 ms) : 0, 308363
GlobalTracer [candidate] (308.844 ms) : 0, 308844
AppSec [baseline] (48.633 ms) : 0, 48633
AppSec [candidate] (49.041 ms) : 0, 49041
Remote Config [baseline] (682.744 µs) : 0, 683
Remote Config [candidate] (681.657 µs) : 0, 682
Telemetry [baseline] (7.277 ms) : 0, 7277
Telemetry [candidate] (7.195 ms) : 0, 7195
section iast
BytebuddyAgent [baseline] (765.993 ms) : 0, 765993
BytebuddyAgent [candidate] (766.306 ms) : 0, 766306
GlobalTracer [baseline] (284.272 ms) : 0, 284272
GlobalTracer [candidate] (285.409 ms) : 0, 285409
AppSec [baseline] (46.304 ms) : 0, 46304
AppSec [candidate] (46.678 ms) : 0, 46678
IAST [baseline] (21.092 ms) : 0, 21092
IAST [candidate] (20.959 ms) : 0, 20959
Remote Config [baseline] (614.184 µs) : 0, 614
Remote Config [candidate] (629.081 µs) : 0, 629
Telemetry [baseline] (6.619 ms) : 0, 6619
Telemetry [candidate] (6.625 ms) : 0, 6625
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (760.421 ms) : 0, 760421
BytebuddyAgent [candidate] (759.709 ms) : 0, 759709
GlobalTracer [baseline] (285.617 ms) : 0, 285617
GlobalTracer [candidate] (286.125 ms) : 0, 286125
AppSec [baseline] (47.097 ms) : 0, 47097
AppSec [candidate] (46.355 ms) : 0, 46355
IAST [baseline] (18.181 ms) : 0, 18181
IAST [candidate] (18.34 ms) : 0, 18340
Remote Config [baseline] (636.145 µs) : 0, 636
Remote Config [candidate] (598.017 µs) : 0, 598
Telemetry [baseline] (8.619 ms) : 0, 8619
Telemetry [candidate] (9.516 ms) : 0, 9516
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.26.0-SNAPSHOT~5b2777a951, baseline=1.26.0-SNAPSHOT~d3754fe8b0
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.045 s) : 0, 1045370
Total [baseline] (9.335 s) : 0, 9335290
Agent [candidate] (1.056 s) : 0, 1055644
Total [candidate] (9.359 s) : 0, 9359067
section appsec
Agent [baseline] (1.137 s) : 0, 1137144
Total [baseline] (9.439 s) : 0, 9438627
Agent [candidate] (1.132 s) : 0, 1132389
Total [candidate] (9.395 s) : 0, 9394713
section iast
Agent [baseline] (1.167 s) : 0, 1166794
Total [baseline] (9.6 s) : 0, 9600075
Agent [candidate] (1.163 s) : 0, 1163199
Total [candidate] (9.584 s) : 0, 9583876
section profiling
Agent [baseline] (1.232 s) : 0, 1232228
Total [baseline] (9.623 s) : 0, 9623138
Agent [candidate] (1.238 s) : 0, 1237644
Total [candidate] (9.636 s) : 0, 9635753
gantt
title petclinic - break down per module: candidate=1.26.0-SNAPSHOT~5b2777a951, baseline=1.26.0-SNAPSHOT~d3754fe8b0
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (648.618 ms) : 0, 648618
BytebuddyAgent [candidate] (654.481 ms) : 0, 654481
GlobalTracer [baseline] (305.826 ms) : 0, 305826
GlobalTracer [candidate] (309.442 ms) : 0, 309442
AppSec [baseline] (48.609 ms) : 0, 48609
AppSec [candidate] (49.1 ms) : 0, 49100
Remote Config [baseline] (670.655 µs) : 0, 671
Remote Config [candidate] (690.315 µs) : 0, 690
Telemetry [baseline] (7.104 ms) : 0, 7104
Telemetry [candidate] (7.193 ms) : 0, 7193
section appsec
BytebuddyAgent [baseline] (649.428 ms) : 0, 649428
BytebuddyAgent [candidate] (646.567 ms) : 0, 646567
GlobalTracer [baseline] (308.152 ms) : 0, 308152
GlobalTracer [candidate] (307.161 ms) : 0, 307161
AppSec [baseline] (137.396 ms) : 0, 137396
AppSec [candidate] (136.303 ms) : 0, 136303
Remote Config [baseline] (644.14 µs) : 0, 644
Remote Config [candidate] (640.549 µs) : 0, 641
Telemetry [baseline] (6.859 ms) : 0, 6859
Telemetry [candidate] (7.415 ms) : 0, 7415
section iast
BytebuddyAgent [baseline] (770.456 ms) : 0, 770456
BytebuddyAgent [candidate] (768.967 ms) : 0, 768967
GlobalTracer [baseline] (286.636 ms) : 0, 286636
GlobalTracer [candidate] (286.095 ms) : 0, 286095
AppSec [baseline] (46.209 ms) : 0, 46209
AppSec [candidate] (46.325 ms) : 0, 46325
Remote Config [baseline] (603.211 µs) : 0, 603
Remote Config [candidate] (595.925 µs) : 0, 596
Telemetry [baseline] (6.506 ms) : 0, 6506
Telemetry [candidate] (6.588 ms) : 0, 6588
IAST [baseline] (21.764 ms) : 0, 21764
IAST [candidate] (20.214 ms) : 0, 20214
section profiling
BytebuddyAgent [baseline] (656.193 ms) : 0, 656193
BytebuddyAgent [candidate] (661.317 ms) : 0, 661317
GlobalTracer [baseline] (377.178 ms) : 0, 377178
GlobalTracer [candidate] (376.894 ms) : 0, 376894
AppSec [baseline] (48.317 ms) : 0, 48317
AppSec [candidate] (48.442 ms) : 0, 48442
Remote Config [baseline] (658.496 µs) : 0, 658
Remote Config [candidate] (670.811 µs) : 0, 671
Telemetry [baseline] (7.305 ms) : 0, 7305
Telemetry [candidate] (7.366 ms) : 0, 7366
ProfilingAgent [baseline] (88.534 ms) : 0, 88534
ProfilingAgent [candidate] (88.237 ms) : 0, 88237
Profiling [baseline] (88.559 ms) : 0, 88559
Profiling [candidate] (88.264 ms) : 0, 88264
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~5b2777a951, baseline=1.26.0-SNAPSHOT~d3754fe8b0
dateFormat X
axisFormat %s
section baseline
no_agent (366.552 µs) : 347, 386
. : milestone, 367,
iast (466.816 µs) : 447, 487
. : milestone, 467,
iast_FULL (537.436 µs) : 517, 558
. : milestone, 537,
iast_INACTIVE (439.99 µs) : 419, 461
. : milestone, 440,
iast_TELEMETRY_OFF (476.887 µs) : 456, 497
. : milestone, 477,
tracing (435.582 µs) : 415, 456
. : milestone, 436,
section candidate
no_agent (365.362 µs) : 345, 386
. : milestone, 365,
iast (473.28 µs) : 453, 494
. : milestone, 473,
iast_FULL (530.423 µs) : 510, 551
. : milestone, 530,
iast_INACTIVE (454.117 µs) : 433, 475
. : milestone, 454,
iast_TELEMETRY_OFF (461.311 µs) : 441, 482
. : milestone, 461,
tracing (434.748 µs) : 414, 455
. : milestone, 435,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.26.0-SNAPSHOT~5b2777a951, baseline=1.26.0-SNAPSHOT~d3754fe8b0
dateFormat X
axisFormat %s
section baseline
no_agent (1.349 ms) : 1330, 1368
. : milestone, 1349,
appsec (1.754 ms) : 1729, 1779
. : milestone, 1754,
iast (1.525 ms) : 1500, 1549
. : milestone, 1525,
profiling (1.503 ms) : 1478, 1528
. : milestone, 1503,
tracing (1.501 ms) : 1476, 1526
. : milestone, 1501,
section candidate
no_agent (1.346 ms) : 1327, 1366
. : milestone, 1346,
appsec (1.741 ms) : 1715, 1766
. : milestone, 1741,
iast (1.512 ms) : 1488, 1537
. : milestone, 1512,
profiling (1.518 ms) : 1493, 1543
. : milestone, 1518,
tracing (1.503 ms) : 1478, 1527
. : milestone, 1503,
|
romainkomorndatadog
approved these changes
Dec 7, 2023
nikita-tkachenko-datadog
deleted the
nikita-tkachenko/fix-junit-38-test-cases
branch
December 7, 2023 18:06
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
Add CI Visibility support for JUnit 3-style test cases: the ones that extend
junit.framework.TestCase
rather than using the standard@Test
JUnit 4 annotation.The missing piece for those test cases were test suite started/finished events, which JUnit does not emit.
Custom events were added by instrumenting JUnit 3.8 runner.
Motivation
Although this is not the recommended way of creating test cases, JUnit 4 supports it.
There are projects that contain such tests (so far one Datadog customer and one internal dogfooding repo)
Additional Notes
In scope of this PR
Junit4Utils
class was refactored to useMethodHandles
helper instead of the boilerplate reflection code.Jira ticket: CIVIS-8237