Skip to content

Commit 4555423

Browse files
authored
backport: add ydb_qa_config input from vars.YDB_QA_CONFIG → stable-25-4-1 (#41090)
2 parents 430a83e + 4f5f3c6 commit 4555423

25 files changed

Lines changed: 1286 additions & 359 deletions

.github/actions/setup_ci_ydb_service_account_key_file_credentials/action.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ inputs:
44
ci_ydb_service_account_key_file_credentials:
55
required: false
66
description: "token for access"
7+
ydb_qa_config:
8+
required: false
9+
description: "YDB QA JSON config (pass vars.YDB_QA_CONFIG); exported as YDB_QA_CONFIG for ydb_wrapper"
710
runs:
811
using: "composite"
912
steps:
10-
- name: drop file and set environment variable
13+
- name: Setup YDB service account credentials
1114
if: "${{ inputs.ci_ydb_service_account_key_file_credentials != '' }}"
1215
shell: bash
1316
run: |
@@ -18,3 +21,17 @@ runs:
1821
EOF
1922
2023
echo "CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=$CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS" >> $GITHUB_ENV
24+
25+
- name: Setup YDB QA config
26+
if: "${{ inputs.ydb_qa_config != '' }}"
27+
shell: bash
28+
env:
29+
YDB_QA_CONFIG_INPUT: ${{ inputs.ydb_qa_config }}
30+
run: |
31+
set -eu
32+
DELIM="YDB_QA_CONFIG_$(openssl rand -hex 8)"
33+
{
34+
echo "YDB_QA_CONFIG<<$DELIM"
35+
printf '%s\n' "$YDB_QA_CONFIG_INPUT"
36+
echo "$DELIM"
37+
} >> "$GITHUB_ENV"

.github/config/variables.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[YDBD]
2+
YDBD_PATH = ydb/apps/ydbd/ydbd

.github/config/ydb_qa_config.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"databases": {
3+
"main": {
4+
"endpoint": "grpcs://lb.etnvsjbk7kh1jc6bbfi8.ydb.mdb.yandexcloud.net:2135",
5+
"path": "/ru-central1/b1ggceeul2pkher8vhb6/etnvsjbk7kh1jc6bbfi8",
6+
"connection_timeout": 60,
7+
"tables": {
8+
"test_results": "test_results/test_runs_column",
9+
"testowners": "test_results/analytics/testowners",
10+
"tests_monitor": "test_results/analytics/tests_monitor",
11+
"muted_tests_daily_by_team": "test_results/analytics/muted_tests_daily_by_team",
12+
"muted_tests_with_issue_and_area": "test_results/analytics/muted_tests_with_issue_and_area",
13+
"test_history_fast": "test_results/analytics/test_history_fast",
14+
"github_issue_mapping": "test_results/analytics/github_issue_mapping",
15+
"area_to_owner_mapping": "test_results/analytics/area_to_owner_mapping",
16+
"github_issues_timeline": "test_results/analytics/github_issues_timeline",
17+
"flaky_tests_window": "test_results/analytics/flaky_tests_window_1_days",
18+
"all_tests_with_owner_and_mute": "test_results/all_tests_with_owner_and_mute",
19+
"pr_blocked_by_failed_tests_rich": "test_results/analytics/pr_blocked_by_failed_tests_rich",
20+
"pr_blocked_by_tests": "test_results/analytics/pr_blocked_by_tests",
21+
"pr_check_failures_by_attempt": "test_results/analytics/pr_check_failures_by_attempt",
22+
"binary_size": "binary_size",
23+
"issues": "github_data/issues",
24+
"pull_requests": "github_data/pull_requests",
25+
"digest_queue": "test_results/analytics/digest_queue",
26+
"fast_unmute_active": "test_mute/fast_unmute_active",
27+
"fast_unmute_grace": "test_mute/fast_unmute_grace",
28+
"mute_latency": "test_results/analytics/mute_latency",
29+
"mute_latency_affected_prs": "test_results/analytics/mute_latency_affected_prs",
30+
"mute_events": "test_results/analytics/mute_events"
31+
32+
}
33+
},
34+
"statistics": {
35+
"endpoint": "grpcs://lb.etnvsjbk7kh1jc6bbfi8.ydb.mdb.yandexcloud.net:2135",
36+
"path": "/ru-central1/b1ggceeul2pkher8vhb6/etnvsjbk7kh1jc6bbfi8",
37+
"connection_timeout": 60,
38+
"tables": {
39+
"query_statistics": "analytics/query_statistics"
40+
}
41+
}
42+
},
43+
"variables": {
44+
},
45+
"flags": {
46+
"enable_statistics": true,
47+
"enable_backup_write": false
48+
}
49+
}

0 commit comments

Comments
 (0)