-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathworkflow_data.py
More file actions
688 lines (563 loc) · 26.1 KB
/
workflow_data.py
File metadata and controls
688 lines (563 loc) · 26.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
from collections import defaultdict
from dataclasses import dataclass
import json
import os
from pathlib import Path
from utils._context._scenarios import go_proxies
def _load_json(file_path: str) -> dict:
with open(file_path, "r") as file:
return json.load(file)
def _get_weblog_spec(weblogs_spec: list[dict], weblog_name: str) -> dict:
for entry in weblogs_spec:
if weblog_name == entry["name"]:
return entry
raise ValueError(f"Weblog variant {weblog_name} not found (please aws_ssi.json)")
def get_k8s_matrix(k8s_ssi_file: str, scenarios: list[str], language: str) -> dict:
"""Computes the K8s test matrix mapping scenarios to weblogs and their component versions.
Args:
k8s_ssi_file: Path to the k8s_ssi.json configuration file
scenarios: List of scenario names to include in the matrix
language: Programming language to filter weblogs (e.g., "nodejs", "java")
Returns:
Nested dictionary structure: {scenario: {weblog[]}}
"""
k8s_config = _load_json(k8s_ssi_file)
results: dict[str, list] = defaultdict(list)
# Process each entry in the scenario matrix
for matrix_entry in k8s_config["scenario_matrix"]:
applicable_scenarios = matrix_entry["scenarios"]
weblogs = matrix_entry["weblogs"]
# Match scenarios and weblogs
for scenario in scenarios:
if scenario not in applicable_scenarios:
continue
for weblog_entry in weblogs:
if language not in weblog_entry:
continue
for weblog in weblog_entry[language]:
results[scenario].append(weblog)
return results
def get_k8s_injector_dev_matrix(k8s_injector_dev_file: str, scenarios: list[str], language: str) -> dict:
"""Computes the matrix "scenario" - "weblog" given a list of scenarios and a language."""
k8s_injector_dev = _load_json(k8s_injector_dev_file)
results = defaultdict(lambda: defaultdict(list)) # type: dict
scenario_matrix = k8s_injector_dev["scenario_matrix"]
for entry in scenario_matrix:
applicable_scenarios = entry["scenarios"]
weblogs = entry["weblogs"]
for scenario in scenarios:
if scenario in applicable_scenarios:
for weblog_entry in weblogs:
if language in weblog_entry:
for weblog in weblog_entry[language]:
results[scenario][weblog] = []
return results
def get_aws_matrix(virtual_machines_file: str, aws_ssi_file: str, scenarios: list[str], language: str) -> dict:
"""Load the json files (the virtual_machine supported by the system and the scenario-weblog definition)
and calculates the matrix "scenario" - "weblog" - "virtual machine" given a list of scenarios and a language.
"""
# Load the supported vms and the aws matrix definition
raw_data_virtual_machines = _load_json(virtual_machines_file)["virtual_machines"]
aws_ssi = _load_json(aws_ssi_file)
# Remove items where "disabled" is set to True
virtual_machines = [item for item in raw_data_virtual_machines if item.get("disabled") is not True]
results = defaultdict(lambda: defaultdict(list)) # type: dict
scenario_matrix = aws_ssi["scenario_matrix"]
if language not in aws_ssi["weblogs_spec"]:
return results
weblogs_spec = aws_ssi["weblogs_spec"][language]
for entry in scenario_matrix:
applicable_scenarios = entry["scenarios"]
weblogs = entry["weblogs"]
for scenario in scenarios:
if scenario in applicable_scenarios:
for weblog_entry in weblogs:
if language in weblog_entry:
for weblog in weblog_entry[language]:
weblog_spec = _get_weblog_spec(weblogs_spec, weblog)
excluded = set(weblog_spec.get("excluded_os_branches", []))
exact = set(weblog_spec.get("exact_os_branches", []))
excluded_names = set(weblog_spec.get("excluded_os_names", []))
excludes_types = set(weblog_spec.get("excluded_os_types", []))
for vm in virtual_machines:
should_add_vm = True
os_type = vm["os_type"]
os_branch = vm["os_branch"]
os_name = vm["name"]
if exact:
if os_branch not in exact:
# results[scenario][weblog].append(vm["name"])
should_add_vm = False
if excluded:
if os_branch in excluded:
should_add_vm = False
if excluded_names:
if os_name in excluded_names:
should_add_vm = False
if excludes_types:
if os_type in excludes_types:
should_add_vm = False
if should_add_vm:
results[scenario][weblog].append(vm["name"])
return results
def get_docker_ssi_matrix(
images_file: str, runtimes_file: str, docker_ssi_file: str, scenarios: list[str], language: str
) -> dict:
"""Load the JSON files (the docker imgs and runtimes supported by the system and the scenario-weblog definition)"""
images = _load_json(images_file)
runtimes = _load_json(runtimes_file)
docker_ssi = _load_json(docker_ssi_file)
results = defaultdict(lambda: defaultdict(list)) # type: dict
scenario_matrix = docker_ssi.get("scenario_matrix", [])
weblogs_spec = docker_ssi.get("weblogs_spec", {}).get(language)
if not weblogs_spec:
return results
for entry in scenario_matrix:
applicable_scenarios = set(entry.get("scenarios", []))
weblogs = entry.get("weblogs", [])
for scenario in scenarios:
if scenario in applicable_scenarios:
for weblog_entry in weblogs:
if language in weblog_entry:
for weblog in weblog_entry[language]:
weblog_spec = _get_weblog_spec(weblogs_spec, weblog)
supported_images = weblog_spec.get("supported_images", [])
for supported_image in supported_images:
allowed_runtimes = []
allowed_versions = supported_image.get("allowed_runtime_versions", [])
if not allowed_versions:
allowed_runtimes.append("")
elif "*" in allowed_versions:
allowed_runtimes.extend(
runtime["version"]
for runtime in runtimes["docker_ssi_runtimes"].get(language, [])
)
else:
runtime_map = {
rt["version_id"]: rt["version"]
for rt in runtimes["docker_ssi_runtimes"].get(language, [])
}
for runtime_id in allowed_versions:
if runtime_id in runtime_map:
allowed_runtimes.append(runtime_map[runtime_id])
else:
raise ValueError(f"Runtime {runtime_id} not found in the runtimes file")
image_reference, image_arch_reference = next(
(
(img["image"], img["architecture"])
for img in images["docker_ssi_images"]
if img["name"] == supported_image["name"]
),
)
if not image_reference:
raise ValueError(f"Image {supported_image['name']} not found in the images file")
results[scenario][weblog].append(
{image_reference: allowed_runtimes, "arch": image_arch_reference}
)
return results
# End-to-end corner
@dataclass
class Weblog:
name: str
require_build: bool
artifact_name: str
def serialize(self) -> dict:
return {"name": self.name, "artifact_name": self.artifact_name}
class Job:
"""a job is a couple weblog/scenarios that will be executed in a single runner"""
def __init__(
self, library: str, weblog: Weblog, weblog_instance: int, scenarios_times: dict[str, float], build_time: float
):
self.library = library
self.weblog = weblog
# dict of scenario -> execution time of the scenario
self._scenarios_times = scenarios_times
# as a given weblog can have multiple runner executing its scenarios
# weblog_instance will be used to differentiate them
self.weblog_instance = weblog_instance
# build_time is not directly tight to the job, as another runner will execute it
# but it's convenient to store this info here, as we'll need it to execute the
# split mechanism
self.build_time = build_time
def serialize(self) -> dict:
return {
"runs_on": "ubuntu-latest",
"library": self.library,
"weblog": self.weblog.name,
"weblog_build_required": self.weblog.require_build,
"weblog_instance": self.weblog_instance,
"scenarios": sorted(self.scenarios),
"expected_job_time": self.expected_job_time + self.build_time,
"binaries_artifact": self.weblog.artifact_name,
}
@property
def scenarios(self) -> tuple[str, ...]:
return tuple(self._scenarios_times.keys())
@property
def expected_job_time(self) -> float:
return sum(self._scenarios_times.values())
@property
def sort_key(self) -> tuple:
return (self.weblog.name, self.weblog_instance)
def get_scenario_time(self, scenario: str) -> float:
return self._scenarios_times[scenario]
def append_scenario(self, scenario: str, execution_time: float) -> None:
assert scenario not in self._scenarios_times
self._scenarios_times[scenario] = execution_time
def split_for_parallel_execution(self, desired_execution_time: float) -> list["Job"]:
result: list[Job] = []
backpacks = _split_scenarios_for_parallel_execution(
self._scenarios_times, desired_execution_time - self.build_time
)
for i, scenarios in enumerate(backpacks):
result.append(
Job(
library=self.library,
weblog=self.weblog,
weblog_instance=i + 1,
scenarios_times={scenario: self._scenarios_times[scenario] for scenario in scenarios},
build_time=self.build_time,
)
)
return result
def _get_endtoend_weblogs(
library: str, weblogs_filter: list[str], unique_id: str, ci_environment: str, binaries_artifact: str
) -> list[Weblog]:
result: list[Weblog] = []
integration_frameworks_weblogs = {
# openai
"openai-py": ["2.0.0"],
"openai-js": ["6.0.0"],
"openai-java": ["4.29.0"],
# anthropic
"anthropic-js": ["0.71.0"],
"anthropic-py": ["0.75.0"],
# google_genai
"google_genai-py": ["1.55.0"],
"google_genai-js": ["1.34.0"],
}
folder = f"utils/build/docker/{library}"
if Path(folder).exists(): # some lib does not have any weblog
names = [
f.replace(".Dockerfile", "")
for f in os.listdir(folder)
if f.endswith(".Dockerfile") and ".base." not in f and Path(os.path.join(folder, f)).is_file()
]
if len(weblogs_filter) != 0:
# filter weblogs by the weblogs_filter set
names = [weblog for weblog in names if weblog in weblogs_filter]
for name in names:
if name not in integration_frameworks_weblogs:
result.append(
Weblog(
name=name,
require_build=True,
artifact_name=f"binaries_{ci_environment}_{library}_{name}_{unique_id}",
)
)
else:
for version in integration_frameworks_weblogs[name]:
result.append(
Weblog(name=f"{name}@{version}", require_build=False, artifact_name=binaries_artifact)
)
# weblog not related to a docker file
for weblog, lib in go_proxies.GO_PROXIES_WEBLOGS.items():
if lib == library:
result.append(Weblog(name=weblog, require_build=False, artifact_name=binaries_artifact))
if library == "otel_collector":
result.append(Weblog(name="otel_collector", require_build=False, artifact_name=binaries_artifact))
return sorted(result, key=lambda w: w.name)
def get_endtoend_definitions(
library: str,
scenario_map: dict,
weblogs_filter: list[str],
ci_environment: str,
desired_execution_time: int,
maximum_parallel_jobs: int,
unique_id: str,
binaries_artifact: str,
) -> dict:
scenarios = scenario_map["endtoend"]
# get time stats
with open("utils/scripts/ci_orchestrators/time-stats.json", "r") as file:
time_stats = json.load(file)
# get the list of end-to-end weblogs for the given library
weblogs: list[Weblog] = _get_endtoend_weblogs(
library, weblogs_filter, ci_environment=ci_environment, unique_id=unique_id, binaries_artifact=binaries_artifact
)
# check that jobs can be splitted
assert maximum_parallel_jobs >= len(weblogs), "There are more weblogs than maximum_parallel_jobs"
# build a list of {weblog, scenarios} for each weblog, and assign it to a Job
jobs: list[Job] = []
for weblog in weblogs:
supported_scenarios = _filter_scenarios(scenarios, library, weblog.name, ci_environment)
if len(supported_scenarios) > 0: # remove weblogs with no scenarios
scenarios_times = {
scenario: _get_execution_time(library, weblog.name, scenario, time_stats["run"])
for scenario in supported_scenarios
}
jobs.append(
Job(
library=library,
weblog=weblog,
weblog_instance=1,
scenarios_times=scenarios_times,
build_time=_get_build_time(library, weblog, time_stats["build"]),
)
)
# split those jobs into smaller jobs if needed
if desired_execution_time > 0: # 0 or less means that user doesn't want to split jobs
jobs = _split_jobs_for_parallel_execution(jobs, desired_execution_time, maximum_parallel_jobs)
# sort jobs by weblog name and weblog instance
jobs.sort(key=lambda job: job.sort_key)
weblogs = list({job.weblog.name: job.weblog for job in jobs}.values())
weblogs.sort(key=lambda w: w.name)
return {
"endtoend_defs": {
"parallel_enable": len(jobs) > 0,
"parallel_weblogs": [weblog.serialize() for weblog in weblogs if weblog.require_build],
"parallel_jobs": [job.serialize() for job in jobs],
}
}
def _split_jobs_for_parallel_execution(
jobs: list[Job], desired_execution_time: float, maximum_parallel_jobs: int
) -> list[Job]:
result: list[Job] = []
for job in jobs:
result.extend(job.split_for_parallel_execution(desired_execution_time))
while len(result) > maximum_parallel_jobs:
# sort jobs by their weblog_instance
# this way, we'll go through each weblog
for job_to_delete in sorted(result, key=lambda job: job.weblog_instance, reverse=True):
weblog_jobs = [j for j in result if j.weblog == job_to_delete.weblog]
result.remove(job_to_delete)
weblog_jobs.remove(job_to_delete)
# and give its scenarios to the fastest job with the same weblog
for scenario in job_to_delete.scenarios:
# find the fastest job with the same weblog
fastest_job = min(weblog_jobs, key=lambda x: x.expected_job_time)
fastest_job.append_scenario(scenario, job_to_delete.get_scenario_time(scenario))
if len(result) <= maximum_parallel_jobs:
break
return result
def _split_scenarios_for_parallel_execution(
scenario_times: dict[str, float], desired_execution_time: float
) -> list[list[str]]:
class BackPack:
def __init__(self, scenario: str, execution_time: float):
self.scenarios: list[str] = [scenario]
self.execution_time: float = execution_time
# First Fit Decreasing algorithm to split scenarios into backpacks
# https://en.wikipedia.org/wiki/First-fit-decreasing_bin_packing
sorted_scenarios = sorted(scenario_times.items(), key=lambda item: item[1], reverse=True)
backpacks: list[BackPack] = []
for scenario, execution_time in sorted_scenarios:
if execution_time > desired_execution_time or len(backpacks) == 0:
# if the scenario is too long, or if we don't have any backpack, create a new one
backpacks.append(BackPack(scenario, execution_time))
else:
placed = False
for backpack in backpacks:
if backpack.execution_time + execution_time <= desired_execution_time:
# if the scenario fits in the backpack, add it
backpack.scenarios.append(scenario)
backpack.execution_time += execution_time
placed = True
break
if not placed:
# if the scenario doesn't fit in any backpack, create a new one
backpacks.append(BackPack(scenario, execution_time))
return [backpack.scenarios for backpack in backpacks]
def _get_build_time(library: str, weblog: Weblog, build_stats: dict) -> float:
if not weblog.require_build:
return 0.0
if library not in build_stats:
return build_stats["*"]
if weblog.name not in build_stats[library]:
return build_stats[library]["*"]
return build_stats[library][weblog.name]
def _get_execution_time(library: str, weblog: str, scenario: str, run_stats: dict) -> int | float:
if scenario not in run_stats:
return run_stats["*"]
if library not in run_stats[scenario]:
return run_stats[scenario]["*"]
if weblog not in run_stats[scenario][library]:
return run_stats[scenario][library]["*"]
return run_stats[scenario][library][weblog]
def _filter_scenarios(scenarios: list[str], library: str, weblog: str, ci_environment: str) -> list[str]:
return sorted([scenario for scenario in set(scenarios) if _is_supported(library, weblog, scenario, ci_environment)])
def _is_supported(library: str, weblog: str, scenario: str, _ci_environment: str) -> bool:
# this function will remove some couple scenarios/weblog that are not supported
# Only Allow Lambda scenarios for the lambda libraries
is_lambda_library = library in (
"python_lambda",
"java_lambda",
"nodejs_lambda",
)
is_lambda_scenario = scenario in (
"APPSEC_LAMBDA_DEFAULT",
"APPSEC_LAMBDA_BLOCKING",
"APPSEC_LAMBDA_API_SECURITY",
"APPSEC_LAMBDA_RASP",
"APPSEC_LAMBDA_INFERRED_SPANS",
)
if is_lambda_library != is_lambda_scenario:
return False
# open-telemetry-automatic
if scenario == "OTEL_INTEGRATIONS":
possible_values: tuple = (
("java_otel", "spring-boot-otel"),
("nodejs_otel", "express4-otel"),
("python_otel", "flask-poc-otel"),
)
if (library, weblog) not in possible_values:
return False
# open-telemetry-manual
if scenario in ("OTEL_LOG_E2E", "OTEL_METRIC_E2E", "OTEL_TRACING_E2E"):
if (library, weblog) != ("java_otel", "spring-boot-native"):
return False
if scenario in ("GRAPHQL_APPSEC",):
possible_values: tuple = (
("golang", "gqlgen"),
("golang", "graph-gophers"),
("golang", "graphql-go"),
("ruby", "graphql23"),
("nodejs", "express4"),
("nodejs", "uds-express4"),
("nodejs", "express4-typescript"),
("nodejs", "express5"),
)
if (library, weblog) not in possible_values:
return False
if scenario in ("PERFORMANCES",):
return False
if scenario == "IPV6" and library == "ruby":
return False
if scenario in ("CROSSED_TRACING_LIBRARIES",):
if weblog in ("python3.12", "django-py3.13", "spring-boot-payara"):
# python 3.13 issue : APMAPI-1096
return False
if scenario in ("APPSEC_MISSING_RULES", "APPSEC_CORRUPTED_RULES") and library in ("cpp_nginx", "cpp_httpd"):
# C++ 1.2.0 freeze when the rules file is missing
return False
if weblog in ["gqlgen", "graph-gophers", "graphql-go", "graphql23"]:
if scenario not in ("GRAPHQL_APPSEC",):
return False
# open-telemetry-manual
if weblog == "spring-boot-native":
if scenario not in ("OTEL_LOG_E2E", "OTEL_METRIC_E2E", "OTEL_TRACING_E2E"):
return False
# open-telemetry-automatic
if weblog in ["express4-otel", "flask-poc-otel", "spring-boot-otel"]:
if scenario not in ("OTEL_INTEGRATIONS",):
return False
# Go proxies
if scenario.startswith("GO_PROXIES"):
if go_proxies.GO_PROXIES_WEBLOGS.get(weblog) != library:
return False
if go_proxies.GO_PROXIES_WEBLOGS.get(weblog):
if not scenario.startswith("GO_PROXIES"):
return False
# otel collector
if weblog == "otel_collector" or scenario in ("OTEL_COLLECTOR", "OTEL_COLLECTOR_E2E"):
return weblog == "otel_collector" and scenario in ("OTEL_COLLECTOR", "OTEL_COLLECTOR_E2E")
if "@" in weblog or scenario == "INTEGRATION_FRAMEWORKS":
return "@" in weblog and scenario == "INTEGRATION_FRAMEWORKS"
return True
if __name__ == "__main__":
m = {
"endtoend": [
"AGENT_NOT_SUPPORTING_SPAN_EVENTS",
"APM_TRACING_E2E_OTEL",
"APM_TRACING_OTLP",
"APM_TRACING_E2E_SINGLE_SPAN",
"APPSEC_API_SECURITY",
"APPSEC_API_SECURITY_NO_RESPONSE_BODY",
"APPSEC_API_SECURITY_RC",
"APPSEC_API_SECURITY_WITH_SAMPLING",
"APPSEC_AUTO_EVENTS_EXTENDED",
"APPSEC_AUTO_EVENTS_RC",
"APPSEC_BLOCKING",
"APPSEC_BLOCKING_FULL_DENYLIST",
"APPSEC_CORRUPTED_RULES",
"APPSEC_CUSTOM_OBFUSCATION",
"APPSEC_CUSTOM_RULES",
"APPSEC_LOW_WAF_TIMEOUT",
"APPSEC_META_STRUCT_DISABLED",
"APPSEC_MISSING_RULES",
"APPSEC_RASP",
"APPSEC_RASP_NON_BLOCKING",
"APPSEC_RATE_LIMITER",
"APPSEC_RULES_MONITORING_WITH_ERRORS",
"APPSEC_RUNTIME_ACTIVATION",
"APPSEC_STANDALONE",
"APPSEC_STANDALONE_V2",
"APPSEC_WAF_TELEMETRY",
"CROSSED_TRACING_LIBRARIES",
"DEBUGGER_EXCEPTION_REPLAY",
"DEBUGGER_EXPRESSION_LANGUAGE",
"DEBUGGER_INPRODUCT_ENABLEMENT",
"DEBUGGER_PII_REDACTION",
"DEBUGGER_PROBES_SNAPSHOT",
"DEBUGGER_PROBES_STATUS",
"DEBUGGER_SYMDB",
"DEFAULT",
"EVERYTHING_DISABLED",
"IAST_DEDUPLICATION",
"IAST_STANDALONE",
"IAST_STANDALONE_V2",
"INTEGRATIONS",
"INTEGRATIONS_AWS",
"IPV6",
"LIBRARY_CONF_CUSTOM_HEADER_TAGS",
"LIBRARY_CONF_CUSTOM_HEADER_TAGS_INVALID",
"OTLP_RUNTIME_METRICS",
"PERFORMANCES",
"PROFILING",
"REMOTE_CONFIG_MOCKED_BACKEND_ASM_DD",
"REMOTE_CONFIG_MOCKED_BACKEND_ASM_FEATURES",
"REMOTE_CONFIG_MOCKED_BACKEND_ASM_FEATURES_NOCACHE",
"REMOTE_CONFIG_MOCKED_BACKEND_LIVE_DEBUGGING",
"RUNTIME_METRICS_ENABLED",
"SAMPLING",
"SAMPLING_RATE_CAPPING",
"SCA_STANDALONE",
"SCA_STANDALONE_V2",
"TELEMETRY_APP_STARTED_PRODUCTS_DISABLED",
"TELEMETRY_DEPENDENCY_LOADED_TEST_FOR_DEPENDENCY_COLLECTION_DISABLED",
"TELEMETRY_LOG_GENERATION_DISABLED",
"TELEMETRY_METRIC_GENERATION_DISABLED",
"TRACE_PROPAGATION_STYLE_W3C",
"TRACING_CONFIG_EMPTY",
"TRACING_CONFIG_NONDEFAULT",
"TRACING_CONFIG_NONDEFAULT_2",
"TRACING_CONFIG_NONDEFAULT_3",
],
"aws_ssi": [],
"dockerssi": ["DOCKER_SSI"],
"graphql": ["GRAPHQL_APPSEC"],
"libinjection": [
"K8S_LIB_INJECTION",
"K8S_LIB_INJECTION_NO_AC",
"K8S_LIB_INJECTION_NO_AC_UDS",
"K8S_LIB_INJECTION_OPERATOR",
"K8S_LIB_INJECTION_PROFILING_DISABLED",
"K8S_LIB_INJECTION_PROFILING_ENABLED",
"K8S_LIB_INJECTION_PROFILING_OVERRIDE",
"K8S_LIB_INJECTION_SPARK_DJM",
"K8S_LIB_INJECTION_UDS",
],
"testthetest": [],
"opentelemetry": ["OTEL_INTEGRATIONS", "OTEL_LOG_E2E", "OTEL_METRIC_E2E", "OTEL_TRACING_E2E"],
"parametric": ["PARAMETRIC"],
}
get_endtoend_definitions(
"ruby",
m,
[],
"dev",
desired_execution_time=400,
maximum_parallel_jobs=256,
binaries_artifact="",
unique_id="000",
)