Skip to content

Commit 4af7b01

Browse files
authored
Create test monitor data mart (#16323)
1 parent 57b1005 commit 4af7b01

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
SELECT
2+
state_filtered,
3+
test_name,
4+
suite_folder,
5+
full_name,
6+
date_window,
7+
build_type,
8+
branch,
9+
days_ago_window,
10+
pass_count,
11+
mute_count,
12+
fail_count,
13+
skip_count,
14+
owner,
15+
is_muted,
16+
is_test_chunk,
17+
state,
18+
previous_state,
19+
state_change_date,
20+
days_in_state,
21+
previous_mute_state,
22+
mute_state_change_date,
23+
days_in_mute_state,
24+
previous_state_filtered,
25+
state_change_date_filtered,
26+
days_in_state_filtered,
27+
CASE
28+
WHEN (state = 'Skipped' AND days_in_state > 14) THEN 'Skipped: > 14 days'
29+
WHEN days_in_mute_state >= 30 THEN 'MUTED: delete candidate (>30 days)'
30+
ELSE 'MUTED: in sla (<30 days)'
31+
END as resolution,
32+
String::ReplaceAll(owner, 'TEAM:@ydb-platform/', '') as owner_team,
33+
CASE
34+
WHEN is_muted = 1 OR (state = 'Skipped' AND days_in_state > 14) THEN TRUE
35+
ELSE FALSE
36+
END as is_muted_or_skipped
37+
FROM `test_results/analytics/tests_monitor`
38+
WHERE date_window >= CurrentUtcDate() - 30 * Interval("P1D")
39+
and branch = 'main'
40+
and build_type ='relwithdebinfo'
41+
and is_test_chunk = 0

.github/workflows/collect_analytics_fast.yml

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
run: |
2929
python3 -m pip install ydb ydb[yc] codeowners pandas
3030
- name: Upload new test history to fast table
31+
continue-on-error: true
3132
run: python3 .github/scripts/analytics/test_history_fast.py
3233
- name: Upload olap perfomance data mart
34+
continue-on-error: true
3335
run: python3 .github/scripts/analytics/data_mart_executor.py --query_path .github/scripts/analytics/data_mart_queries/perfomance_olap_mart.sql --table_path perfomance/olap/fast_results --store_type column --partition_keys Run_start_timestamp --primary_keys Db Suite Test Branch Run_start_timestamp --ttl_min 43200 --ttl_key Run_start_timestamp
36+
- name: Upload olap perfomance data mart
37+
continue-on-error: true
38+
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

0 commit comments

Comments
 (0)