Skip to content

Commit fe3c9fb

Browse files
authored
Merge branch 'main' into WARNCBOADDEDD
2 parents 0519745 + 40b58a4 commit fe3c9fb

File tree

5,553 files changed

+86776
-34757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,553 files changed

+86776
-34757
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@
4747
/ydb/core/formats/arrow @ydb-platform/cs
4848
/ydb/core/tx/columnshard @ydb-platform/cs
4949

50+
/ydb/apps/ydb @ydb-platform/cli
51+
/ydb/public/lib/ydb_cli @ydb-platform/cli
52+

.github/config/mute_rules.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,60 @@ Open the [Flaky](https://datalens.yandex/4un3zdm0zcnyr) dashboard.
8989
- If the `summary:` column shows `mute <= 3` and `success rate >= 98%` - **it's time to enable the test**.
9090
- Perform steps from [How to Unmute](#how-to-unmute)
9191
- You are awesome!
92+
93+
### Unmute stable and flaky tests automaticaly
94+
95+
96+
**setup**
97+
1) ```pip install PyGithub```
98+
2) request git token
99+
```
100+
# Github api (personal access token (classic)) token shoud have permitions to
101+
# repo
102+
# - repo:status
103+
# - repo_deployment
104+
# - public_repo
105+
# admin:org
106+
# project
107+
```
108+
3) save it to env `export GITHUB_TOKEN=<token>
109+
4) save to env `export CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<iam_cloud_file>
110+
111+
**How to use**
112+
113+
0) *update your branch* - you shoud have last version of muted_ya localy
114+
1) Run instance https://github.com/ydb-platform/ydb/actions/workflows/collect_analytics.yml
115+
2) wait till end of step `Collect all test monitor (how long tests in state)` (about 7 min)
116+
3) run `create_new_muted_ya.py update_muted_ya` - it creates bunch of files in `%repo_path%/mute_update/`
117+
118+
| File Name | Description |
119+
|----------------------------------------|-------------------------------------------------------------------------------------------------|
120+
| deleted.txt | Tests what look like deleted (no runs 28 days in a row) |
121+
| deleted_debug.txt | With detailed info |
122+
| flaky.txt | Tests which are flaky today AND total runs > 3 AND fail_count > 2 |
123+
| flaky_debug.txt | With detailed info |
124+
| muted_stable.txt | Muted tests which are stable for the last 14 days |
125+
| muted_stable_debug.txt | With detailed info |
126+
| new_muted_ya.txt | Muted_ya.txt version with excluded **muted_stable** and **deleted** tests |
127+
| new_muted_ya_debug.txt | With detailed info |
128+
| new_muted_ya_with_flaky.txt | Muted_ya.txt version with excluded **muted_stable** and **deleted** tests and included **flaky**|
129+
| new_muted_ya_with_flaky_debug.txt | With detailed info |
130+
|muted_ya_sorted.txt| original muted_ya with resolved wildcards for real tests (not chunks)|
131+
|muted_ya_sorted_debug.txt| With detailed info|
132+
133+
134+
**1. Unmute Stable**
135+
1) replace content of [muted_ya](https://github.com/ydb-platform/ydb/blob/main/.github/config/muted_ya.txt) with content of **new_muted_ya.txt**
136+
2) create new PR and paste in PR Description
137+
- `<Unmuted tests : stable 9 and deleted 0>` from concole output
138+
- content from **muted_stable_debug** and **deleted_debug**
139+
3) Merge
140+
example https://github.com/ydb-platform/ydb/pull/11099
141+
142+
**2. Mute Flaky** (AFTER UNMUTE STABLE ONLY)
143+
1) replace content of [muted_ya](https://github.com/ydb-platform/ydb/blob/main/.github/config/muted_ya.txt) with content of **new_muted_ya_with_flaky.txt**
144+
2) create new PR
145+
2) run `create_new_muted_ya.py create_issues` - it creates issue for each flaky test in **flaky.txt**
146+
3) copy from console output text like ' Created issue ...' and paste in PR
147+
4) merge
148+
example https://github.com/ydb-platform/ydb/pull/11101

.github/config/muted_ya.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ ydb/core/kqp/ut/olap KqpOlapBlobsSharing.MultipleSplits
3838
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.MultipleSplitsThenMerges
3939
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.MultipleSplitsWithRestartsAfterWait
4040
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.MultipleSplitsWithRestartsWhenWait
41-
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.SplitEmpty
4241
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.TableReshardingConsistency64
4342
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.TableReshardingModuloN
4443
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.UpsertWhileSplitTest
@@ -56,7 +55,6 @@ ydb/core/kqp/ut/scheme [*/*]+chunk+chunk
5655
ydb/core/kqp/ut/service KqpService.CloseSessionsWithLoad
5756
ydb/core/kqp/ut/service [*/*] chunk chunk
5857
ydb/core/kqp/ut/service [*/*]+chunk+chunk
59-
ydb/core/mind/hive/ut THiveTest.DrainWithHiveRestart
6058
ydb/core/persqueue/ut TPQTest.TestReadAndDeleteConsumer
6159
ydb/core/persqueue/ut [*/*] chunk chunk
6260
ydb/core/persqueue/ut/ut_with_sdk TopicAutoscaling.CDC_Write
@@ -76,23 +74,20 @@ ydb/library/actors/http/ut sole+chunk+chunk
7674
ydb/library/actors/interconnect/ut_huge_cluster HugeCluster.AllToAll
7775
ydb/library/actors/interconnect/ut_huge_cluster sole chunk chunk
7876
ydb/library/yql/providers/generic/connector/tests/datasource/clickhouse test.py.test_select_positive[primitive_types_non_nullable_NATIVE-dqrun]
79-
ydb/library/yql/providers/generic/connector/tests/datasource/ms_sql_server test.py.test_select_positive[constant-dqrun]
8077
ydb/library/yql/providers/generic/connector/tests/datasource/ms_sql_server test.py.test_select_positive[primitives-dqrun]
8178
ydb/library/yql/providers/generic/connector/tests/datasource/ms_sql_server test.py.test_select_positive[primitives-kqprun]
8279
ydb/library/yql/providers/generic/connector/tests/datasource/mysql test.py.test_select_positive[primitives-dqrun]
8380
ydb/library/yql/providers/generic/connector/tests/datasource/mysql test.py.test_select_positive[primitives-kqprun]
8481
ydb/library/yql/providers/generic/connector/tests/datasource/oracle test.py.test_select_positive[PRIMITIVES-dqrun]
8582
ydb/library/yql/providers/generic/connector/tests/datasource/postgresql test.py.test_select_positive[primitive_types-dqrun]
8683
ydb/library/yql/providers/generic/connector/tests/datasource/ydb test.py.test_select_positive[column_selection_asterisk-dqrun]
87-
ydb/library/yql/providers/generic/connector/tests/datasource/ydb test.py.test_select_positive[primitive_types-kqprun]
8884
ydb/library/yql/providers/generic/connector/tests/join test.py.test_join[join_ch_ch-dqrun]
8985
ydb/library/yql/tests/sql/hybrid_file/part1 test.py.test[in-in_noansi_join--Debug]
9086
ydb/public/sdk/cpp/client/ydb_topic/ut [*/*] chunk chunk
9187
ydb/public/sdk/cpp/client/ydb_topic/ut [*/*]+chunk+chunk
9288
ydb/services/datastreams/ut DataStreams.TestPutRecordsCornerCases
9389
ydb/services/datastreams/ut DataStreams.TestReservedConsumersMetering
9490
ydb/services/datastreams/ut DataStreams.TestReservedStorageMetering
95-
ydb/services/keyvalue/ut KeyValueGRPCService.SimpleConcatUnexistedKey
9691
ydb/services/keyvalue/ut sole chunk chunk
9792
ydb/services/keyvalue/ut sole+chunk+chunk
9893
ydb/services/persqueue_v1/ut TPersQueueTest.DirectReadCleanCache
@@ -139,11 +134,9 @@ ydb/tests/fq/yds test_row_dispatcher.py.TestPqRowDispatcher.test_restart_compute
139134
ydb/tests/fq/yds test_select_limit_db_id.py.TestSelectLimitWithDbId.test_select_same_with_id[v1-mvp_external_ydb_endpoint0]
140135
ydb/tests/fq/yds test_yds_bindings.py.TestBindings.test_yds_insert[v1]
141136
ydb/tests/fq/yt/kqp_yt_file/part18 test.py.test[pg-join_brackets2-default.txt]
142-
ydb/tests/functional/audit test_auditlog.py.test_dml_requests_arent_logged_when_sid_is_expected
143137
ydb/tests/functional/hive test_drain.py.TestHive.test_drain_on_stop
144138
ydb/tests/functional/kqp/kqp_query_session KqpQuerySession.NoLocalAttach
145139
ydb/tests/functional/rename [test_rename.py */*] chunk chunk
146-
ydb/tests/functional/restarts test_restarts.py.TestRestartSingleBlock42.test_restart_single_node_is_ok
147140
ydb/tests/functional/serializable test.py.test_local
148141
ydb/tests/functional/serverless test_serverless.py.test_database_with_disk_quotas[enable_alter_database_create_hive_first--false]
149142
ydb/tests/functional/serverless test_serverless.py.test_database_with_disk_quotas[enable_alter_database_create_hive_first--true]

.github/scripts/analytics/get_mute_issues.py

Lines changed: 0 additions & 226 deletions
This file was deleted.

0 commit comments

Comments
 (0)