diff options
-rw-r--r-- | .github/scripts/analytics/data_mart_queries/test_history_mart.sql (renamed from .github/scripts/analytics/data_mart_queries/muted_test_mart.sql) | 3 | ||||
-rwxr-xr-x | .github/scripts/tests/update_mute_issues.py | 6 | ||||
-rw-r--r-- | .github/workflows/collect_analytics_fast.yml | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/.github/scripts/analytics/data_mart_queries/muted_test_mart.sql b/.github/scripts/analytics/data_mart_queries/test_history_mart.sql index 3e7c3d3161..83f5e67d8a 100644 --- a/.github/scripts/analytics/data_mart_queries/muted_test_mart.sql +++ b/.github/scripts/analytics/data_mart_queries/test_history_mart.sql @@ -26,8 +26,7 @@ SELECT FROM `test_results/test_runs_column` WHERE - run_timestamp >= CurrentUtcDate() - 6*Interval("P1D") - and build_type = 'relwithdebinfo' + run_timestamp >= CurrentUtcDate() - 1*Interval("P1D") and String::Contains(test_name, '.flake8') = FALSE and (CASE WHEN String::Contains(test_name, 'chunk chunk') OR String::Contains(test_name, 'chunk+chunk') THEN TRUE diff --git a/.github/scripts/tests/update_mute_issues.py b/.github/scripts/tests/update_mute_issues.py index 238387e530..a9b8f7ebde 100755 --- a/.github/scripts/tests/update_mute_issues.py +++ b/.github/scripts/tests/update_mute_issues.py @@ -1,7 +1,7 @@ import os import requests from github import Github #pip3 install PyGithub -from urllib.parse import quote, urlencode +from urllib.parse import quote_plus ORG_NAME = 'ydb-platform' @@ -337,10 +337,10 @@ def generate_github_issue_title_and_body(test_data): # Создаем ссылку на историю тестов, кодируя параметры test_name_params = "&".join( - urlencode({"full_name": f"__in_{test}"}) + f"full_name={quote_plus(f'__in_{test}')}" for test in test_full_names ) - branch_param = urlencode({"&branch": branch}) + branch_param = f"&branch={branch}" test_run_history_link = f"{CURRENT_TEST_HISTORY_DASHBOARD}{test_name_params}{branch_param}" # owner diff --git a/.github/workflows/collect_analytics_fast.yml b/.github/workflows/collect_analytics_fast.yml index 6996b49e51..87a6ad05ef 100644 --- a/.github/workflows/collect_analytics_fast.yml +++ b/.github/workflows/collect_analytics_fast.yml @@ -38,5 +38,5 @@ jobs: 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 - name: Upload muted test data mart continue-on-error: true - 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 + 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 |