Skip to content

Commit e8dc0fa

Browse files
Collect k8s coverage data and include them in coverage JSON files
1 parent 709d679 commit e8dc0fa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/create_data_coverage.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,11 @@ def aggregate_recorded_raw_data(
229229
service = metric.get("service")
230230
if service not in services_of_interest:
231231
continue
232-
233-
node_id = metric.get("node_id") or metric.get("test_node_id")
234-
if not node_id:
232+
233+
node_id = metric.get("node_id") or metric.get("test_node_id") or ""
234+
if not node_id or not test_source.startswith("k8s"):
235235
# some records do not have a node-id -> relates to requests in the background between tests
236+
# For K8s tests we do not have a node_id, so we keep those records
236237
continue
237238

238239
# skip tests are marked as xfail
@@ -264,6 +265,8 @@ def aggregate_recorded_raw_data(
264265
elif test_source.startswith("k8s"):
265266
internal_test = True
266267
k8s_tested = True
268+
source = "ls_pro" # for now k8s tests are only running in pro
269+
test_node_origin = "LocalStack Pro"
267270
else:
268271
external_test = True
269272

@@ -279,7 +282,7 @@ def aggregate_recorded_raw_data(
279282
op_record["internal_test_suite"] = True
280283
if external_test and not op_record.get("external_test_suite"):
281284
op_record["external_test_suite"] = True
282-
if k8s_tested and not op_record.get("k8s_tested"):
285+
if k8s_tested and not op_record.get("k8s_test_suite"):
283286
op_record["k8s_test_suite"] = True
284287

285288
aws_validated = (

0 commit comments

Comments
 (0)