-
Notifications
You must be signed in to change notification settings - Fork 291
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
Flush pending traces synchronously before terminating child process #6866
Merged
nikita-tkachenko-datadog
merged 1 commit into
master
from
nikita-tkachenko/flush-tests-in-child-process
Apr 2, 2024
Merged
Flush pending traces synchronously before terminating child process #6866
nikita-tkachenko-datadog
merged 1 commit into
master
from
nikita-tkachenko/flush-tests-in-child-process
Apr 2, 2024
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
type: bug
comp: ci visibility
Continuous Integration Visibility
labels
Apr 2, 2024
anmarchenko
approved these changes
Apr 2, 2024
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 52 metrics, 11 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.32.0-SNAPSHOT~cab30685b7, baseline=1.32.0-SNAPSHOT~ab1bf09ac8
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.075 s) : 0, 1075112
Total [baseline] (8.559 s) : 0, 8558589
Agent [candidate] (1.077 s) : 0, 1076794
Total [candidate] (8.577 s) : 0, 8576709
section iast
Agent [baseline] (1.206 s) : 0, 1205844
Total [baseline] (9.098 s) : 0, 9097535
Agent [candidate] (1.2 s) : 0, 1199514
Total [candidate] (9.1 s) : 0, 9100312
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.208 s) : 0, 1208178
Total [baseline] (9.099 s) : 0, 9098504
Agent [candidate] (1.201 s) : 0, 1200532
Total [candidate] (9.053 s) : 0, 9053166
section iast_TELEMETRY_OFF
Agent [baseline] (1.197 s) : 0, 1196706
Total [baseline] (9.098 s) : 0, 9098410
Agent [candidate] (1.206 s) : 0, 1206114
Total [candidate] (9.115 s) : 0, 9115462
gantt
title insecure-bank - break down per module: candidate=1.32.0-SNAPSHOT~cab30685b7, baseline=1.32.0-SNAPSHOT~ab1bf09ac8
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (673.453 ms) : 0, 673453
BytebuddyAgent [candidate] (673.96 ms) : 0, 673960
GlobalTracer [baseline] (309.623 ms) : 0, 309623
GlobalTracer [candidate] (310.585 ms) : 0, 310585
AppSec [baseline] (49.49 ms) : 0, 49490
AppSec [candidate] (49.559 ms) : 0, 49559
Remote Config [baseline] (661.178 µs) : 0, 661
Remote Config [candidate] (670.93 µs) : 0, 671
Telemetry [baseline] (7.546 ms) : 0, 7546
Telemetry [candidate] (7.694 ms) : 0, 7694
section iast
BytebuddyAgent [baseline] (798.767 ms) : 0, 798767
BytebuddyAgent [candidate] (794.655 ms) : 0, 794655
GlobalTracer [baseline] (290.286 ms) : 0, 290286
GlobalTracer [candidate] (288.786 ms) : 0, 288786
AppSec [baseline] (50.695 ms) : 0, 50695
AppSec [candidate] (50.258 ms) : 0, 50258
IAST [baseline] (24.397 ms) : 0, 24397
IAST [candidate] (22.821 ms) : 0, 22821
Remote Config [baseline] (586.498 µs) : 0, 586
Remote Config [candidate] (578.961 µs) : 0, 579
Telemetry [baseline] (6.58 ms) : 0, 6580
Telemetry [candidate] (8.126 ms) : 0, 8126
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (800.381 ms) : 0, 800381
BytebuddyAgent [candidate] (794.469 ms) : 0, 794469
GlobalTracer [baseline] (290.555 ms) : 0, 290555
GlobalTracer [candidate] (289.983 ms) : 0, 289983
AppSec [baseline] (50.001 ms) : 0, 50001
AppSec [candidate] (48.941 ms) : 0, 48941
IAST [baseline] (25.509 ms) : 0, 25509
IAST [candidate] (23.921 ms) : 0, 23921
Remote Config [baseline] (572.708 µs) : 0, 573
Remote Config [candidate] (584.33 µs) : 0, 584
Telemetry [baseline] (6.572 ms) : 0, 6572
Telemetry [candidate] (8.16 ms) : 0, 8160
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (791.629 ms) : 0, 791629
BytebuddyAgent [candidate] (798.723 ms) : 0, 798723
GlobalTracer [baseline] (288.771 ms) : 0, 288771
GlobalTracer [candidate] (291.251 ms) : 0, 291251
AppSec [baseline] (49.894 ms) : 0, 49894
AppSec [candidate] (49.534 ms) : 0, 49534
IAST [baseline] (24.816 ms) : 0, 24816
IAST [candidate] (23.32 ms) : 0, 23320
Remote Config [baseline] (576.18 µs) : 0, 576
Remote Config [candidate] (582.378 µs) : 0, 582
Telemetry [baseline] (6.599 ms) : 0, 6599
Telemetry [candidate] (8.093 ms) : 0, 8093
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.32.0-SNAPSHOT~cab30685b7, baseline=1.32.0-SNAPSHOT~ab1bf09ac8
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.092 s) : 0, 1091766
Total [baseline] (10.476 s) : 0, 10476121
Agent [candidate] (1.083 s) : 0, 1083482
Total [candidate] (10.431 s) : 0, 10430846
section appsec
Agent [baseline] (1.197 s) : 0, 1196832
Total [baseline] (10.521 s) : 0, 10521360
Agent [candidate] (1.197 s) : 0, 1196576
Total [candidate] (10.502 s) : 0, 10502149
section iast
Agent [baseline] (1.2 s) : 0, 1199739
Total [baseline] (10.813 s) : 0, 10813059
Agent [candidate] (1.201 s) : 0, 1200573
Total [candidate] (10.761 s) : 0, 10761289
section profiling
Agent [baseline] (1.267 s) : 0, 1267457
Total [baseline] (10.635 s) : 0, 10634525
Agent [candidate] (1.269 s) : 0, 1269476
Total [candidate] (10.626 s) : 0, 10625603
gantt
title petclinic - break down per module: candidate=1.32.0-SNAPSHOT~cab30685b7, baseline=1.32.0-SNAPSHOT~ab1bf09ac8
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (683.519 ms) : 0, 683519
BytebuddyAgent [candidate] (678.697 ms) : 0, 678697
GlobalTracer [baseline] (314.503 ms) : 0, 314503
GlobalTracer [candidate] (312.057 ms) : 0, 312057
AppSec [baseline] (50.366 ms) : 0, 50366
AppSec [candidate] (49.768 ms) : 0, 49768
Remote Config [baseline] (680.971 µs) : 0, 681
Remote Config [candidate] (664.166 µs) : 0, 664
Telemetry [baseline] (7.762 ms) : 0, 7762
Telemetry [candidate] (7.663 ms) : 0, 7663
section appsec
BytebuddyAgent [baseline] (694.7 ms) : 0, 694700
BytebuddyAgent [candidate] (694.775 ms) : 0, 694775
GlobalTracer [baseline] (291.456 ms) : 0, 291456
GlobalTracer [candidate] (292.026 ms) : 0, 292026
AppSec [baseline] (150.152 ms) : 0, 150152
AppSec [candidate] (149.225 ms) : 0, 149225
IAST [baseline] (18.705 ms) : 0, 18705
IAST [candidate] (18.809 ms) : 0, 18809
Remote Config [baseline] (605.575 µs) : 0, 606
Remote Config [candidate] (605.85 µs) : 0, 606
Telemetry [baseline] (6.766 ms) : 0, 6766
Telemetry [candidate] (6.794 ms) : 0, 6794
section iast
BytebuddyAgent [baseline] (794.93 ms) : 0, 794930
BytebuddyAgent [candidate] (795.492 ms) : 0, 795492
GlobalTracer [baseline] (288.535 ms) : 0, 288535
GlobalTracer [candidate] (289.429 ms) : 0, 289429
AppSec [baseline] (51.918 ms) : 0, 51918
AppSec [candidate] (49.617 ms) : 0, 49617
IAST [baseline] (22.912 ms) : 0, 22912
IAST [candidate] (24.472 ms) : 0, 24472
Remote Config [baseline] (575.901 µs) : 0, 576
Remote Config [candidate] (576.698 µs) : 0, 577
Telemetry [baseline] (6.579 ms) : 0, 6579
Telemetry [candidate] (6.58 ms) : 0, 6580
section profiling
BytebuddyAgent [baseline] (677.049 ms) : 0, 677049
BytebuddyAgent [candidate] (677.257 ms) : 0, 677257
GlobalTracer [baseline] (380.252 ms) : 0, 380252
GlobalTracer [candidate] (381.557 ms) : 0, 381557
AppSec [baseline] (50.366 ms) : 0, 50366
AppSec [candidate] (50.299 ms) : 0, 50299
Remote Config [baseline] (691.44 µs) : 0, 691
Remote Config [candidate] (690.245 µs) : 0, 690
Telemetry [baseline] (7.455 ms) : 0, 7455
Telemetry [candidate] (7.48 ms) : 0, 7480
ProfilingAgent [baseline] (95.277 ms) : 0, 95277
ProfilingAgent [candidate] (95.928 ms) : 0, 95928
Profiling [baseline] (95.301 ms) : 0, 95301
Profiling [candidate] (95.951 ms) : 0, 95951
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 insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~cab30685b7, baseline=1.32.0-SNAPSHOT~ab1bf09ac8
dateFormat X
axisFormat %s
section baseline
no_agent (372.258 µs) : 351, 393
. : milestone, 372,
iast (481.433 µs) : 461, 502
. : milestone, 481,
iast_FULL (547.51 µs) : 527, 568
. : milestone, 548,
iast_GLOBAL (512.038 µs) : 490, 534
. : milestone, 512,
iast_HARDCODED_SECRET_DISABLED (481.349 µs) : 461, 502
. : milestone, 481,
iast_INACTIVE (448.988 µs) : 428, 470
. : milestone, 449,
iast_TELEMETRY_OFF (470.933 µs) : 450, 491
. : milestone, 471,
tracing (452.836 µs) : 432, 474
. : milestone, 453,
section candidate
no_agent (367.206 µs) : 347, 387
. : milestone, 367,
iast (475.977 µs) : 455, 497
. : milestone, 476,
iast_FULL (550.577 µs) : 530, 571
. : milestone, 551,
iast_GLOBAL (496.382 µs) : 476, 517
. : milestone, 496,
iast_HARDCODED_SECRET_DISABLED (479.03 µs) : 458, 500
. : milestone, 479,
iast_INACTIVE (452.49 µs) : 431, 474
. : milestone, 452,
iast_TELEMETRY_OFF (479.46 µs) : 458, 501
. : milestone, 479,
tracing (443.705 µs) : 423, 464
. : milestone, 444,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.32.0-SNAPSHOT~cab30685b7, baseline=1.32.0-SNAPSHOT~ab1bf09ac8
dateFormat X
axisFormat %s
section baseline
no_agent (1.349 ms) : 1330, 1369
. : milestone, 1349,
appsec (1.723 ms) : 1698, 1747
. : milestone, 1723,
appsec_no_iast (1.736 ms) : 1712, 1759
. : milestone, 1736,
iast (1.498 ms) : 1475, 1521
. : milestone, 1498,
profiling (1.496 ms) : 1472, 1520
. : milestone, 1496,
tracing (1.487 ms) : 1462, 1512
. : milestone, 1487,
section candidate
no_agent (1.353 ms) : 1333, 1373
. : milestone, 1353,
appsec (1.734 ms) : 1710, 1758
. : milestone, 1734,
appsec_no_iast (1.727 ms) : 1704, 1751
. : milestone, 1727,
iast (1.506 ms) : 1483, 1529
. : milestone, 1506,
profiling (1.516 ms) : 1491, 1541
. : milestone, 1516,
tracing (1.473 ms) : 1449, 1498
. : milestone, 1473,
|
nikita-tkachenko-datadog
deleted the
nikita-tkachenko/flush-tests-in-child-process
branch
April 2, 2024 13:31
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
Adds a synchronous flush of pending traces to
TestFrameworkSession#end
invocation.TestFrameworkSession
is used by CI Vis children processes (JVMs that a build system forks for tests execution).The
end
method is invoked by a shutdown hook when a child process terminates.Motivation
As soon as all the tests have executed, the build system can terminate the child process that it previously forked to run the tests.
We need to ensure that all the pending traces have been flushed before the process shuts down, otherwise test events may be lost.
Jira ticket: CIVIS-9567