Check logs for errors at smoke tests cleanup#8111
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 58 metrics, 5 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.108 s) : 0, 1108194
Total [baseline] (8.668 s) : 0, 8667806
Agent [candidate] (1.108 s) : 0, 1108110
Total [candidate] (8.671 s) : 0, 8671110
section iast
Agent [baseline] (1.25 s) : 0, 1250141
Total [baseline] (9.252 s) : 0, 9251652
Agent [candidate] (1.241 s) : 0, 1240754
Total [candidate] (9.276 s) : 0, 9275654
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.241 s) : 0, 1241226
Total [baseline] (9.262 s) : 0, 9261918
Agent [candidate] (1.238 s) : 0, 1237733
Total [candidate] (9.303 s) : 0, 9302965
section iast_TELEMETRY_OFF
Agent [baseline] (1.237 s) : 0, 1236917
Total [baseline] (9.24 s) : 0, 9239535
Agent [candidate] (1.234 s) : 0, 1233776
Total [candidate] (9.213 s) : 0, 9213404
gantt
title insecure-bank - break down per module: candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (710.699 ms) : 0, 710699
BytebuddyAgent [candidate] (710.942 ms) : 0, 710942
GlobalTracer [baseline] (318.058 ms) : 0, 318058
GlobalTracer [candidate] (318.066 ms) : 0, 318066
AppSec [baseline] (55.089 ms) : 0, 55089
AppSec [candidate] (54.72 ms) : 0, 54720
Remote Config [baseline] (664.651 µs) : 0, 665
Remote Config [candidate] (680.635 µs) : 0, 681
Telemetry [baseline] (8.864 ms) : 0, 8864
Telemetry [candidate] (8.82 ms) : 0, 8820
section iast
BytebuddyAgent [baseline] (838.262 ms) : 0, 838262
BytebuddyAgent [candidate] (829.462 ms) : 0, 829462
GlobalTracer [baseline] (311.388 ms) : 0, 311388
GlobalTracer [candidate] (309.976 ms) : 0, 309976
AppSec [baseline] (55.778 ms) : 0, 55778
AppSec [candidate] (56.551 ms) : 0, 56551
IAST [baseline] (20.909 ms) : 0, 20909
IAST [candidate] (20.983 ms) : 0, 20983
Remote Config [baseline] (592.6 µs) : 0, 593
Remote Config [candidate] (628.22 µs) : 0, 628
Telemetry [baseline] (8.275 ms) : 0, 8275
Telemetry [candidate] (8.292 ms) : 0, 8292
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (829.136 ms) : 0, 829136
BytebuddyAgent [candidate] (826.227 ms) : 0, 826227
GlobalTracer [baseline] (309.881 ms) : 0, 309881
GlobalTracer [candidate] (309.75 ms) : 0, 309750
AppSec [baseline] (57.379 ms) : 0, 57379
AppSec [candidate] (56.836 ms) : 0, 56836
IAST [baseline] (21.04 ms) : 0, 21040
IAST [candidate] (21.17 ms) : 0, 21170
Remote Config [baseline] (605.121 µs) : 0, 605
Remote Config [candidate] (609.801 µs) : 0, 610
Telemetry [baseline] (8.279 ms) : 0, 8279
Telemetry [candidate] (8.263 ms) : 0, 8263
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (824.429 ms) : 0, 824429
BytebuddyAgent [candidate] (823.452 ms) : 0, 823452
GlobalTracer [baseline] (309.669 ms) : 0, 309669
GlobalTracer [candidate] (308.234 ms) : 0, 308234
AppSec [baseline] (58.283 ms) : 0, 58283
AppSec [candidate] (57.751 ms) : 0, 57751
IAST [baseline] (20.826 ms) : 0, 20826
IAST [candidate] (20.695 ms) : 0, 20695
Remote Config [baseline] (613.568 µs) : 0, 614
Remote Config [candidate] (596.315 µs) : 0, 596
Telemetry [baseline] (8.229 ms) : 0, 8229
Telemetry [candidate] (8.149 ms) : 0, 8149
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.11 s) : 0, 1110341
Total [baseline] (10.456 s) : 0, 10455549
Agent [candidate] (1.122 s) : 0, 1122333
Total [candidate] (10.497 s) : 0, 10497382
section appsec
Agent [baseline] (1.247 s) : 0, 1247463
Total [baseline] (10.719 s) : 0, 10719019
Agent [candidate] (1.249 s) : 0, 1249354
Total [candidate] (10.731 s) : 0, 10730503
section iast
Agent [baseline] (1.238 s) : 0, 1238274
Total [baseline] (11.019 s) : 0, 11019439
Agent [candidate] (1.239 s) : 0, 1239402
Total [candidate] (10.998 s) : 0, 10997877
section profiling
Agent [baseline] (1.347 s) : 0, 1346635
Total [baseline] (10.943 s) : 0, 10942787
Agent [candidate] (1.34 s) : 0, 1339817
Total [candidate] (10.918 s) : 0, 10918273
gantt
title petclinic - break down per module: candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (711.673 ms) : 0, 711673
BytebuddyAgent [candidate] (720.402 ms) : 0, 720402
GlobalTracer [baseline] (318.754 ms) : 0, 318754
GlobalTracer [candidate] (321.797 ms) : 0, 321797
AppSec [baseline] (55.386 ms) : 0, 55386
AppSec [candidate] (55.347 ms) : 0, 55347
Remote Config [baseline] (669.265 µs) : 0, 669
Remote Config [candidate] (678.797 µs) : 0, 679
Telemetry [baseline] (8.913 ms) : 0, 8913
Telemetry [candidate] (8.929 ms) : 0, 8929
section appsec
BytebuddyAgent [baseline] (728.806 ms) : 0, 728806
BytebuddyAgent [candidate] (730.401 ms) : 0, 730401
GlobalTracer [baseline] (315.77 ms) : 0, 315770
GlobalTracer [candidate] (315.88 ms) : 0, 315880
AppSec [baseline] (169.894 ms) : 0, 169894
AppSec [candidate] (168.563 ms) : 0, 168563
IAST [baseline] (19.12 ms) : 0, 19120
IAST [candidate] (20.664 ms) : 0, 20664
Remote Config [baseline] (654.379 µs) : 0, 654
Remote Config [candidate] (639.762 µs) : 0, 640
Telemetry [baseline] (7.902 ms) : 0, 7902
Telemetry [candidate] (8.6 ms) : 0, 8600
section iast
BytebuddyAgent [baseline] (827.376 ms) : 0, 827376
BytebuddyAgent [candidate] (828.293 ms) : 0, 828293
GlobalTracer [baseline] (307.638 ms) : 0, 307638
GlobalTracer [candidate] (308.719 ms) : 0, 308719
AppSec [baseline] (58.318 ms) : 0, 58318
AppSec [candidate] (57.411 ms) : 0, 57411
IAST [baseline] (21.142 ms) : 0, 21142
IAST [candidate] (21.124 ms) : 0, 21124
Remote Config [baseline] (603.583 µs) : 0, 604
Remote Config [candidate] (613.597 µs) : 0, 614
Telemetry [baseline] (8.283 ms) : 0, 8283
Telemetry [candidate] (8.297 ms) : 0, 8297
section profiling
BytebuddyAgent [baseline] (705.276 ms) : 0, 705276
BytebuddyAgent [candidate] (700.232 ms) : 0, 700232
GlobalTracer [baseline] (442.573 ms) : 0, 442573
GlobalTracer [candidate] (440.293 ms) : 0, 440293
AppSec [baseline] (53.998 ms) : 0, 53998
AppSec [candidate] (53.675 ms) : 0, 53675
Remote Config [baseline] (657.35 µs) : 0, 657
Remote Config [candidate] (674.224 µs) : 0, 674
Telemetry [baseline] (7.877 ms) : 0, 7877
Telemetry [candidate] (7.843 ms) : 0, 7843
ProfilingAgent [baseline] (94.341 ms) : 0, 94341
ProfilingAgent [candidate] (95.163 ms) : 0, 95163
Profiling [baseline] (94.365 ms) : 0, 94365
Profiling [candidate] (95.187 ms) : 0, 95187
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 13 metrics, 15 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section baseline
no_agent (1.366 ms) : 1347, 1386
. : milestone, 1366,
appsec (1.741 ms) : 1718, 1765
. : milestone, 1741,
appsec_no_iast (1.764 ms) : 1740, 1788
. : milestone, 1764,
iast (1.499 ms) : 1476, 1522
. : milestone, 1499,
profiling (1.517 ms) : 1492, 1541
. : milestone, 1517,
tracing (1.493 ms) : 1469, 1517
. : milestone, 1493,
section candidate
no_agent (1.351 ms) : 1331, 1371
. : milestone, 1351,
appsec (1.755 ms) : 1732, 1778
. : milestone, 1755,
appsec_no_iast (1.74 ms) : 1715, 1765
. : milestone, 1740,
iast (1.495 ms) : 1472, 1519
. : milestone, 1495,
profiling (1.545 ms) : 1520, 1571
. : milestone, 1545,
tracing (1.49 ms) : 1466, 1514
. : milestone, 1490,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section baseline
no_agent (375.558 µs) : 355, 396
. : milestone, 376,
iast (496.346 µs) : 475, 518
. : milestone, 496,
iast_FULL (657.581 µs) : 636, 679
. : milestone, 658,
iast_GLOBAL (529.433 µs) : 507, 552
. : milestone, 529,
iast_HARDCODED_SECRET_DISABLED (496.35 µs) : 475, 518
. : milestone, 496,
iast_INACTIVE (457.624 µs) : 436, 479
. : milestone, 458,
iast_TELEMETRY_OFF (487.195 µs) : 465, 509
. : milestone, 487,
tracing (452.755 µs) : 431, 474
. : milestone, 453,
section candidate
no_agent (378.881 µs) : 359, 399
. : milestone, 379,
iast (494.361 µs) : 472, 517
. : milestone, 494,
iast_FULL (659.774 µs) : 638, 681
. : milestone, 660,
iast_GLOBAL (517.272 µs) : 496, 539
. : milestone, 517,
iast_HARDCODED_SECRET_DISABLED (491.211 µs) : 470, 512
. : milestone, 491,
iast_INACTIVE (449.036 µs) : 428, 470
. : milestone, 449,
iast_TELEMETRY_OFF (481.39 µs) : 460, 503
. : milestone, 481,
tracing (446.764 µs) : 426, 467
. : milestone, 447,
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 biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section baseline
no_agent (15.032 s) : 15032000, 15032000
. : milestone, 15032000,
appsec (14.939 s) : 14939000, 14939000
. : milestone, 14939000,
iast (18.59 s) : 18590000, 18590000
. : milestone, 18590000,
iast_GLOBAL (18.075 s) : 18075000, 18075000
. : milestone, 18075000,
profiling (15.233 s) : 15233000, 15233000
. : milestone, 15233000,
tracing (15.106 s) : 15106000, 15106000
. : milestone, 15106000,
section candidate
no_agent (14.951 s) : 14951000, 14951000
. : milestone, 14951000,
appsec (14.943 s) : 14943000, 14943000
. : milestone, 14943000,
iast (18.962 s) : 18962000, 18962000
. : milestone, 18962000,
iast_GLOBAL (18.107 s) : 18107000, 18107000
. : milestone, 18107000,
profiling (15.086 s) : 15086000, 15086000
. : milestone, 15086000,
tracing (15.002 s) : 15002000, 15002000
. : milestone, 15002000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.45.0-SNAPSHOT~66897bacec, baseline=1.45.0-SNAPSHOT~88c493cc76
dateFormat X
axisFormat %s
section baseline
no_agent (1.469 ms) : 1457, 1480
. : milestone, 1469,
appsec (2.354 ms) : 2312, 2395
. : milestone, 2354,
iast (2.089 ms) : 2037, 2142
. : milestone, 2089,
iast_GLOBAL (2.136 ms) : 2083, 2189
. : milestone, 2136,
profiling (1.968 ms) : 1925, 2011
. : milestone, 1968,
tracing (1.94 ms) : 1899, 1980
. : milestone, 1940,
section candidate
no_agent (1.47 ms) : 1458, 1481
. : milestone, 1470,
appsec (2.353 ms) : 2312, 2395
. : milestone, 2353,
iast (2.086 ms) : 2033, 2139
. : milestone, 2086,
iast_GLOBAL (2.147 ms) : 2093, 2201
. : milestone, 2147,
profiling (1.982 ms) : 1939, 2025
. : milestone, 1982,
tracing (1.935 ms) : 1895, 1975
. : milestone, 1935,
|
112f4f1 to
acfbbb9
Compare
PerfectSlayer
left a comment
There was a problem hiding this comment.
Very nice improvements! 🙏
There was a problem hiding this comment.
It would be very helpful if we could provide the logFilePaths in the assertions (although it's no minor change so don't bother 😄)
There was a problem hiding this comment.
It's not used that much, I went for something simple to use, but happy to change or adapt later.
manuel-alvarez-alvarez
left a comment
There was a problem hiding this comment.
LGTM, to review the issue with the profiling test
2b1e6a3 to
9186742
Compare
PerfectSlayer
left a comment
There was a problem hiding this comment.
Looks good! Thanks for the changes 🙏
669c4b4 to
40b1393
Compare
What Does This Do
boolean isErrorLog(String line)defining what is considered an error log for a given smoke test. Most smoke tests can just rely on the default. This PR includes several examples on how to extend it, both to add additional errors, or to exclude some errors.void assertNoErrorLogs(final Closure<Boolean> errorFilter), which can be used to assert there are no error logs. Most tests should not use directly, and when they do, they should do it only after the test process has finished (otherwise, the test may be flaky).assertNoErrorLogsoncleanupSpecfor every smoke test. Most suites were not checking error logs.processTestLogLineswhen we need to wait for a log line that is supposed to be printed. This should be less flaky thanassertNoErrorLogsin the case where the test process has not ended.checkLogPostExit, which was superseded by the above methods.Motivation
We have various flaky tests on smoke tests, and sometimes non-flaky failures that are hard to diagnose, that show up in errors all just as:
This means there was an error printed to logs, but to find which one we need to download
reports.tarand dig into the logs.After this PR, they look like this:
Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any usefull labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]