Skip to content

Fix JMS1 CLIENT_ACKNOWLEDGE flaky test with high scope iteration keep-alive#10798

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 9 commits intomasterfrom
brian.marks/fix-jms1-temporary-topic-flaky-test-v2
Mar 12, 2026
Merged

Fix JMS1 CLIENT_ACKNOWLEDGE flaky test with high scope iteration keep-alive#10798
gh-worker-dd-mergequeue-cf854d[bot] merged 9 commits intomasterfrom
brian.marks/fix-jms1-temporary-topic-flaky-test-v2

Conversation

@bm1549
Copy link
Contributor

@bm1549 bm1549 commented Mar 10, 2026

What Does This Do

Fixes the flaky JMS1 CLIENT_ACKNOWLEDGE manual acknowledgement test by preserving the original two-phase assertion logic while making it deterministic.

Sets SCOPE_ITERATION_KEEP_ALIVE to 10s (high value) to prevent the background scope iteration cleaner from prematurely closing the 3rd consumer span. This ensures:

  • Phase 1: assertTraces(5) — 3 producer + 2 consumer spans (3rd consumer span still open, message not yet acknowledged)
  • Phase 2: After receivedMessage3.acknowledge(), assertTraces(6) — all 3 consumer spans now finished

Motivation

The test was flaky because the default scope iteration keep-alive was short enough that the 3rd consumer span sometimes got cleaned up before the first assertTraces(5) ran, resulting in 6 traces instead of the expected 5. By setting the keep-alive to a high value, we prevent early cleanup and preserve the behavioral verification that consumer spans are tied to the acknowledge lifecycle.

Additional Notes

  • No changes to production code or shared test infrastructure
  • Only the JMS1 CLIENT_ACKNOWLEDGE test method is modified
  • The high keep-alive value does not slow down the test — acknowledge() explicitly finishes the span regardless of the keep-alive timer

tag: no release note
tag: ai generated

Contributor Checklist

🤖 Generated with Claude Code

bm1549 and others added 2 commits March 10, 2026 15:46
…1V1ForkedTest

The TEMPORARY_TOPIC variant of this test has a race condition where the 3rd
consumer trace can complete before acknowledge() is called, yielding 6 traces
instead of the expected 5 at the first assertion point. This is inherent to
the async nature of JMS message processing with TEMPORARY_TOPICs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The "receiving messages from TEMPORARY_TOPIC with manual acknowledgement"
test in JMS1V1ForkedTest was flaky because the scope iteration keep-alive
cleanup (set to 1 second in tests) could finish the 3rd consumer span
before acknowledge() was called, producing 6 traces instead of expected 5.

Root cause: In the legacy context manager path, activateNext() schedules a
root iteration scope cleanup. If this fires before the test's intermediate
assertTraces(5) check, the 3rd consumer trace is already complete.

Fix: Use assertTraces(5, true) for the intermediate assertion to tolerate
additional traces. Also fix ListWriterAssert.ignoreAdditionalTraces to
properly use >= instead of == for the size check, matching the behavior
of the Java TraceAssertions class.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bm1549 bm1549 added tag: flaky test Flaky tests tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes labels Mar 10, 2026
@pr-commenter
Copy link

pr-commenter bot commented Mar 10, 2026

Benchmarks

Startup

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master brian.marks/fix-jms1-temporary-topic-flaky-test-v2
git_commit_date 1773169596 1773281143
git_commit_sha cc12228 5ad44de
release_version 1.61.0-SNAPSHOT~cc122288e5 1.61.0-SNAPSHOT~5ad44de0ec
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1773283131 1773283131
ci_job_id 1499149053 1499149053
ci_pipeline_id 102055948 102055948
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-3r3gtprt 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-3r3gtprt 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 64 metrics, 7 unstable metrics.

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.059 s) : 0, 1058594
Total [baseline] (11.009 s) : 0, 11009051
Agent [candidate] (1.058 s) : 0, 1058120
Total [candidate] (11.053 s) : 0, 11052755
section appsec
Agent [baseline] (1.255 s) : 0, 1254745
Total [baseline] (11.267 s) : 0, 11267140
Agent [candidate] (1.245 s) : 0, 1245232
Total [candidate] (11.048 s) : 0, 11047815
section iast
Agent [baseline] (1.234 s) : 0, 1234325
Total [baseline] (11.324 s) : 0, 11324253
Agent [candidate] (1.23 s) : 0, 1229923
Total [candidate] (11.326 s) : 0, 11326420
section profiling
Agent [baseline] (1.18 s) : 0, 1179661
Total [baseline] (11.033 s) : 0, 11033468
Agent [candidate] (1.189 s) : 0, 1189037
Total [candidate] (11.064 s) : 0, 11064320
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.059 s -
Agent appsec 1.255 s 196.15 ms (18.5%)
Agent iast 1.234 s 175.731 ms (16.6%)
Agent profiling 1.18 s 121.066 ms (11.4%)
Total tracing 11.009 s -
Total appsec 11.267 s 258.089 ms (2.3%)
Total iast 11.324 s 315.202 ms (2.9%)
Total profiling 11.033 s 24.417 ms (0.2%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.058 s -
Agent appsec 1.245 s 187.112 ms (17.7%)
Agent iast 1.23 s 171.803 ms (16.2%)
Agent profiling 1.189 s 130.917 ms (12.4%)
Total tracing 11.053 s -
Total appsec 11.048 s -4.94 ms (-0.0%)
Total iast 11.326 s 273.665 ms (2.5%)
Total profiling 11.064 s 11.566 ms (0.1%)
gantt
    title petclinic - break down per module: candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.187 ms) : 0, 1187
crashtracking [candidate] (1.217 ms) : 0, 1217
BytebuddyAgent [baseline] (626.418 ms) : 0, 626418
BytebuddyAgent [candidate] (626.667 ms) : 0, 626667
AgentMeter [baseline] (29.006 ms) : 0, 29006
AgentMeter [candidate] (29.135 ms) : 0, 29135
GlobalTracer [baseline] (256.525 ms) : 0, 256525
GlobalTracer [candidate] (256.96 ms) : 0, 256960
AppSec [baseline] (31.442 ms) : 0, 31442
AppSec [candidate] (31.521 ms) : 0, 31521
Debugger [baseline] (59.341 ms) : 0, 59341
Debugger [candidate] (59.347 ms) : 0, 59347
Remote Config [baseline] (592.137 µs) : 0, 592
Remote Config [candidate] (594.35 µs) : 0, 594
Telemetry [baseline] (8.632 ms) : 0, 8632
Telemetry [candidate] (8.598 ms) : 0, 8598
Flare Poller [baseline] (9.43 ms) : 0, 9430
Flare Poller [candidate] (8.023 ms) : 0, 8023
section appsec
crashtracking [baseline] (1.202 ms) : 0, 1202
crashtracking [candidate] (1.192 ms) : 0, 1192
BytebuddyAgent [baseline] (663.014 ms) : 0, 663014
BytebuddyAgent [candidate] (657.869 ms) : 0, 657869
AgentMeter [baseline] (12.085 ms) : 0, 12085
AgentMeter [candidate] (12.021 ms) : 0, 12021
GlobalTracer [baseline] (259.856 ms) : 0, 259856
GlobalTracer [candidate] (257.875 ms) : 0, 257875
AppSec [baseline] (178.334 ms) : 0, 178334
AppSec [candidate] (177.256 ms) : 0, 177256
Debugger [baseline] (66.328 ms) : 0, 66328
Debugger [candidate] (65.556 ms) : 0, 65556
Remote Config [baseline] (575.41 µs) : 0, 575
Remote Config [candidate] (583.588 µs) : 0, 584
Telemetry [baseline] (9.122 ms) : 0, 9122
Telemetry [candidate] (9.056 ms) : 0, 9056
Flare Poller [baseline] (3.627 ms) : 0, 3627
Flare Poller [candidate] (3.603 ms) : 0, 3603
IAST [baseline] (24.142 ms) : 0, 24142
IAST [candidate] (23.937 ms) : 0, 23937
section iast
crashtracking [baseline] (1.193 ms) : 0, 1193
crashtracking [candidate] (1.202 ms) : 0, 1202
BytebuddyAgent [baseline] (799.988 ms) : 0, 799988
BytebuddyAgent [candidate] (797.309 ms) : 0, 797309
AgentMeter [baseline] (11.412 ms) : 0, 11412
AgentMeter [candidate] (11.416 ms) : 0, 11416
GlobalTracer [baseline] (249.177 ms) : 0, 249177
GlobalTracer [candidate] (248.364 ms) : 0, 248364
AppSec [baseline] (26.675 ms) : 0, 26675
AppSec [candidate] (26.632 ms) : 0, 26632
Debugger [baseline] (64.09 ms) : 0, 64090
Debugger [candidate] (64.01 ms) : 0, 64010
Remote Config [baseline] (529.321 µs) : 0, 529
Remote Config [candidate] (534.349 µs) : 0, 534
Telemetry [baseline] (14.829 ms) : 0, 14829
Telemetry [candidate] (14.359 ms) : 0, 14359
Flare Poller [baseline] (4.869 ms) : 0, 4869
Flare Poller [candidate] (4.702 ms) : 0, 4702
IAST [baseline] (25.437 ms) : 0, 25437
IAST [candidate] (25.303 ms) : 0, 25303
section profiling
ProfilingAgent [baseline] (93.856 ms) : 0, 93856
ProfilingAgent [candidate] (94.348 ms) : 0, 94348
crashtracking [baseline] (1.179 ms) : 0, 1179
crashtracking [candidate] (1.187 ms) : 0, 1187
BytebuddyAgent [baseline] (680.96 ms) : 0, 680960
BytebuddyAgent [candidate] (686.965 ms) : 0, 686965
AgentMeter [baseline] (8.551 ms) : 0, 8551
AgentMeter [candidate] (8.617 ms) : 0, 8617
GlobalTracer [baseline] (214.988 ms) : 0, 214988
GlobalTracer [candidate] (216.68 ms) : 0, 216680
AppSec [baseline] (31.822 ms) : 0, 31822
AppSec [candidate] (32.193 ms) : 0, 32193
Debugger [baseline] (62.987 ms) : 0, 62987
Debugger [candidate] (64.0 ms) : 0, 64000
Remote Config [baseline] (590.543 µs) : 0, 591
Remote Config [candidate] (594.638 µs) : 0, 595
Telemetry [baseline] (10.501 ms) : 0, 10501
Telemetry [candidate] (8.311 ms) : 0, 8311
Flare Poller [baseline] (3.485 ms) : 0, 3485
Flare Poller [candidate] (5.089 ms) : 0, 5089
Profiling [baseline] (94.423 ms) : 0, 94423
Profiling [candidate] (94.925 ms) : 0, 94925
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5

    dateFormat X
    axisFormat %s
section tracing
Agent [baseline] (1.061 s) : 0, 1060865
Total [baseline] (8.865 s) : 0, 8865249
Agent [candidate] (1.071 s) : 0, 1070755
Total [candidate] (8.846 s) : 0, 8845714
section iast
Agent [baseline] (1.238 s) : 0, 1237894
Total [baseline] (9.573 s) : 0, 9572715
Agent [candidate] (1.23 s) : 0, 1229667
Total [candidate] (9.586 s) : 0, 9585733
Loading
  • baseline results
Module Variant Duration Δ tracing
Agent tracing 1.061 s -
Agent iast 1.238 s 177.029 ms (16.7%)
Total tracing 8.865 s -
Total iast 9.573 s 707.466 ms (8.0%)
  • candidate results
Module Variant Duration Δ tracing
Agent tracing 1.071 s -
Agent iast 1.23 s 158.912 ms (14.8%)
Total tracing 8.846 s -
Total iast 9.586 s 740.019 ms (8.4%)
gantt
    title insecure-bank - break down per module: candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5

    dateFormat X
    axisFormat %s
section tracing
crashtracking [baseline] (1.2 ms) : 0, 1200
crashtracking [candidate] (1.207 ms) : 0, 1207
BytebuddyAgent [baseline] (629.768 ms) : 0, 629768
BytebuddyAgent [candidate] (637.56 ms) : 0, 637560
AgentMeter [baseline] (29.227 ms) : 0, 29227
AgentMeter [candidate] (29.501 ms) : 0, 29501
GlobalTracer [baseline] (257.351 ms) : 0, 257351
GlobalTracer [candidate] (259.887 ms) : 0, 259887
AppSec [baseline] (31.759 ms) : 0, 31759
AppSec [candidate] (32.166 ms) : 0, 32166
Debugger [baseline] (58.869 ms) : 0, 58869
Debugger [candidate] (59.625 ms) : 0, 59625
Remote Config [baseline] (605.313 µs) : 0, 605
Remote Config [candidate] (598.675 µs) : 0, 599
Telemetry [baseline] (8.664 ms) : 0, 8664
Telemetry [candidate] (8.821 ms) : 0, 8821
Flare Poller [baseline] (7.212 ms) : 0, 7212
Flare Poller [candidate] (5.072 ms) : 0, 5072
section iast
crashtracking [baseline] (1.217 ms) : 0, 1217
crashtracking [candidate] (1.195 ms) : 0, 1195
BytebuddyAgent [baseline] (804.415 ms) : 0, 804415
BytebuddyAgent [candidate] (798.061 ms) : 0, 798061
AgentMeter [baseline] (11.602 ms) : 0, 11602
AgentMeter [candidate] (11.303 ms) : 0, 11303
GlobalTracer [baseline] (249.193 ms) : 0, 249193
GlobalTracer [candidate] (248.072 ms) : 0, 248072
IAST [baseline] (25.479 ms) : 0, 25479
IAST [candidate] (25.144 ms) : 0, 25144
AppSec [baseline] (26.726 ms) : 0, 26726
AppSec [candidate] (26.48 ms) : 0, 26480
Debugger [baseline] (62.558 ms) : 0, 62558
Debugger [candidate] (62.889 ms) : 0, 62889
Remote Config [baseline] (523.003 µs) : 0, 523
Remote Config [candidate] (520.533 µs) : 0, 521
Telemetry [baseline] (14.952 ms) : 0, 14952
Telemetry [candidate] (14.978 ms) : 0, 14978
Flare Poller [baseline] (4.904 ms) : 0, 4904
Flare Poller [candidate] (4.933 ms) : 0, 4933
Loading

Load

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master brian.marks/fix-jms1-temporary-topic-flaky-test-v2
git_commit_date 1773169596 1773281143
git_commit_sha cc12228 5ad44de
release_version 1.61.0-SNAPSHOT~cc122288e5 1.61.0-SNAPSHOT~5ad44de0ec
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
ci_job_date 1773283439 1773283439
ci_job_id 1499149055 1499149055
ci_pipeline_id 102055948 102055948
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-168cib4x 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-168cib4x 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 3 performance improvements and 0 performance regressions! Performance is the same for 17 metrics, 16 unstable metrics.

scenario Δ mean agg_http_req_duration_p50 Δ mean agg_http_req_duration_p95 Δ mean throughput candidate mean agg_http_req_duration_p50 candidate mean agg_http_req_duration_p95 candidate mean throughput baseline mean agg_http_req_duration_p50 baseline mean agg_http_req_duration_p95 baseline mean throughput
scenario:load:insecure-bank:iast:high_load better
[-354.544µs; -220.617µs] or [-13.285%; -8.266%]
better
[-989.860µs; -449.665µs] or [-12.611%; -5.729%]
unstable
[-26.453op/s; +293.266op/s] or [-1.977%; +21.915%]
2.381ms 7.129ms 1471.594op/s 2.669ms 7.849ms 1338.188op/s
scenario:load:petclinic:appsec:high_load better
[-1.591ms; -0.815ms] or [-8.229%; -4.214%]
unsure
[-1.903ms; -0.593ms] or [-6.045%; -1.884%]
unstable
[-10.721op/s; +39.533op/s] or [-4.522%; +16.674%]
18.126ms 30.234ms 251.500op/s 19.328ms 31.482ms 237.094op/s
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.19 ms) : 1178, 1202
.   : milestone, 1190,
iast (3.424 ms) : 3377, 3471
.   : milestone, 3424,
iast_FULL (5.858 ms) : 5799, 5916
.   : milestone, 5858,
iast_GLOBAL (3.655 ms) : 3588, 3722
.   : milestone, 3655,
profiling (2.181 ms) : 2161, 2201
.   : milestone, 2181,
tracing (1.766 ms) : 1752, 1781
.   : milestone, 1766,
section candidate
no_agent (1.264 ms) : 1250, 1279
.   : milestone, 1264,
iast (3.106 ms) : 3063, 3150
.   : milestone, 3106,
iast_FULL (5.759 ms) : 5702, 5816
.   : milestone, 5759,
iast_GLOBAL (3.553 ms) : 3499, 3608
.   : milestone, 3553,
profiling (2.231 ms) : 2208, 2253
.   : milestone, 2231,
tracing (1.845 ms) : 1827, 1862
.   : milestone, 1845,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.19 ms [1.178 ms, 1.202 ms] -
iast 3.424 ms [3.377 ms, 3.471 ms] 2.234 ms (187.7%)
iast_FULL 5.858 ms [5.799 ms, 5.916 ms] 4.668 ms (392.3%)
iast_GLOBAL 3.655 ms [3.588 ms, 3.722 ms] 2.465 ms (207.1%)
profiling 2.181 ms [2.161 ms, 2.201 ms] 991.076 µs (83.3%)
tracing 1.766 ms [1.752 ms, 1.781 ms] 576.498 µs (48.4%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 1.264 ms [1.25 ms, 1.279 ms] -
iast 3.106 ms [3.063 ms, 3.15 ms] 1.842 ms (145.7%)
iast_FULL 5.759 ms [5.702 ms, 5.816 ms] 4.495 ms (355.5%)
iast_GLOBAL 3.553 ms [3.499 ms, 3.608 ms] 2.289 ms (181.0%)
profiling 2.231 ms [2.208 ms, 2.253 ms] 966.248 µs (76.4%)
tracing 1.845 ms [1.827 ms, 1.862 ms] 580.229 µs (45.9%)
Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5
    dateFormat X
    axisFormat %s
section baseline
no_agent (19.459 ms) : 19258, 19660
.   : milestone, 19459,
appsec (19.692 ms) : 19487, 19898
.   : milestone, 19692,
code_origins (17.506 ms) : 17333, 17679
.   : milestone, 17506,
iast (17.769 ms) : 17589, 17949
.   : milestone, 17769,
profiling (19.336 ms) : 19144, 19528
.   : milestone, 19336,
tracing (17.759 ms) : 17584, 17935
.   : milestone, 17759,
section candidate
no_agent (18.644 ms) : 18449, 18838
.   : milestone, 18644,
appsec (18.556 ms) : 18365, 18746
.   : milestone, 18556,
code_origins (17.733 ms) : 17560, 17907
.   : milestone, 17733,
iast (17.867 ms) : 17686, 18048
.   : milestone, 17867,
profiling (20.027 ms) : 19822, 20232
.   : milestone, 20027,
tracing (17.459 ms) : 17287, 17630
.   : milestone, 17459,
Loading
  • baseline results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 19.459 ms [19.258 ms, 19.66 ms] -
appsec 19.692 ms [19.487 ms, 19.898 ms] 233.141 µs (1.2%)
code_origins 17.506 ms [17.333 ms, 17.679 ms] -1.953 ms (-10.0%)
iast 17.769 ms [17.589 ms, 17.949 ms] -1.69 ms (-8.7%)
profiling 19.336 ms [19.144 ms, 19.528 ms] -123.614 µs (-0.6%)
tracing 17.759 ms [17.584 ms, 17.935 ms] -1.7 ms (-8.7%)
  • candidate results
Variant Request duration [CI 0.99] Δ no_agent
no_agent 18.644 ms [18.449 ms, 18.838 ms] -
appsec 18.556 ms [18.365 ms, 18.746 ms] -88.211 µs (-0.5%)
code_origins 17.733 ms [17.56 ms, 17.907 ms] -910.66 µs (-4.9%)
iast 17.867 ms [17.686 ms, 18.048 ms] -776.574 µs (-4.2%)
profiling 20.027 ms [19.822 ms, 20.232 ms] 1.384 ms (7.4%)
tracing 17.459 ms [17.287 ms, 17.63 ms] -1.185 ms (-6.4%)

Dacapo

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master brian.marks/fix-jms1-temporary-topic-flaky-test-v2
git_commit_date 1773169596 1773281143
git_commit_sha cc12228 5ad44de
release_version 1.61.0-SNAPSHOT~cc122288e5 1.61.0-SNAPSHOT~5ad44de0ec
See matching parameters
Baseline Candidate
application biojava biojava
ci_job_date 1773283171 1773283171
ci_job_id 1499149057 1499149057
ci_pipeline_id 102055948 102055948
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-t73n6b2f 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-t73n6b2f 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics.

Execution time for biojava
gantt
    title biojava - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5
    dateFormat X
    axisFormat %s
section baseline
no_agent (14.783 s) : 14783000, 14783000
.   : milestone, 14783000,
appsec (14.706 s) : 14706000, 14706000
.   : milestone, 14706000,
iast (18.193 s) : 18193000, 18193000
.   : milestone, 18193000,
iast_GLOBAL (17.819 s) : 17819000, 17819000
.   : milestone, 17819000,
profiling (15.142 s) : 15142000, 15142000
.   : milestone, 15142000,
tracing (15.205 s) : 15205000, 15205000
.   : milestone, 15205000,
section candidate
no_agent (14.982 s) : 14982000, 14982000
.   : milestone, 14982000,
appsec (14.862 s) : 14862000, 14862000
.   : milestone, 14862000,
iast (18.078 s) : 18078000, 18078000
.   : milestone, 18078000,
iast_GLOBAL (17.731 s) : 17731000, 17731000
.   : milestone, 17731000,
profiling (15.425 s) : 15425000, 15425000
.   : milestone, 15425000,
tracing (15.184 s) : 15184000, 15184000
.   : milestone, 15184000,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.783 s [14.783 s, 14.783 s] -
appsec 14.706 s [14.706 s, 14.706 s] -77.0 ms (-0.5%)
iast 18.193 s [18.193 s, 18.193 s] 3.41 s (23.1%)
iast_GLOBAL 17.819 s [17.819 s, 17.819 s] 3.036 s (20.5%)
profiling 15.142 s [15.142 s, 15.142 s] 359.0 ms (2.4%)
tracing 15.205 s [15.205 s, 15.205 s] 422.0 ms (2.9%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 14.982 s [14.982 s, 14.982 s] -
appsec 14.862 s [14.862 s, 14.862 s] -120.0 ms (-0.8%)
iast 18.078 s [18.078 s, 18.078 s] 3.096 s (20.7%)
iast_GLOBAL 17.731 s [17.731 s, 17.731 s] 2.749 s (18.3%)
profiling 15.425 s [15.425 s, 15.425 s] 443.0 ms (3.0%)
tracing 15.184 s [15.184 s, 15.184 s] 202.0 ms (1.3%)
Execution time for tomcat
gantt
    title tomcat - execution time [CI 0.99] : candidate=1.61.0-SNAPSHOT~5ad44de0ec, baseline=1.61.0-SNAPSHOT~cc122288e5
    dateFormat X
    axisFormat %s
section baseline
no_agent (1.477 ms) : 1465, 1488
.   : milestone, 1477,
appsec (3.726 ms) : 3511, 3941
.   : milestone, 3726,
iast (2.249 ms) : 2181, 2318
.   : milestone, 2249,
iast_GLOBAL (2.295 ms) : 2226, 2364
.   : milestone, 2295,
profiling (2.1 ms) : 2043, 2156
.   : milestone, 2100,
tracing (2.057 ms) : 2004, 2110
.   : milestone, 2057,
section candidate
no_agent (1.473 ms) : 1461, 1484
.   : milestone, 1473,
appsec (3.818 ms) : 3597, 4038
.   : milestone, 3818,
iast (2.249 ms) : 2180, 2318
.   : milestone, 2249,
iast_GLOBAL (2.298 ms) : 2229, 2368
.   : milestone, 2298,
profiling (2.067 ms) : 2013, 2121
.   : milestone, 2067,
tracing (2.047 ms) : 1994, 2100
.   : milestone, 2047,
Loading
  • baseline results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.477 ms [1.465 ms, 1.488 ms] -
appsec 3.726 ms [3.511 ms, 3.941 ms] 2.249 ms (152.3%)
iast 2.249 ms [2.181 ms, 2.318 ms] 772.397 µs (52.3%)
iast_GLOBAL 2.295 ms [2.226 ms, 2.364 ms] 817.893 µs (55.4%)
profiling 2.1 ms [2.043 ms, 2.156 ms] 622.892 µs (42.2%)
tracing 2.057 ms [2.004 ms, 2.11 ms] 580.219 µs (39.3%)
  • candidate results
Variant Execution Time [CI 0.99] Δ no_agent
no_agent 1.473 ms [1.461 ms, 1.484 ms] -
appsec 3.818 ms [3.597 ms, 4.038 ms] 2.345 ms (159.2%)
iast 2.249 ms [2.18 ms, 2.318 ms] 776.254 µs (52.7%)
iast_GLOBAL 2.298 ms [2.229 ms, 2.368 ms] 825.601 µs (56.1%)
profiling 2.067 ms [2.013 ms, 2.121 ms] 594.458 µs (40.4%)
tracing 2.047 ms [1.994 ms, 2.1 ms] 574.439 µs (39.0%)

@bm1549 bm1549 marked this pull request as ready for review March 10, 2026 20:53
@bm1549 bm1549 requested review from a team as code owners March 10, 2026 20:53
@bm1549 bm1549 requested a review from ygree March 10, 2026 20:53
Copy link
Contributor

@ygree ygree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't seem right to simply adjust the assertion to make it pass. The original comment clearly stated that only two consumption traces were supposed to be finished, perhaps because only two messages were acknowledged.

bm1549 and others added 6 commits March 11, 2026 19:47
…alive

Set SCOPE_ITERATION_KEEP_ALIVE to 1ms in the manual acknowledgement test
so the 3rd consumer span is always cleaned up before assertion, making
the test deterministic with assertTraces(6) instead of tolerating 5 or 6.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The 3rd consumer span needs acknowledge() to complete before
assertTraces(6) can succeed. SCOPE_ITERATION_KEEP_ALIVE alone
is not sufficient — the acknowledge triggers the span to finish.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…iness

Set SCOPE_ITERATION_KEEP_ALIVE to 10s to prevent early cleanup of the
3rd consumer span. This makes the test deterministic:
- Phase 1: 5 traces (3rd consumer span still open, not yet acknowledged)
- Phase 2: 6 traces (after receivedMessage3.acknowledge())

The original flakiness was caused by the default keep-alive being short
enough that the 3rd consumer span sometimes got cleaned up before the
first assertion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bm1549 bm1549 changed the title Fix JMS1 CLIENT_ACKNOWLEDGE flaky test by tolerating early scope cleanup Fix JMS1 CLIENT_ACKNOWLEDGE flaky test with high scope iteration keep-alive Mar 12, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bm1549 bm1549 requested a review from ygree March 12, 2026 13:50
@bm1549
Copy link
Contributor Author

bm1549 commented Mar 12, 2026

@ygree good call out. I got a more deterministic reproduction by setting SCOPE_ITERATION_KEEP_ALIVE to a much lower value, causing the cleanup to always happen and show 6 spans at all times. After getting that, I set it to a ridiculously large value so that it will never trigger, even in the worst of infra issues

Take another look and let me know what you think

Copy link
Contributor

@ygree ygree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! Thanks!

@bm1549 bm1549 added this pull request to the merge queue Mar 12, 2026
@dd-octo-sts
Copy link
Contributor

dd-octo-sts bot commented Mar 12, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link

gh-worker-devflow-routing-ef8351 bot commented Mar 12, 2026

View all feedbacks in Devflow UI.

2026-03-12 21:15:41 UTC ℹ️ Start processing command /merge


2026-03-12 21:15:46 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 2h (p90).


2026-03-12 22:16:18 UTC ℹ️ MergeQueue: This merge request was merged

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 12, 2026
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot merged commit e3ef803 into master Mar 12, 2026
574 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot deleted the brian.marks/fix-jms1-temporary-topic-flaky-test-v2 branch March 12, 2026 22:16
@github-actions github-actions bot added this to the 1.61.0 milestone Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tag: ai generated Largely based on code generated by an AI or LLM tag: flaky test Flaky tests tag: no release notes Changes to exclude from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants