aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Rysin <35688753+naspirato@users.noreply.github.com>2024-12-25 09:54:16 +0100
committerGitHub <noreply@github.com>2024-12-25 11:54:16 +0300
commit31f26f88fc35a66e45573bff8fb52f615da29787 (patch)
tree6c55c4f220160e84461ba8ddd540e7271ede399d
parent1c389709c59523488a89b89c125f7c32195273bb (diff)
downloadydb-31f26f88fc35a66e45573bff8fb52f615da29787.tar.gz
Fix test results upload: cut large status description (#12904)
-rwxr-xr-x.github/scripts/analytics/upload_tests_results.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/scripts/analytics/upload_tests_results.py b/.github/scripts/analytics/upload_tests_results.py
index 2c0fdfbadd..2cc39c3b15 100755
--- a/.github/scripts/analytics/upload_tests_results.py
+++ b/.github/scripts/analytics/upload_tests_results.py
@@ -18,6 +18,7 @@ from codeowners import CodeOwners
from concurrent.futures import ThreadPoolExecutor, as_completed
from decimal import Decimal
+max_characters_for_status_description = int(7340032/4) #workaround for error "cannot split batch in according to limits: there is row with size more then limit (7340032)"
def create_tables(pool, table_path):
print(f"> create table if not exists:'{table_path}'")
@@ -121,7 +122,7 @@ def parse_junit_xml(test_results_file, build_type, job_name, job_id, commit, bra
"test_name": name,
"duration": Decimal(duration),
"status": status,
- "status_description": status_description.replace("\r\n", ";;").replace("\n", ";;").replace("\"", "'"),
+ "status_description": status_description.replace("\r\n", ";;").replace("\n", ";;").replace("\"", "'")[:max_characters_for_status_description],
"log": "" if testcase.find("properties/property/[@name='url:log']") is None else testcase.find("properties/property/[@name='url:log']").get('value'),
"logsdir": "" if testcase.find("properties/property/[@name='url:logsdir']") is None else testcase.find("properties/property/[@name='url:logsdir']").get('value'),
"stderr": "" if testcase.find("properties/property/[@name='url:stderr']") is None else testcase.find("properties/property/[@name='url:stderr']").get('value'),