-
Notifications
You must be signed in to change notification settings - Fork 292
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
Do not abort CI Visibility spans dispatch on interrupt #6926
Do not abort CI Visibility spans dispatch on interrupt #6926
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 51 metrics, 12 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.074 s) : 0, 1073718
Total [baseline] (8.546 s) : 0, 8545576
Agent [candidate] (1.075 s) : 0, 1074669
Total [candidate] (8.544 s) : 0, 8544000
section iast
Agent [baseline] (1.198 s) : 0, 1197659
Total [baseline] (9.018 s) : 0, 9017683
Agent [candidate] (1.215 s) : 0, 1215156
Total [candidate] (9.042 s) : 0, 9041511
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.206 s) : 0, 1205983
Total [baseline] (9.013 s) : 0, 9013192
Agent [candidate] (1.207 s) : 0, 1207005
Total [candidate] (9.02 s) : 0, 9019848
section iast_TELEMETRY_OFF
Agent [baseline] (1.195 s) : 0, 1195287
Total [baseline] (9.0 s) : 0, 9000473
Agent [candidate] (1.197 s) : 0, 1197262
Total [candidate] (9.012 s) : 0, 9011856
gantt
title insecure-bank - break down per module: candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (672.503 ms) : 0, 672503
BytebuddyAgent [candidate] (672.954 ms) : 0, 672954
GlobalTracer [baseline] (309.512 ms) : 0, 309512
GlobalTracer [candidate] (309.539 ms) : 0, 309539
AppSec [baseline] (49.16 ms) : 0, 49160
AppSec [candidate] (49.519 ms) : 0, 49519
Remote Config [baseline] (655.605 µs) : 0, 656
Remote Config [candidate] (657.286 µs) : 0, 657
Telemetry [baseline] (7.547 ms) : 0, 7547
Telemetry [candidate] (7.648 ms) : 0, 7648
section iast
BytebuddyAgent [baseline] (793.403 ms) : 0, 793403
BytebuddyAgent [candidate] (806.458 ms) : 0, 806458
GlobalTracer [baseline] (287.747 ms) : 0, 287747
GlobalTracer [candidate] (291.778 ms) : 0, 291778
AppSec [baseline] (48.046 ms) : 0, 48046
AppSec [candidate] (51.055 ms) : 0, 51055
IAST [baseline] (25.478 ms) : 0, 25478
IAST [candidate] (23.447 ms) : 0, 23447
Remote Config [baseline] (567.268 µs) : 0, 567
Remote Config [candidate] (589.656 µs) : 0, 590
Telemetry [baseline] (8.137 ms) : 0, 8137
Telemetry [candidate] (6.758 ms) : 0, 6758
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (799.03 ms) : 0, 799030
BytebuddyAgent [candidate] (800.775 ms) : 0, 800775
GlobalTracer [baseline] (289.604 ms) : 0, 289604
GlobalTracer [candidate] (290.045 ms) : 0, 290045
AppSec [baseline] (50.734 ms) : 0, 50734
AppSec [candidate] (51.65 ms) : 0, 51650
IAST [baseline] (24.037 ms) : 0, 24037
IAST [candidate] (22.01 ms) : 0, 22010
Remote Config [baseline] (595.458 µs) : 0, 595
Remote Config [candidate] (561.883 µs) : 0, 562
Telemetry [baseline] (7.41 ms) : 0, 7410
Telemetry [candidate] (7.336 ms) : 0, 7336
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (791.313 ms) : 0, 791313
BytebuddyAgent [candidate] (793.095 ms) : 0, 793095
GlobalTracer [baseline] (288.147 ms) : 0, 288147
GlobalTracer [candidate] (288.475 ms) : 0, 288475
AppSec [baseline] (49.496 ms) : 0, 49496
AppSec [candidate] (50.183 ms) : 0, 50183
IAST [baseline] (23.317 ms) : 0, 23317
IAST [candidate] (23.881 ms) : 0, 23881
Remote Config [baseline] (583.26 µs) : 0, 583
Remote Config [candidate] (577.863 µs) : 0, 578
Telemetry [baseline] (8.047 ms) : 0, 8047
Telemetry [candidate] (6.598 ms) : 0, 6598
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.082 s) : 0, 1081506
Total [baseline] (10.379 s) : 0, 10378589
Agent [candidate] (1.074 s) : 0, 1073608
Total [candidate] (10.305 s) : 0, 10304926
section appsec
Agent [baseline] (1.195 s) : 0, 1194717
Total [baseline] (10.488 s) : 0, 10487798
Agent [candidate] (1.196 s) : 0, 1195828
Total [candidate] (10.533 s) : 0, 10533215
section iast
Agent [baseline] (1.2 s) : 0, 1200383
Total [baseline] (10.746 s) : 0, 10746051
Agent [candidate] (1.207 s) : 0, 1206891
Total [candidate] (10.813 s) : 0, 10812664
section profiling
Agent [baseline] (1.271 s) : 0, 1270942
Total [baseline] (10.586 s) : 0, 10585948
Agent [candidate] (1.268 s) : 0, 1268465
Total [candidate] (10.619 s) : 0, 10619253
gantt
title petclinic - break down per module: candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (677.481 ms) : 0, 677481
BytebuddyAgent [candidate] (672.169 ms) : 0, 672169
GlobalTracer [baseline] (311.713 ms) : 0, 311713
GlobalTracer [candidate] (309.533 ms) : 0, 309533
AppSec [baseline] (49.503 ms) : 0, 49503
AppSec [candidate] (49.367 ms) : 0, 49367
Remote Config [baseline] (668.116 µs) : 0, 668
Remote Config [candidate] (658.389 µs) : 0, 658
Telemetry [baseline] (7.595 ms) : 0, 7595
Telemetry [candidate] (7.526 ms) : 0, 7526
section appsec
BytebuddyAgent [baseline] (699.395 ms) : 0, 699395
BytebuddyAgent [candidate] (701.235 ms) : 0, 701235
GlobalTracer [baseline] (292.864 ms) : 0, 292864
GlobalTracer [candidate] (292.282 ms) : 0, 292282
AppSec [baseline] (149.966 ms) : 0, 149966
AppSec [candidate] (149.939 ms) : 0, 149939
IAST [baseline] (19.067 ms) : 0, 19067
IAST [candidate] (18.956 ms) : 0, 18956
Remote Config [baseline] (627.127 µs) : 0, 627
Remote Config [candidate] (626.63 µs) : 0, 627
Telemetry [baseline] (7.561 ms) : 0, 7561
Telemetry [candidate] (7.561 ms) : 0, 7561
section iast
BytebuddyAgent [baseline] (796.805 ms) : 0, 796805
BytebuddyAgent [candidate] (799.979 ms) : 0, 799979
GlobalTracer [baseline] (288.139 ms) : 0, 288139
GlobalTracer [candidate] (290.297 ms) : 0, 290297
AppSec [baseline] (49.412 ms) : 0, 49412
AppSec [candidate] (50.548 ms) : 0, 50548
IAST [baseline] (24.514 ms) : 0, 24514
IAST [candidate] (24.167 ms) : 0, 24167
Remote Config [baseline] (570.749 µs) : 0, 571
Remote Config [candidate] (592.598 µs) : 0, 593
Telemetry [baseline] (6.626 ms) : 0, 6626
Telemetry [candidate] (6.679 ms) : 0, 6679
section profiling
BytebuddyAgent [baseline] (677.609 ms) : 0, 677609
BytebuddyAgent [candidate] (677.157 ms) : 0, 677157
GlobalTracer [baseline] (381.79 ms) : 0, 381790
GlobalTracer [candidate] (380.812 ms) : 0, 380812
AppSec [baseline] (50.422 ms) : 0, 50422
AppSec [candidate] (50.036 ms) : 0, 50036
Remote Config [baseline] (723.602 µs) : 0, 724
Remote Config [candidate] (701.487 µs) : 0, 701
Telemetry [baseline] (7.512 ms) : 0, 7512
Telemetry [candidate] (7.483 ms) : 0, 7483
ProfilingAgent [baseline] (96.717 ms) : 0, 96717
ProfilingAgent [candidate] (95.905 ms) : 0, 95905
Profiling [baseline] (96.741 ms) : 0, 96741
Profiling [candidate] (95.929 ms) : 0, 95929
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 16 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section baseline
no_agent (1.34 ms) : 1321, 1359
. : milestone, 1340,
appsec (1.717 ms) : 1693, 1741
. : milestone, 1717,
appsec_no_iast (1.722 ms) : 1698, 1746
. : milestone, 1722,
iast (1.492 ms) : 1470, 1514
. : milestone, 1492,
profiling (1.49 ms) : 1464, 1515
. : milestone, 1490,
tracing (1.482 ms) : 1459, 1506
. : milestone, 1482,
section candidate
no_agent (1.34 ms) : 1321, 1359
. : milestone, 1340,
appsec (1.734 ms) : 1710, 1758
. : milestone, 1734,
appsec_no_iast (1.711 ms) : 1687, 1735
. : milestone, 1711,
iast (1.519 ms) : 1497, 1542
. : milestone, 1519,
profiling (1.492 ms) : 1467, 1517
. : milestone, 1492,
tracing (1.479 ms) : 1454, 1503
. : milestone, 1479,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section baseline
no_agent (366.626 µs) : 347, 386
. : milestone, 367,
iast (472.042 µs) : 451, 493
. : milestone, 472,
iast_FULL (536.372 µs) : 515, 558
. : milestone, 536,
iast_GLOBAL (487.975 µs) : 468, 508
. : milestone, 488,
iast_HARDCODED_SECRET_DISABLED (468.808 µs) : 448, 490
. : milestone, 469,
iast_INACTIVE (436.512 µs) : 416, 457
. : milestone, 437,
iast_TELEMETRY_OFF (472.532 µs) : 451, 494
. : milestone, 473,
tracing (429.694 µs) : 410, 450
. : milestone, 430,
section candidate
no_agent (363.845 µs) : 344, 384
. : milestone, 364,
iast (469.081 µs) : 448, 490
. : milestone, 469,
iast_FULL (534.938 µs) : 514, 556
. : milestone, 535,
iast_GLOBAL (495.546 µs) : 474, 517
. : milestone, 496,
iast_HARDCODED_SECRET_DISABLED (468.121 µs) : 447, 489
. : milestone, 468,
iast_INACTIVE (441.146 µs) : 420, 462
. : milestone, 441,
iast_TELEMETRY_OFF (468.704 µs) : 448, 489
. : milestone, 469,
tracing (433.796 µs) : 414, 454
. : milestone, 434,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section baseline
no_agent (1.461 ms) : 1450, 1473
. : milestone, 1461,
appsec (2.19 ms) : 2156, 2223
. : milestone, 2190,
iast (1.868 ms) : 1834, 1903
. : milestone, 1868,
iast_GLOBAL (1.917 ms) : 1881, 1952
. : milestone, 1917,
profiling (1.846 ms) : 1812, 1880
. : milestone, 1846,
tracing (1.817 ms) : 1785, 1848
. : milestone, 1817,
section candidate
no_agent (1.461 ms) : 1449, 1472
. : milestone, 1461,
appsec (2.194 ms) : 2160, 2228
. : milestone, 2194,
iast (1.884 ms) : 1849, 1919
. : milestone, 1884,
iast_GLOBAL (1.92 ms) : 1884, 1955
. : milestone, 1920,
profiling (1.846 ms) : 1812, 1880
. : milestone, 1846,
tracing (1.82 ms) : 1789, 1852
. : milestone, 1820,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.33.0-SNAPSHOT~1ec21aadbc, baseline=1.33.0-SNAPSHOT~91854ffed0
dateFormat X
axisFormat %s
section baseline
no_agent (15.027 s) : 15027000, 15027000
. : milestone, 15027000,
appsec (15.02 s) : 15020000, 15020000
. : milestone, 15020000,
iast (18.723 s) : 18723000, 18723000
. : milestone, 18723000,
iast_GLOBAL (18.12 s) : 18120000, 18120000
. : milestone, 18120000,
profiling (15.943 s) : 15943000, 15943000
. : milestone, 15943000,
tracing (14.848 s) : 14848000, 14848000
. : milestone, 14848000,
section candidate
no_agent (14.991 s) : 14991000, 14991000
. : milestone, 14991000,
appsec (14.814 s) : 14814000, 14814000
. : milestone, 14814000,
iast (19.041 s) : 19041000, 19041000
. : milestone, 19041000,
iast_GLOBAL (17.787 s) : 17787000, 17787000
. : milestone, 17787000,
profiling (15.048 s) : 15048000, 15048000
. : milestone, 15048000,
tracing (15.089 s) : 15089000, 15089000
. : milestone, 15089000,
|
Even if the What about evolving the retry policy object to handle the exception? It should allow to have a more generic approach for this kind of behavior. What do you think about it? |
Yes, that makes a lot of sense. I had to change a couple of things to encapsulate interrupts suppression inside the policy |
What Does This Do
Updates utility method that executes (and retries, if necessary) an HTTP request.
The method is used exclusively by CI Visibility logic that sends spans to the backend.
Motivation
When a child JVM that was forked for tests execution finishes its work, the build system shuts the process down.
As part of this shutdown the tracer threads receive interrupts.
It is possible that when these interrupts are received some tests spans are still being dispatched.
Acting on interrupt results in these spans being lost.
Additional Notes
The logic is updated in a way that an interrupted request will be reattempted.
If an interrupt is received at any point during request execution, the thread's interrupted flag is restored on method exit.
Jira ticket: CIVIS-9801