Tag intermediate initializationError retries with test.final_status=skip in JUnit XML#11010
Open
cbeauchesne wants to merge 17 commits intomasterfrom
Open
Tag intermediate initializationError retries with test.final_status=skip in JUnit XML#11010cbeauchesne wants to merge 17 commits intomasterfrom
initializationError retries with test.final_status=skip in JUnit XML#11010cbeauchesne wants to merge 17 commits intomasterfrom
Conversation
bric3
reviewed
Mar 31, 2026
buildSrc/src/main/kotlin/dd-trace-java.configure-tests.gradle.kts
Outdated
Show resolved
Hide resolved
buildSrc/src/main/kotlin/dd-trace-java.configure-tests.gradle.kts
Outdated
Show resolved
Hide resolved
buildSrc/src/main/kotlin/dd-trace-java.configure-tests.gradle.kts
Outdated
Show resolved
Hide resolved
eb73143 to
fc75f5f
Compare
Contributor
|
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
initializationError retries with test.final_status=skip in JUnit XML
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 12 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.063 s) : 0, 1062966
Total [baseline] (8.862 s) : 0, 8861779
Agent [candidate] (1.057 s) : 0, 1057325
Total [candidate] (8.85 s) : 0, 8849764
section iast
Agent [baseline] (1.225 s) : 0, 1225192
Total [baseline] (9.616 s) : 0, 9615607
Agent [candidate] (1.229 s) : 0, 1229113
Total [candidate] (9.609 s) : 0, 9609457
gantt
title insecure-bank - break down per module: candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.247 ms) : 0, 1247
crashtracking [candidate] (1.224 ms) : 0, 1224
BytebuddyAgent [baseline] (636.572 ms) : 0, 636572
BytebuddyAgent [candidate] (632.871 ms) : 0, 632871
AgentMeter [baseline] (29.576 ms) : 0, 29576
AgentMeter [candidate] (29.332 ms) : 0, 29332
GlobalTracer [baseline] (249.618 ms) : 0, 249618
GlobalTracer [candidate] (248.706 ms) : 0, 248706
AppSec [baseline] (32.234 ms) : 0, 32234
AppSec [candidate] (32.124 ms) : 0, 32124
Debugger [baseline] (59.618 ms) : 0, 59618
Debugger [candidate] (59.256 ms) : 0, 59256
Remote Config [baseline] (604.483 µs) : 0, 604
Remote Config [candidate] (592.683 µs) : 0, 593
Telemetry [baseline] (8.096 ms) : 0, 8096
Telemetry [candidate] (8.082 ms) : 0, 8082
Flare Poller [baseline] (9.222 ms) : 0, 9222
Flare Poller [candidate] (9.124 ms) : 0, 9124
section iast
crashtracking [baseline] (1.236 ms) : 0, 1236
crashtracking [candidate] (1.233 ms) : 0, 1233
BytebuddyAgent [baseline] (801.781 ms) : 0, 801781
BytebuddyAgent [candidate] (806.176 ms) : 0, 806176
AgentMeter [baseline] (11.356 ms) : 0, 11356
AgentMeter [candidate] (11.427 ms) : 0, 11427
GlobalTracer [baseline] (239.47 ms) : 0, 239470
GlobalTracer [candidate] (239.647 ms) : 0, 239647
IAST [baseline] (26.676 ms) : 0, 26676
IAST [candidate] (25.836 ms) : 0, 25836
AppSec [baseline] (31.243 ms) : 0, 31243
AppSec [candidate] (30.937 ms) : 0, 30937
Debugger [baseline] (61.12 ms) : 0, 61120
Debugger [candidate] (61.307 ms) : 0, 61307
Remote Config [baseline] (1.124 ms) : 0, 1124
Remote Config [candidate] (1.684 ms) : 0, 1684
Telemetry [baseline] (11.395 ms) : 0, 11395
Telemetry [candidate] (11.147 ms) : 0, 11147
Flare Poller [baseline] (3.47 ms) : 0, 3470
Flare Poller [candidate] (3.511 ms) : 0, 3511
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.069 s) : 0, 1068636
Total [baseline] (11.136 s) : 0, 11136415
Agent [candidate] (1.055 s) : 0, 1054993
Total [candidate] (11.183 s) : 0, 11183409
section appsec
Agent [baseline] (1.259 s) : 0, 1258670
Total [baseline] (11.118 s) : 0, 11118174
Agent [candidate] (1.256 s) : 0, 1255729
Total [candidate] (11.214 s) : 0, 11213536
section iast
Agent [baseline] (1.226 s) : 0, 1225692
Total [baseline] (11.298 s) : 0, 11298146
Agent [candidate] (1.221 s) : 0, 1221022
Total [candidate] (11.327 s) : 0, 11327266
section profiling
Agent [baseline] (1.188 s) : 0, 1188286
Total [baseline] (11.107 s) : 0, 11106972
Agent [candidate] (1.183 s) : 0, 1182927
Total [candidate] (11.169 s) : 0, 11168712
gantt
title petclinic - break down per module: candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.239 ms) : 0, 1239
crashtracking [candidate] (1.223 ms) : 0, 1223
BytebuddyAgent [baseline] (637.908 ms) : 0, 637908
BytebuddyAgent [candidate] (631.345 ms) : 0, 631345
AgentMeter [baseline] (29.833 ms) : 0, 29833
AgentMeter [candidate] (29.316 ms) : 0, 29316
GlobalTracer [baseline] (251.446 ms) : 0, 251446
GlobalTracer [candidate] (248.56 ms) : 0, 248560
AppSec [baseline] (32.406 ms) : 0, 32406
AppSec [candidate] (31.913 ms) : 0, 31913
Debugger [baseline] (60.782 ms) : 0, 60782
Debugger [candidate] (59.781 ms) : 0, 59781
Remote Config [baseline] (611.485 µs) : 0, 611
Remote Config [candidate] (596.318 µs) : 0, 596
Telemetry [baseline] (8.211 ms) : 0, 8211
Telemetry [candidate] (8.117 ms) : 0, 8117
Flare Poller [baseline] (9.869 ms) : 0, 9869
Flare Poller [candidate] (8.049 ms) : 0, 8049
section appsec
crashtracking [baseline] (1.276 ms) : 0, 1276
crashtracking [candidate] (1.226 ms) : 0, 1226
BytebuddyAgent [baseline] (670.817 ms) : 0, 670817
BytebuddyAgent [candidate] (667.035 ms) : 0, 667035
AgentMeter [baseline] (12.183 ms) : 0, 12183
AgentMeter [candidate] (12.109 ms) : 0, 12109
GlobalTracer [baseline] (249.322 ms) : 0, 249322
GlobalTracer [candidate] (250.324 ms) : 0, 250324
AppSec [baseline] (184.628 ms) : 0, 184628
AppSec [candidate] (184.937 ms) : 0, 184937
Debugger [baseline] (66.429 ms) : 0, 66429
Debugger [candidate] (65.966 ms) : 0, 65966
Remote Config [baseline] (599.045 µs) : 0, 599
Remote Config [candidate] (604.143 µs) : 0, 604
Telemetry [baseline] (8.525 ms) : 0, 8525
Telemetry [candidate] (8.839 ms) : 0, 8839
Flare Poller [baseline] (3.546 ms) : 0, 3546
Flare Poller [candidate] (3.607 ms) : 0, 3607
IAST [baseline] (24.684 ms) : 0, 24684
IAST [candidate] (24.666 ms) : 0, 24666
section iast
crashtracking [baseline] (1.225 ms) : 0, 1225
crashtracking [candidate] (1.217 ms) : 0, 1217
BytebuddyAgent [baseline] (802.506 ms) : 0, 802506
BytebuddyAgent [candidate] (798.199 ms) : 0, 798199
AgentMeter [baseline] (11.396 ms) : 0, 11396
AgentMeter [candidate] (11.36 ms) : 0, 11360
GlobalTracer [baseline] (239.613 ms) : 0, 239613
GlobalTracer [candidate] (238.422 ms) : 0, 238422
AppSec [baseline] (31.851 ms) : 0, 31851
AppSec [candidate] (30.183 ms) : 0, 30183
Debugger [baseline] (61.999 ms) : 0, 61999
Debugger [candidate] (60.863 ms) : 0, 60863
Remote Config [baseline] (539.832 µs) : 0, 540
Remote Config [candidate] (535.146 µs) : 0, 535
Telemetry [baseline] (10.994 ms) : 0, 10994
Telemetry [candidate] (13.823 ms) : 0, 13823
Flare Poller [baseline] (3.436 ms) : 0, 3436
Flare Poller [candidate] (3.758 ms) : 0, 3758
IAST [baseline] (25.827 ms) : 0, 25827
IAST [candidate] (26.591 ms) : 0, 26591
section profiling
ProfilingAgent [baseline] (94.561 ms) : 0, 94561
ProfilingAgent [candidate] (93.652 ms) : 0, 93652
crashtracking [baseline] (1.186 ms) : 0, 1186
crashtracking [candidate] (1.178 ms) : 0, 1178
BytebuddyAgent [baseline] (693.668 ms) : 0, 693668
BytebuddyAgent [candidate] (691.053 ms) : 0, 691053
AgentMeter [baseline] (9.096 ms) : 0, 9096
AgentMeter [candidate] (9.101 ms) : 0, 9101
GlobalTracer [baseline] (207.641 ms) : 0, 207641
GlobalTracer [candidate] (206.869 ms) : 0, 206869
AppSec [baseline] (32.632 ms) : 0, 32632
AppSec [candidate] (32.492 ms) : 0, 32492
Debugger [baseline] (65.976 ms) : 0, 65976
Debugger [candidate] (65.477 ms) : 0, 65477
Remote Config [baseline] (576.894 µs) : 0, 577
Remote Config [candidate] (562.728 µs) : 0, 563
Telemetry [baseline] (7.925 ms) : 0, 7925
Telemetry [candidate] (7.847 ms) : 0, 7847
Flare Poller [baseline] (3.601 ms) : 0, 3601
Flare Poller [candidate] (3.516 ms) : 0, 3516
Profiling [baseline] (95.143 ms) : 0, 95143
Profiling [candidate] (94.219 ms) : 0, 94219
LoadParameters
See matching parameters
SummaryFound 3 performance improvements and 1 performance regressions! Performance is the same for 17 metrics, 15 unstable metrics.
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section baseline
no_agent (1.241 ms) : 1230, 1253
. : milestone, 1241,
iast (3.423 ms) : 3372, 3474
. : milestone, 3423,
iast_FULL (5.88 ms) : 5821, 5940
. : milestone, 5880,
iast_GLOBAL (3.7 ms) : 3640, 3760
. : milestone, 3700,
profiling (2.386 ms) : 2362, 2411
. : milestone, 2386,
tracing (1.848 ms) : 1833, 1863
. : milestone, 1848,
section candidate
no_agent (1.332 ms) : 1317, 1347
. : milestone, 1332,
iast (3.271 ms) : 3223, 3318
. : milestone, 3271,
iast_FULL (6.26 ms) : 6195, 6325
. : milestone, 6260,
iast_GLOBAL (3.741 ms) : 3681, 3800
. : milestone, 3741,
profiling (2.125 ms) : 2107, 2143
. : milestone, 2125,
tracing (1.948 ms) : 1930, 1967
. : milestone, 1948,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section baseline
no_agent (19.694 ms) : 19491, 19897
. : milestone, 19694,
appsec (18.515 ms) : 18328, 18703
. : milestone, 18515,
code_origins (17.887 ms) : 17708, 18065
. : milestone, 17887,
iast (18.132 ms) : 17954, 18309
. : milestone, 18132,
profiling (18.623 ms) : 18441, 18804
. : milestone, 18623,
tracing (17.93 ms) : 17750, 18109
. : milestone, 17930,
section candidate
no_agent (18.355 ms) : 18167, 18544
. : milestone, 18355,
appsec (18.748 ms) : 18560, 18936
. : milestone, 18748,
code_origins (18.012 ms) : 17833, 18192
. : milestone, 18012,
iast (18.514 ms) : 18330, 18697
. : milestone, 18514,
profiling (19.18 ms) : 18990, 19370
. : milestone, 19180,
tracing (17.982 ms) : 17805, 18158
. : milestone, 17982,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section baseline
no_agent (15.006 s) : 15006000, 15006000
. : milestone, 15006000,
appsec (14.708 s) : 14708000, 14708000
. : milestone, 14708000,
iast (18.496 s) : 18496000, 18496000
. : milestone, 18496000,
iast_GLOBAL (18.119 s) : 18119000, 18119000
. : milestone, 18119000,
profiling (14.872 s) : 14872000, 14872000
. : milestone, 14872000,
tracing (15.263 s) : 15263000, 15263000
. : milestone, 15263000,
section candidate
no_agent (15.498 s) : 15498000, 15498000
. : milestone, 15498000,
appsec (14.812 s) : 14812000, 14812000
. : milestone, 14812000,
iast (17.964 s) : 17964000, 17964000
. : milestone, 17964000,
iast_GLOBAL (18.249 s) : 18249000, 18249000
. : milestone, 18249000,
profiling (14.782 s) : 14782000, 14782000
. : milestone, 14782000,
tracing (14.962 s) : 14962000, 14962000
. : milestone, 14962000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~eed685e483, baseline=1.62.0-SNAPSHOT~4b85865643
dateFormat X
axisFormat %s
section baseline
no_agent (1.491 ms) : 1480, 1503
. : milestone, 1491,
appsec (3.852 ms) : 3629, 4075
. : milestone, 3852,
iast (2.269 ms) : 2200, 2339
. : milestone, 2269,
iast_GLOBAL (2.318 ms) : 2248, 2387
. : milestone, 2318,
profiling (2.112 ms) : 2057, 2168
. : milestone, 2112,
tracing (2.083 ms) : 2029, 2137
. : milestone, 2083,
section candidate
no_agent (1.491 ms) : 1480, 1503
. : milestone, 1491,
appsec (3.746 ms) : 3530, 3962
. : milestone, 3746,
iast (2.273 ms) : 2204, 2343
. : milestone, 2273,
iast_GLOBAL (2.319 ms) : 2249, 2388
. : milestone, 2319,
profiling (2.101 ms) : 2046, 2156
. : milestone, 2101,
tracing (2.088 ms) : 2034, 2142
. : milestone, 2088,
|
bric3
reviewed
Apr 9, 2026
Co-authored-by: Brice Dutheil <brice.dutheil@gmail.com>
Co-authored-by: Brice Dutheil <brice.dutheil@gmail.com>
Co-authored-by: Brice Dutheil <brice.dutheil@gmail.com>
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.
Motivation
When a JUnit setup method (e.g. @BeforeAll) fails and is retried via Gradle's retry plugin, Gradle generates a synthetic
<testcase name="initializationError">for each attempt. If the final retry succeeds, the build passes, but Test Optimization receives all intermediate failure entries with no indication that they were retried, making them appear as genuine failures in the dashboard.What Does This Do
Add a doLast post-processor to every Test task that rewrites the JUnit XML reports after execution. For any suite with multiple
initializationErrortestcases (i.e. retries occurred), all entries except the last one are tagged with:The last entry is left unmodified, allowing Test Optimization to apply its default status inference based on the actual outcome. Files with only one (or zero) initializationError testcases are not modified.
The post-processor runs as a doLast action directly on the test task, keeping it within the task's up-to-date and caching scope so it doesn't interfere with downstream consumers of the JUnit reports.
Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]
Note: Once your PR is ready to merge, add it to the merge queue by commenting
/merge./merge -ccancels the queue request./merge -f --reason "reason"skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.