Skip to content

Commit 6740986

Browse files
authored
Fix links in mute issues + analytic collect for test_history_mart (#17249)
1 parent 8500e1f commit 6740986

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/scripts/analytics/data_mart_queries/muted_test_mart.sql renamed to .github/scripts/analytics/data_mart_queries/test_history_mart.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ SELECT
2626
FROM `test_results/test_runs_column`
2727

2828
WHERE
29-
run_timestamp >= CurrentUtcDate() - 6*Interval("P1D")
30-
and build_type = 'relwithdebinfo'
29+
run_timestamp >= CurrentUtcDate() - 1*Interval("P1D")
3130
and String::Contains(test_name, '.flake8') = FALSE
3231
and (CASE
3332
WHEN String::Contains(test_name, 'chunk chunk') OR String::Contains(test_name, 'chunk+chunk') THEN TRUE

.github/scripts/tests/update_mute_issues.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import requests
33
from github import Github #pip3 install PyGithub
4-
from urllib.parse import quote, urlencode
4+
from urllib.parse import quote_plus
55

66

77
ORG_NAME = 'ydb-platform'
@@ -337,10 +337,10 @@ def generate_github_issue_title_and_body(test_data):
337337
# Создаем ссылку на историю тестов, кодируя параметры
338338

339339
test_name_params = "&".join(
340-
urlencode({"full_name": f"__in_{test}"})
340+
f"full_name={quote_plus(f'__in_{test}')}"
341341
for test in test_full_names
342342
)
343-
branch_param = urlencode({"&branch": branch})
343+
branch_param = f"&branch={branch}"
344344
test_run_history_link = f"{CURRENT_TEST_HISTORY_DASHBOARD}{test_name_params}{branch_param}"
345345

346346
# owner

.github/workflows/collect_analytics_fast.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ jobs:
3838
run: python3 .github/scripts/analytics/data_mart_executor.py --query_path .github/scripts/analytics/data_mart_queries/test_monitor_mart.sql --table_path test_results/analytics/test_monitor_mart --store_type column --partition_keys date_window branch build_type owner_team suite_folder --primary_keys date_window owner_team branch build_type suite_folder full_name --ttl_min 43200 --ttl_key date_window
3939
- name: Upload muted test data mart
4040
continue-on-error: true
41-
run: python3 .github/scripts/analytics/data_mart_executor.py --query_path .github/scripts/analytics/data_mart_queries/muted_test_mart.sql --table_path test_results/analytics/test_history_mart --store_type column --partition_keys run_timestamp job_id build_type branch --primary_keys run_timestamp full_name job_id job_name branch build_type test_id --ttl_min 20160 --ttl_key run_timestamp
41+
run: python3 .github/scripts/analytics/data_mart_executor.py --query_path .github/scripts/analytics/data_mart_queries/test_history_mart.sql --table_path test_results/analytics/test_history_mart --store_type column --partition_keys run_timestamp job_id build_type branch --primary_keys run_timestamp full_name job_id job_name branch build_type test_id --ttl_min 20160 --ttl_key run_timestamp
4242

0 commit comments

Comments
 (0)