Skip to content

Commit 5661bf3

Browse files
Collect k8s coverage data and include them in coverage JSON files
1 parent 688adcc commit 5661bf3

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/docs-parity-updates.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ jobs:
151151
with:
152152
path: docs/.github/bot_templates/PARITY_COVERAGE_DOCS_PR.md
153153

154-
# - name: Create PR
155-
# uses: peter-evans/create-pull-request@v7
156-
# if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}
157-
# with:
158-
# path: docs
159-
# title: "Update Parity Coverage Docs"
160-
# body: "${{ steps.template.outputs.content }}"
161-
# branch: "parity-coverage-auto-updates"
162-
# author: "LocalStack Bot <[email protected]>"
163-
# committer: "LocalStack Bot <[email protected]>"
164-
# commit-message: "update generated parity coverage docs"
165-
# token: ${{ secrets.PRO_ACCESS_TOKEN }}
154+
- name: Create PR
155+
uses: peter-evans/create-pull-request@v7
156+
if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}
157+
with:
158+
path: docs
159+
title: "Update Parity Coverage Docs"
160+
body: "${{ steps.template.outputs.content }}"
161+
branch: "parity-coverage-auto-updates"
162+
author: "LocalStack Bot <[email protected]>"
163+
committer: "LocalStack Bot <[email protected]>"
164+
commit-message: "update generated parity coverage docs"
165+
token: ${{ secrets.PRO_ACCESS_TOKEN }}

scripts/create_data_coverage.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def aggregate_recorded_raw_data(
250250

251251
internal_test = False
252252
external_test = False
253+
k8s_tested = False
253254

254255
if test_source.startswith("community"):
255256
test_node_origin = "LocalStack Community"
@@ -259,6 +260,9 @@ def aggregate_recorded_raw_data(
259260
test_node_origin = "LocalStack Pro"
260261
internal_test = True
261262
source = "ls_pro"
263+
elif test_source.startswith("k8s"):
264+
internal_test = True
265+
k8s_tested = True
262266
else:
263267
external_test = True
264268

@@ -274,6 +278,8 @@ def aggregate_recorded_raw_data(
274278
op_record["internal_test_suite"] = True
275279
if external_test and not op_record.get("external_test_suite"):
276280
op_record["external_test_suite"] = True
281+
if k8s_tested and not op_record.get("k8s_tested"):
282+
op_record["k8s_test_suite"] = True
277283

278284
aws_validated = (
279285
str(metric.get("aws_validated", "false")).lower() == "true"

0 commit comments

Comments
 (0)