Skip to content

Add Cucumber support to CI Visibility - #5611

Merged
nikita-tkachenko-datadog merged 8 commits into
masterfrom
nikita-tkachenko/cucumber-support
Aug 7, 2023
Merged

nikita-tkachenko-datadog merged 8 commits into
masterfrom
nikita-tkachenko/cucumber-support

Conversation

@nikita-tkachenko-datadog

@nikita-tkachenko-datadog nikita-tkachenko-datadog commented Jul 20, 2023 •

Copy link
Copy Markdown
Contributor

What Does This Do

Adds Cucumber testing framework support to CI Visibility.
The following spans are created:

  • test suite spans for cucumber features
  • test spans for cucumber scenarios
  • additional spans for every cucumber glue step (given, when, then)

Motivation

Cucumber is a popular BDD testing framework.
There were a few requests from the customers to support it.
Besides, Cucumber is used in logs-backend repo which we are using for dogfooding CI Vis.

@nikita-tkachenko-datadog nikita-tkachenko-datadog added the comp: ci visibility Continuous Integration Visibility label Jul 20, 2023
@nikita-tkachenko-datadog
nikita-tkachenko-datadog changed the base branch from master to nikita-tkachenko/reflection-to-method-handles July 20, 2023 15:05
@pr-commenter

This comment has been minimized.

@nikita-tkachenko-datadog
nikita-tkachenko-datadog marked this pull request as ready for review July 20, 2023 19:06
@nikita-tkachenko-datadog
nikita-tkachenko-datadog requested review from a team as code owners July 20, 2023 19:06
@nikita-tkachenko-datadog
nikita-tkachenko-datadog force-pushed the nikita-tkachenko/reflection-to-method-handles branch from 364d1c5 to b91c3da Compare August 7, 2023 12:43
Base automatically changed from nikita-tkachenko/reflection-to-method-handles to master August 7, 2023 13:43
@nikita-tkachenko-datadog
nikita-tkachenko-datadog force-pushed the nikita-tkachenko/cucumber-support branch from 15155e8 to 5b98a57 Compare August 7, 2023 13:48
@pr-commenter

This comment has been minimized.

@pr-commenter

pr-commenter Bot commented Aug 7, 2023

Copy link
Copy Markdown

Benchmarks

Startup

Parameters

Baseline Candidate
commit 1.19.0-SNAPSHOT~0aac86e63d 1.19.0-SNAPSHOT~734f37191c
config baseline candidate
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
module Agent Agent
parent None None
variant appsec appsec

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 62 cases.

Startup time reports for petclinic
gantt
    title petclinic - global startup overhead: candidate=1.19.0-SNAPSHOT~734f37191c, baseline=1.19.0-SNAPSHOT~0aac86e63d

    dateFormat X
    axisFormat %s
section appsec
Agent [baseline] (1076712.2 µs) : 0, 1076712
Total [baseline] (9279005.0 µs) : 0, 9279005
Agent [candidate] (1072521.0 µs) : 0, 1072521
Total [candidate] (9283262.1 µs) : 0, 9283262
section iast
Agent [baseline] (1084627.7 µs) : 0, 1084628
Total [baseline] (9444917.4 µs) : 0, 9444917
Agent [candidate] (1086942.6 µs) : 0, 1086943
Total [candidate] (9447204.8 µs) : 0, 9447205
section profiling
Agent [baseline] (1164068.9 µs) : 0, 1164069
Total [baseline] (9480260.1 µs) : 0, 9480260
Agent [candidate] (1156206.0 µs) : 0, 1156206
Total [candidate] (9487413.8 µs) : 0, 9487414
section tracing
Agent [baseline] (986114.6 µs) : 0, 986115
Total [baseline] (9196098.6 µs) : 0, 9196099
Agent [candidate] (984991.0 µs) : 0, 984991
Total [candidate] (9142912.7 µs) : 0, 9142913
Loading
gantt
    title petclinic - time taken per module: candidate=1.19.0-SNAPSHOT~734f37191c, baseline=1.19.0-SNAPSHOT~0aac86e63d

    dateFormat X
    axisFormat %s
section appsec
BytebuddyAgent [baseline] (614510.2 µs) : 0, 614510
BytebuddyAgent [candidate] (611859.5 µs) : 0, 611860
GlobalTracer [baseline] (285925.6 µs) : 0, 285926
GlobalTracer [candidate] (284944.8 µs) : 0, 284945
AppSec [baseline] (135888.0 µs) : 0, 135888
AppSec [candidate] (135430.4 µs) : 0, 135430
Remote Config [baseline] (728.7 µs) : 0, 729
Remote Config [candidate] (730.7 µs) : 0, 731
Telemetry [baseline] (5194.3 µs) : 0, 5194
Telemetry [candidate] (5166.3 µs) : 0, 5166
section iast
BytebuddyAgent [baseline] (713058.0 µs) : 0, 713058
BytebuddyAgent [candidate] (714026.7 µs) : 0, 714027
GlobalTracer [baseline] (271075.3 µs) : 0, 271075
GlobalTracer [candidate] (271856.0 µs) : 0, 271856
AppSec [baseline] (46896.6 µs) : 0, 46897
AppSec [candidate] (47130.6 µs) : 0, 47131
Remote Config [baseline] (658.3 µs) : 0, 658
Remote Config [candidate] (654.6 µs) : 0, 655
Telemetry [baseline] (5586.1 µs) : 0, 5586
Telemetry [candidate] (5626.5 µs) : 0, 5627
IAST [baseline] (13083.2 µs) : 0, 13083
IAST [candidate] (13242.2 µs) : 0, 13242
section profiling
BytebuddyAgent [baseline] (627751.5 µs) : 0, 627751
BytebuddyAgent [candidate] (623131.7 µs) : 0, 623132
GlobalTracer [baseline] (351676.4 µs) : 0, 351676
GlobalTracer [candidate] (349753.0 µs) : 0, 349753
AppSec [baseline] (49696.1 µs) : 0, 49696
AppSec [candidate] (49359.7 µs) : 0, 49360
Remote Config [baseline] (675.6 µs) : 0, 676
Remote Config [candidate] (655.4 µs) : 0, 655
Telemetry [baseline] (5478.0 µs) : 0, 5478
Telemetry [candidate] (5399.4 µs) : 0, 5399
ProfilingAgent [baseline] (75525.8 µs) : 0, 75526
ProfilingAgent [candidate] (75080.6 µs) : 0, 75081
Profiling [baseline] (75550.1 µs) : 0, 75550
Profiling [candidate] (75104.8 µs) : 0, 75105
section tracing
BytebuddyAgent [baseline] (610903.3 µs) : 0, 610903
BytebuddyAgent [candidate] (609650.3 µs) : 0, 609650
GlobalTracer [baseline] (284153.5 µs) : 0, 284154
GlobalTracer [candidate] (284345.9 µs) : 0, 284346
AppSec [baseline] (50562.3 µs) : 0, 50562
AppSec [candidate] (50671.3 µs) : 0, 50671
Remote Config [baseline] (669.4 µs) : 0, 669
Remote Config [candidate] (668.5 µs) : 0, 669
Telemetry [baseline] (5469.1 µs) : 0, 5469
Telemetry [candidate] (5441.6 µs) : 0, 5442
Loading
Startup time reports for insecure-bank
gantt
    title insecure-bank - global startup overhead: candidate=1.19.0-SNAPSHOT~734f37191c, baseline=1.19.0-SNAPSHOT~0aac86e63d

    dateFormat X
    axisFormat %s
section appsec
Agent [baseline] (1069949.0 µs) : 0, 1069949
Total [baseline] (8721177.9 µs) : 0, 8721178
Agent [candidate] (1072085.6 µs) : 0, 1072086
Total [candidate] (8735729.3 µs) : 0, 8735729
section iast
Agent [baseline] (1084505.5 µs) : 0, 1084505
Total [baseline] (9141908.0 µs) : 0, 9141908
Agent [candidate] (1085835.7 µs) : 0, 1085836
Total [candidate] (9172715.1 µs) : 0, 9172715
section profiling
Agent [baseline] (1154546.0 µs) : 0, 1154546
Total [baseline] (8876635.0 µs) : 0, 8876635
Agent [candidate] (1155913.2 µs) : 0, 1155913
Total [candidate] (8895724.2 µs) : 0, 8895724
section tracing
Agent [baseline] (993087.4 µs) : 0, 993087
Total [baseline] (8671751.4 µs) : 0, 8671751
Agent [candidate] (988399.8 µs) : 0, 988400
Total [candidate] (8655518.0 µs) : 0, 8655518
Loading
gantt
    title insecure-bank - time taken per module: candidate=1.19.0-SNAPSHOT~734f37191c, baseline=1.19.0-SNAPSHOT~0aac86e63d

    dateFormat X
    axisFormat %s
section appsec
BytebuddyAgent [baseline] (610495.7 µs) : 0, 610496
BytebuddyAgent [candidate] (611258.7 µs) : 0, 611259
GlobalTracer [baseline] (283779.0 µs) : 0, 283779
GlobalTracer [candidate] (284985.8 µs) : 0, 284986
AppSec [baseline] (135464.6 µs) : 0, 135465
AppSec [candidate] (135671.0 µs) : 0, 135671
Remote Config [baseline] (728.9 µs) : 0, 729
Remote Config [candidate] (721.2 µs) : 0, 721
Telemetry [baseline] (5208.0 µs) : 0, 5208
Telemetry [candidate] (5159.5 µs) : 0, 5160
section iast
BytebuddyAgent [baseline] (713009.4 µs) : 0, 713009
BytebuddyAgent [candidate] (713619.1 µs) : 0, 713619
GlobalTracer [baseline] (270983.6 µs) : 0, 270984
GlobalTracer [candidate] (271508.5 µs) : 0, 271508
AppSec [baseline] (47007.2 µs) : 0, 47007
AppSec [candidate] (47181.1 µs) : 0, 47181
Remote Config [baseline] (649.0 µs) : 0, 649
Remote Config [candidate] (645.0 µs) : 0, 645
Telemetry [baseline] (5519.2 µs) : 0, 5519
Telemetry [candidate] (5498.5 µs) : 0, 5499
IAST [baseline] (13049.0 µs) : 0, 13049
IAST [candidate] (13137.8 µs) : 0, 13138
section profiling
BytebuddyAgent [baseline] (623239.0 µs) : 0, 623239
BytebuddyAgent [candidate] (623396.4 µs) : 0, 623396
GlobalTracer [baseline] (348712.4 µs) : 0, 348712
GlobalTracer [candidate] (349617.4 µs) : 0, 349617
AppSec [baseline] (49411.5 µs) : 0, 49412
AppSec [candidate] (48998.7 µs) : 0, 48999
Remote Config [baseline] (666.2 µs) : 0, 666
Remote Config [candidate] (652.0 µs) : 0, 652
Telemetry [baseline] (5403.6 µs) : 0, 5404
Telemetry [candidate] (5358.0 µs) : 0, 5358
ProfilingAgent [baseline] (74242.9 µs) : 0, 74243
ProfilingAgent [candidate] (75122.8 µs) : 0, 75123
Profiling [baseline] (74267.0 µs) : 0, 74267
Profiling [candidate] (75147.7 µs) : 0, 75148
section tracing
BytebuddyAgent [baseline] (615467.7 µs) : 0, 615468
BytebuddyAgent [candidate] (613956.0 µs) : 0, 613956
GlobalTracer [baseline] (285894.3 µs) : 0, 285894
GlobalTracer [candidate] (284221.7 µs) : 0, 284222
AppSec [baseline] (51031.8 µs) : 0, 51032
AppSec [candidate] (49798.3 µs) : 0, 49798
Remote Config [baseline] (677.6 µs) : 0, 678
Remote Config [candidate] (659.5 µs) : 0, 659
Telemetry [baseline] (5476.5 µs) : 0, 5477
Telemetry [candidate] (5340.8 µs) : 0, 5341
Loading

Load

Parameters

Baseline Candidate
commit 1.19.0-SNAPSHOT~0aac86e63d 1.19.0-SNAPSHOT~734f37191c
config baseline candidate
end_time 2023-08-07T16:31:59 2023-08-07T16:52:55
start_time 2023-08-07T16:31:22 2023-08-07T16:52:18
See matching parameters
Baseline Candidate
application insecure-bank insecure-bank
variant appsec appsec

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 28 cases.

Request duration reports for petclinic
gantt
    title petclinic - request duration [CI 0.99] : candidate=1.19.0-SNAPSHOT~734f37191c, baseline=1.19.0-SNAPSHOT~0aac86e63d
    dateFormat X
    axisFormat %s
section baseline
no_agent (1312.8 µs) : 1294, 1332
.   : milestone, 1313,
appsec (1667.0 µs) : 1643, 1692
.   : milestone, 1667,
iast (1465.9 µs) : 1442, 1490
.   : milestone, 1466,
iast_FULL (1465.1 µs) : 1441, 1489
.   : milestone, 1465,
iast_INACTIVE (1441.1 µs) : 1417, 1466
.   : milestone, 1441,
profiling (1454.8 µs) : 1430, 1479
.   : milestone, 1455,
tracing (1469.2 µs) : 1445, 1493
.   : milestone, 1469,
section candidate
no_agent (1351.4 µs) : 1332, 1370
.   : milestone, 1351,
appsec (1676.1 µs) : 1651, 1701
.   : milestone, 1676,
iast (1446.6 µs) : 1422, 1472
.   : milestone, 1447,
iast_FULL (1443.7 µs) : 1420, 1468
.   : milestone, 1444,
iast_INACTIVE (1454.1 µs) : 1430, 1478
.   : milestone, 1454,
profiling (1464.6 µs) : 1440, 1489
.   : milestone, 1465,
tracing (1460.8 µs) : 1436, 1485
.   : milestone, 1461,
Loading
Build Variant Request duration [CI 0.99] Overhead
baseline appsec 1667.0 µs [1642.6, 1691.5] 23.4%
baseline iast 1465.9 µs [1441.9, 1489.9] 8.5%
baseline iast_FULL 1465.1 µs [1441.2, 1489.1] 8.4%
baseline iast_INACTIVE 1441.1 µs [1416.8, 1465.5] 6.6%
baseline profiling 1454.8 µs [1430.2, 1479.4] 7.7%
baseline tracing 1469.2 µs [1445.0, 1493.4] 8.7%
candidate appsec 1676.1 µs [1651.0, 1701.2] 27.7%
candidate iast 1446.6 µs [1421.6, 1471.6] 10.2%
candidate iast_FULL 1443.7 µs [1419.6, 1467.8] 10.0%
candidate iast_INACTIVE 1454.1 µs [1430.2, 1478.0] 10.8%
candidate profiling 1464.6 µs [1440.0, 1489.3] 11.6%
candidate tracing 1460.8 µs [1436.3, 1485.2] 11.3%
Request duration reports for insecure-bank
gantt
    title insecure-bank - request duration [CI 0.99] : candidate=1.19.0-SNAPSHOT~734f37191c, baseline=1.19.0-SNAPSHOT~0aac86e63d
    dateFormat X
    axisFormat %s
section baseline
no_agent (329.9 µs) : 321, 339
.   : milestone, 330,
appsec (610.8 µs) : 601, 620
.   : milestone, 611,
iast (408.1 µs) : 398, 418
.   : milestone, 408,
iast_FULL (462.0 µs) : 452, 472
.   : milestone, 462,
iast_INACTIVE (390.9 µs) : 380, 402
.   : milestone, 391,
profiling (392.8 µs) : 382, 403
.   : milestone, 393,
tracing (380.1 µs) : 370, 390
.   : milestone, 380,
section candidate
no_agent (325.7 µs) : 315, 337
.   : milestone, 326,
appsec (617.5 µs) : 608, 627
.   : milestone, 618,
iast (409.5 µs) : 400, 419
.   : milestone, 409,
iast_FULL (463.0 µs) : 454, 472
.   : milestone, 463,
iast_INACTIVE (385.8 µs) : 376, 396
.   : milestone, 386,
profiling (390.7 µs) : 380, 401
.   : milestone, 391,
tracing (384.4 µs) : 374, 394
.   : milestone, 384,
Loading
Build Variant Request duration [CI 0.99] Overhead
baseline appsec 610.8 µs [601.4, 620.3] 87.6%
baseline iast 408.1 µs [397.8, 418.3] 25.3%
baseline iast_FULL 462.0 µs [452.2, 471.7] 41.9%
baseline iast_INACTIVE 390.9 µs [380.3, 401.5] 20.0%
baseline profiling 392.8 µs [382.2, 403.5] 20.6%
baseline tracing 380.1 µs [370.4, 389.9] 16.7%
candidate appsec 617.5 µs [607.7, 627.3] 87.2%
candidate iast 409.5 µs [399.6, 419.3] 24.1%
candidate iast_FULL 463.0 µs [453.5, 472.5] 40.3%
candidate iast_INACTIVE 385.8 µs [375.5, 396.0] 16.9%
candidate profiling 390.7 µs [380.3, 401.1] 18.4%
candidate tracing 384.4 µs [374.3, 394.4] 16.5%

@nikita-tkachenko-datadog
nikita-tkachenko-datadog merged commit e0b23cb into master Aug 7, 2023
@nikita-tkachenko-datadog
nikita-tkachenko-datadog deleted the nikita-tkachenko/cucumber-support branch August 7, 2023 17:12
@github-actions github-actions Bot added this to the 1.19.0 milestone Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: ci visibility Continuous Integration Visibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants